continue in dialplan when hang up queue

Home » Asterisk Users » continue in dialplan when hang up queue
Asterisk Users No Comments

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@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@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!