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 [9996@from-internal:1] NoOp(“SIP/300-09a36bd0”, “Running miscapp 2: HANGUP”) in new stack
VERBOSE[16815] logger.c: [Apr 25 15:09:22] – Executing [9996@from-internal: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 [busy@app-blackhole:1] NoOp(“SIP/300-09a36bd0”, “Blackhole Dest: Busy”) in new stack
VERBOSE[16815] logger.c: [Apr 25 15:09:22] – Executing [busy@app-blackhole:2] Answer(“SIP/300-09a36bd0”, “”) in new stack
VERBOSE[16815] logger.c: [Apr 25 15:09:22] – Executing [busy@app-blackhole: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 [busy@app-blackhole: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/9996@from-internal… - state 4 (Invalid)):
VERBOSE[16821] logger.c: [Apr 25 15:09:46] – Executing [9996@from-internal:1] NoOp(“Local/9996@from-internal-a316,2”, “Running miscapp 2: HANGUP”) in new stack
VERBOSE[16821] logger.c: [Apr 25 15:09:46] – Executing [9996@from-internal:2] Goto(“Local/9996@from-internal-a316,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 [busy@app-blackhole:1] NoOp(“Local/9996@from-internal-a316,2”, “Blackhole Dest: Busy”) in new stack
VERBOSE[16821] logger.c: [Apr 25 15:09:46] – Executing [busy@app-blackhole:2] Answer(“Local/9996@from-internal-a316,2”, “”) in new stack
VERBOSE[16821] logger.c: [Apr 25 15:09:46] – Executing [busy@app-blackhole:3] PlayTones(“Local/9996@from-internal-a316,2”, “busy”) in new stack
DEBUG[7165] devicestate.c: Changing state for Local/9996@from-internal-a316,2 - state 4 (Invalid)
DEBUG[16821] channel.c: Set channel Local/9996@from-internal-a316,2 to write format slin
DEBUG[7165] devicestate.c: No provider found, checking channel drivers for Local - 9996@from-internal
DEBUG[16817] devicestate.c: Notification of state change to be queued on device/channel Local/9996@from-internal-a316,1
DEBUG[7169] app_queue.c: Device ‘Local/9996@from-internal-a316,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 [busy@app-blackhole:4] Busy(“Local/9996@from-internal-a316,2”, “20”) in new stack
DEBUG[16817] channel.c: Bridge stops bridging channels SIP/300-0996b6e0 and Local/9996@from-internal-a316,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?