info call back

leviatano
Joined: Wed 08 of Jul, 2009

info call back

Posted:Fri 10 of Jul, 2009 (10:45 UTC)
looking out to a php script of asterisk call back at this link :http://www.voip-info.org/wiki/view/Asterisk+tips+Call+Back i've found this solution very helpful to solve a problem i had.
The configuration i've setup works fine i hear the voice on busy extension and when i press "5" the script callback runs correctly but it didn't create the callback file in the outgoing directory so when it hangs up. nobody callback the extension. the permissions have been setup good. but i still didn't find errors. Does any one received that kind of behaviour before?

i put my console log there in case it could help:
— Goto (macro-exten-vm,s-BUSY,1)
— Executing s-BUSY@macro-exten-vm:1 ChanIsAvail("SIP/200-09784128", "SIP/200|s") in new stack
— Executing s-BUSY@macro-exten-vm:2 Read("SIP/200-09784128", "digit|callback|1") in new stack
— Accepting a maximum of 1 digits.
— <SIP/200-09784128> Playing 'callback' (language 'it')
— User entered '5'
— Executing s-BUSY@macro-exten-vm:3 PlayTones("SIP/200-09784128", "congestion") in new stack
— Executing s-BUSY@macro-exten-vm:4 GotoIf("SIP/200-09784128", "$ "5" = "5"?callback|1:5") in new stack
— Goto (macro-exten-vm,callback,1)
— Executing callback@macro-exten-vm:1 AGI("SIP/200-09784128", "callback|200") in new stack
— Launched AGI Script /var/lib/asterisk/agi-bin/callback
— AGI Script callback completed, returning 0
— Executing callback@macro-exten-vm:2 Hangup("SIP/200-09784128", "") in new stack
== Spawn extension (macro-exten-vm, callback, 2) exited non-zero on 'SIP/200-09784128' in macro 'exten-vm'
== Spawn extension (from-internal, 200, 2) exited non-zero on 'SIP/200-09784128'
— Executing h@from-internal:1 Macro("SIP/200-09784128", "hangupcall") in new stack
— Executing s@macro-hangupcall:1 ResetCDR("SIP/200-09784128", "w") in new stack
— Executing s@macro-hangupcall:2 NoCDR("SIP/200-09784128", "") in new stack
— Executing s@macro-hangupcall:3 GotoIf("SIP/200-09784128", "1?skiprg") in new stack
— Goto (macro-hangupcall,s,6)
— Executing s@macro-hangupcall:6 GotoIf("SIP/200-09784128", "1?skipblkvm") in new stack
— Goto (macro-hangupcall,s,9)
— Executing s@macro-hangupcall:9 GotoIf("SIP/200-09784128", "1?theend") in new stack
— Goto (macro-hangupcall,s,11)
— Executing s@macro-hangupcall:11 Hangup("SIP/200-09784128", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/200-09784128' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/200-09784128'
— Stopped music on hold on SIP/SIP1-09788df8
— Executing h@macro-dialout-trunk:1 Macro("SIP/200-097aeae0", "hangupcall|") in new stack
— Executing s@macro-hangupcall:1 ResetCDR("SIP/200-097aeae0", "w") in new stack
— Executing s@macro-hangupcall:2 NoCDR("SIP/200-097aeae0", "") in new stack
— Executing s@macro-hangupcall:3 GotoIf("SIP/200-097aeae0", "1?skiprg") in new stack
— Goto (macro-hangupcall,s,6)
— Executing s@macro-hangupcall:6 GotoIf("SIP/200-097aeae0", "1?skipblkvm") in new stack
— Goto (macro-hangupcall,s,9)
— Executing s@macro-hangupcall:9 GotoIf("SIP/200-097aeae0", "1?theend") in new stack
— Goto (macro-hangupcall,s,11)
— Executing s@macro-hangupcall:11 Hangup("SIP/200-097aeae0", "") in new stack





thanks in advance

Lev