Marcus Vinicius
2011-Sep-26 12:52 UTC
[asterisk-users] continue in dialplan when hang up queue
Hi, Is there a way to continue dialplan when a call is abandoned from application queue()? If the caller is waiting in a queue, and hang up before timeout, I'd like to execute an application in dialplan. I've tested "h" exten, but it doesn't work for this. ??? -- Executing [s at macro-nx-queue:21] Queue("SIP/1019-00000c67", "pabx,t") in new stack ??? -- Started music on hold, class 'default', on SIP/1019-00000c67 ??? -- Called SIP/1021 ??? -- SIP/1021-00000c68 is ringing ??? -- Stopped music on hold on SIP/1019-00000c67 ? == Spawn extension (macro-nx-queue, s, 21) exited non-zero on 'SIP/1019-00000c67' in macro 'nx-queue' ? == Spawn extension (from-inside-redir, *5000, 1) exited non-zero on 'SIP/1019-00000c67' I'D LIKE TO CONTINUE DIAL PLAN HERE ??? -- Executing [h at from-inside-redir:1] Hangup("SIP/1019-00000c67", "") in new stack ? == Spawn extension (from-inside-redir, h, 1) exited non-zero on 'SIP/1019-00000c67' ? == Extension Changed 1019[from-inside] new state Idle for Notify User 1033 Thanks a lot! -- Marcus Vin?cius -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110926/2e15900a/attachment.htm>
Alex Balashov
2011-Sep-26 12:59 UTC
[asterisk-users] continue in dialplan when hang up queue
On 09/26/2011 08:52 AM, Marcus Vinicius wrote:> Hi, > > Is there a way to continue dialplan when a call is abandoned from > application queue()? > > If the caller is waiting in a queue, and hang up before timeout, I'd > like to execute an application in dialplan. > > I've tested "h" exten, but it doesn't work for this.Check out the 'c' option to Queue() -- available only in >= 1.6. -- Alex Balashov - Principal Evariste Systems LLC 260 Peachtree Street NW Suite 2200 Atlanta, GA 30303 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/