I have a misc application, say 9996, which goes to Terminate Call: Busy.
I would like to use it in busy and unavailable forwardings in Phone Features in the ARI (I want to to this to override voicemail in busy and/or unavailable conditions, see http://www.freepbx.org/forum/freepbx/users/direct-access-to-voicemail-only for details).
If I call 9996 directly I receive the busy tone as expected.
If I take an extension, go to its ARI - Phone Features - Call Forwarding and put 9996 in Unconditional (just to test), then I dial that extension, the call is immediately hung up without hearing the busy tone.
I extracted some logs. If I call 9996 directly (works as expected):
VERBOSE[16815] logger.c: [Apr 25 15:09:22] – Executing [[email protected]:1] NoOp(“SIP/300-09a36bd0”, “Running miscapp 2: HANGUP”) in new stack
VERBOSE[16815] logger.c: [Apr 25 15:09:22] – Executing [[email protected]:2] Goto(“SIP/300-09a36bd0”, “app-blackhole|busy|1”) in new stack
VERBOSE[16815] logger.c: [Apr 25 15:09:22] – Goto (app-blackhole,busy,1)
VERBOSE[16815] logger.c: [Apr 25 15:09:22] – Executing [[email protected]:1] NoOp(“SIP/300-09a36bd0”, “Blackhole Dest: Busy”) in new stack
VERBOSE[16815] logger.c: [Apr 25 15:09:22] – Executing [[email protected]:2] Answer(“SIP/300-09a36bd0”, “”) in new stack
VERBOSE[16815] logger.c: [Apr 25 15:09:22] – Executing [[email protected]:3] PlayTones(“SIP/300-09a36bd0”, “busy”) in new stack
DEBUG[16815] channel.c: Set channel SIP/300-09a36bd0 to write format slin
VERBOSE[16815] logger.c: [Apr 25 15:09:22] – Executing [[email protected]:4] Busy(“SIP/300-09a36bd0”, “20”) in new stack
If I call the extension forwarded to 9996 (I’m 300, the called extension is 302) I have (note the Changing state for Local/[email protected]… - state 4 (Invalid)):
VERBOSE[16821] logger.c: [Apr 25 15:09:46] – Executing [[email protected]:1] NoOp(“Local/[email protected],2”, “Running miscapp 2: HANGUP”) in new stack
VERBOSE[16821] logger.c: [Apr 25 15:09:46] – Executing [[email protected]:2] Goto(“Local/[email protected],2”, “app-blackhole|busy|1”) in new stack
VERBOSE[16821] logger.c: [Apr 25 15:09:46] – Goto (app-blackhole,busy,1)
VERBOSE[16821] logger.c: [Apr 25 15:09:46] – Executing [[email protected]:1] NoOp(“Local/[email protected],2”, “Blackhole Dest: Busy”) in new stack
VERBOSE[16821] logger.c: [Apr 25 15:09:46] – Executing [[email protected]:2] Answer(“Local/[email protected],2”, “”) in new stack
VERBOSE[16821] logger.c: [Apr 25 15:09:46] – Executing [[email protected]:3] PlayTones(“Local/[email protected],2”, “busy”) in new stack
DEBUG[7165] devicestate.c: Changing state for Local/[email protected],2 - state 4 (Invalid)
DEBUG[16821] channel.c: Set channel Local/[email protected],2 to write format slin
DEBUG[7165] devicestate.c: No provider found, checking channel drivers for Local - [email protected]
DEBUG[16817] devicestate.c: Notification of state change to be queued on device/channel Local/[email protected],1
DEBUG[7169] app_queue.c: Device ‘Local/[email protected],2’ changed to state ‘4’ (Invalid) but we don’t care because they’re not a member of any queue.
VERBOSE[16821] logger.c: [Apr 25 15:09:46] – Executing [[email protected]:4] Busy(“Local/[email protected],2”, “20”) in new stack
DEBUG[16817] channel.c: Bridge stops bridging channels SIP/300-0996b6e0 and Local/[email protected],1
DEBUG[16817] rtp.c: Channel ‘’ has no RTP, not doing anything
DEBUG[16817] app_dial.c: Exiting with DIALSTATUS=ANSWER.
DEBUG[16817] app_macro.c: Spawn extension (macro-dial,s,7) exited non-zero on ‘SIP/300-0996b6e0’ in macro ‘dial’
And the call is immediately terminated without busy tones. How can I correct this?