Callback does not hung up

I have installed Bubba’s asterisk+freePBX and replaced it’s callback script with the Ruby-based one as advised in http://aussievoip.com.au/wiki/freePBX-Callback

I would like my callback to work without any digital receiptionist or IVR as follows. If someone calls in from a pre-set number, say (416) 123-4567, my PBX is supposed to answer and then immideately hung up without any voice prompts. Then the PBX is supposed to ring back at that pre-set number and connect it a pre-set PBX extension, say 1969.

In my PBX setup, I created callback with the following settings:
Callback description: “Mycallback”
Callback number: 4161234567
Delay before callback: 3
Destination after Callback: Core: ext. 1969

Then I created an inbound route with the field “DID number” blank and I put “4161234567” into the field “Caller ID number”. In “Set Destination” I clicked radio button besides “Callback” and in the drop-down field to the right there was “Mycallback”.

When I dial my PBX in-bound number from the number 4161234567, my PBX does answer, but does not hung up. Instead, I hear a voice message: “Person at extension 1 is unavailable, please leave your message after the tone…” The PBX does attempt to ring back at 4161234567 as it is supposed to. So if I hung up myself without listening to that voice message, callback does successfully ring back.

So all I need to fix is to have the callback hung up immideately after it has received the call from “4161234567.

Thanks!

Go grab the log of when you do this

[quote=“bubba”]Go grab the log of when you do this[/quote] What verbosity level is appropriate for such debugging?

