Using 1.4 svn, I want to implent the busy application.

With the following dialplan:

[inboundqueue]

exten => _X.,1,Answer()
exten => _X.,n,Goto(dropcall,1)

...

exten => dropcall,1,Busy(10)
exten => dropcall,n,hangup()

If I call any number in the inboundqueue, I get the following:

[Oct  1 12:06:44]     -- Executing [444...@isdnspan1:1]
Answer("Zap/1-1", "") in new stack
[Oct  1 12:06:44]     -- Executing [444...@inboundqueue:2]
Goto("Zap/1-1", "1?dropcall|1") in new stack
[Oct  1 12:06:44]     -- Goto (inboundqueue,dropcall,1)
[Oct  1 12:06:44]     -- Executing [dropc...@inboundqueue:1]
Busy("Zap/1-1", "10") in new stack
[Oct  1 12:06:44]   == Spawn extension (inboundqueue, dropcall, 1)
exited non-zero on 'Zap/1-1'

why does the busy not wait for 10 seconds before dropping the zap channel ?

show application Busy
foxtrot*CLI>
  -= Info about application 'Busy' =-

[Synopsis]
Indicate the Busy condition

[Description]
  Busy([timeout]): This application will indicate the busy condition to
the calling channel. If the optional timeout is specified, the calling channel
will be hung up after the specified number of seconds. Otherwise, this
application will wait until the calling channel hangs up.

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to