[quote]Verbosity was 3 and is now 9
– Executing NoOp(“SIP/rybshik-09b2b490”, “Catch-All DID Match - Found 8008200342 - You probably want a DID for this.”) in new stack
– Executing Goto(“SIP/rybshik-09b2b490”, “ext-did|s|1”) in new stack
– Goto (ext-did,s,1)
– Executing Set(“SIP/rybshik-09b2b490”, “FROM_DID=s/4162738862”) in new stack
– Executing Goto(“SIP/rybshik-09b2b490”, “callback|1|1”) in new stack
– Goto (callback,1,1)
– Executing Set(“SIP/rybshik-09b2b490”, “CALL=4162738862”) in new stack
– Executing Set(“SIP/rybshik-09b2b490”, “DESTINATION=ext-local.2217.1”) in new stack
– Executing Set(“SIP/rybshik-09b2b490”, “SLEEP=5”) in new stack
– Executing System(“SIP/rybshik-09b2b490”, “/var/lib/asterisk/bin/callback 4162738862 ext-local.2217.1 5 &”) in new stack
– Executing Hangup(“SIP/rybshik-09b2b490”, “”) in new stack
== Spawn extension (callback, 1, 5) exited non-zero on ‘SIP/rybshik-09b2b490’
– Attempting call on Local/[email protected] for [email protected]:1 (Retry 1)
– Executing Macro(“Local/[email protected],2”, “dialout-trunk|4|14162738862||”) in new stack
– Executing Set(“Local/[email protected],2”, “DIAL_TRUNK=4”) in new stack
– Executing Set(“Local/[email protected],2”, “DIAL_NUMBER=14162738862”) in new stack
– Executing Set(“Local/[email protected],2”, “ROUTE_PASSWD=”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “1?noauth”) in new stack
– Goto (macro-dialout-trunk,s,6)
– Executing Set(“Local/[email protected],2”, “GROUP()=OUT_4”) in new stack
– Executing Macro(“Local/[email protected],2”, “user-callerid”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “1?report”) in new stack
– Goto (macro-user-callerid,s,9)
– Executing NoOp(“Local/[email protected],2”, “Using CallerID “Callback” <1234>”) in new stack
– Executing Macro(“Local/[email protected],2”, “record-enable|1234|OUT”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0 > 0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing AGI(“Local/[email protected],2”, “recordingcheck|20061019-165044|1161291044.4”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20061019-165044|1161291044.4: No AMPUSER db entry for 1234. Not recording
– AGI Script recordingcheck completed, returning 0
– Executing NoOp(“Local/[email protected],2”, “No recording needed”) in new stack
– Executing Macro(“Local/[email protected],2”, “outbound-callerid|4”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0?start”) in new stack
– Executing Set(“Local/[email protected],2”, “REALCALLERIDNUM=1234”) in new stack
– Executing NoOp(“Local/[email protected],2”, “REALCALLERIDNUM is 1234”) in new stack
– Executing Set(“Local/[email protected],2”, “USEROUTCID=”) in new stack
– Executing Set(“Local/[email protected],2”, “EMERGENCYCID=”) in new stack
– Executing Set(“Local/[email protected],2”, “TRUNKOUTCID=”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,11)
– Executing GotoIf(“Local/[email protected],2”, “1?usercid”) in new stack
– Goto (macro-outbound-callerid,s,13)
– Executing GotoIf(“Local/[email protected],2”, “1?report”) in new stack
– Goto (macro-outbound-callerid,s,17)
– Executing NoOp(“Local/[email protected],2”, “CallerID set to “Callback” <1234>”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,12)
– Executing AGI(“Local/[email protected],2”, “fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
fixlocalprefix: Could not parse /etc/asterisk/localprefixes.conf
– AGI Script fixlocalprefix completed, returning 0
– Executing Set(“Local/[email protected],2”, “OUTNUM=14162738862”) in new stack
– Executing Set(“Local/[email protected],2”, “custom=SIP/gizmo”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0?customtrunk”) in new stack
– Executing Dial(“Local/[email protected],2”, “SIP/gizmo/14162738862|120|r”) in new stack
– Called gizmo/14162738862
– SIP/gizmo-09b06360 answered Local/[email protected],2
> Channel Local/[email protected],1 was answered.
– Executing Macro(“Local/[email protected],1”, “exten-vm|2217|2217”) in new stack
– Executing Macro(“Local/[email protected],1”, “user-callerid”) in new stack
– Executing GotoIf(“Local/[email protected],1”, “1?report”) in new stack
– Goto (macro-user-callerid,s,9)
– Executing NoOp(“Local/[email protected],1”, “Using CallerID “Callback” <1234>”) in new stack
– Executing Set(“Local/[email protected],1”, “FROMCONTEXT=exten-vm”) in new stack
– Executing Set(“Local/[email protected],1”, “VMBOX=2217”) in new stack
– Executing Set(“Local/[email protected],1”, “EXTTOCALL=2217”) in new stack
– Executing Set(“Local/[email protected],1”, “CFUEXT=”) in new stack
– Executing Set(“Local/[email protected],1”, “RT=45”) in new stack
– Executing Macro(“Local/[email protected],1”, “record-enable|2217|IN”) in new stack
– Executing GotoIf(“Local/[email protected],1”, “0 > 0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing AGI(“Local/[email protected],1”, “recordingcheck|20061019-165046|1161291044.3”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20061019-165046|1161291044.3: Inbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing NoOp(“Local/[email protected],1”, “No recording needed”) in new stack
– Executing GotoIf(“Local/[email protected],1”, “1?dolocaldial|1”) in new stack
– Goto (macro-exten-vm,dolocaldial,1)
– Executing Macro(“Local/[email protected],1”, “dial||tr|2217”) in new stack
– Executing AGI(“Local/[email protected],1”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
– dialparties.agi: priority is 1
dialparties.agi: Caller ID name is ‘Callback’ number is '1234’
dialparties.agi: Methodology of ring is ‘none’
– dialparties.agi: Added extension 2217 to extension map
– dialparties.agi: Extension 2217 cf is disabled
– dialparties.agi: Extension 2217 do not disturb is disabled
> dialparties.agi: extnum: 2217
> dialparties.agi: exthascw: 1
> dialparties.agi: exthascfb: 0
> dialparties.agi: extcfb:
> dialparties.agi: exthascfu: 0
> dialparties.agi: extcfu:
– dialparties.agi: DbSet CALLTRACE/2217 to 1234
– AGI Script dialparties.agi completed, returning 0
– Executing Dial(“Local/[email protected],1”, “IAX2/2217||tr”) in new stack
– Called 2217
– Call accepted by 192.219.240.96 (format gsm)
– Format for call is gsm
– IAX2/2217-1 is ringing
== Spawn extension (macro-dialout-trunk, s, 16) exited non-zero on ‘Local/[email protected],2’ in macro ‘dialout-trunk’
== Spawn extension (macro-dialout-trunk, s, 16) exited non-zero on ‘Local/[email protected],2’
– Executing Macro(“Local/[email protected],2”, “hangupcall”) in new stack
– Executing ResetCDR(“Local/[email protected],2”, “w”) in new stack
– Executing NoCDR(“Local/[email protected],2”, “”) in new stack
– Executing Wait(“Local/[email protected],2”, “5”) in new stack
– Executing Hangup(“Local/[email protected],2”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘Local/[email protected],2’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘Local/[email protected],2’[/quote]