My Callback on freepbx 2.2.0beta1 used to work, but it was sketchy. Eventually it stopped working entirely for mysterious reasons, the only things I was ever modifying with freepbx was extensions, inbound routes, and trunks. So it was disappointing to see the Callback function whither away, since I use it the most.
I was running freepbx 2.2.0beta1 and Asterisk 1.2 for a year, when I caught wind that freepbx 2.2.1 is released, I thought I’d go into my freepbx directory and do an SVN update and installed freepbx 2.3.0alpha by mistake. No worries, I was hoping to upgrade the Callback module in the offchance it would work again. I had to manually edit my manager.conf file and retype my Asterisk Manager’s username and password. Then freepbx could connect to Asterisk. I connected to the online module repository and downloaded all the modules available. Very nice interface!
After setting up a Callback with a DISA, I thought I would be home free. Turns out I was encountering the same problem I always had with Callback. Here is a snippet of my CLI:
[code:1] == Parsing ‘/etc/asterisk/manager.conf’: Found
== Manager ‘rpatel’ logged on from 127.0.0.1
== Manager ‘rpatel’ logged off from 127.0.0.1
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Manager ‘rpatel’ logged on from 127.0.0.1
== Manager ‘rpatel’ logged off from 127.0.0.1
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Manager ‘rpatel’ logged on from 127.0.0.1
== Manager ‘rpatel’ logged off from 127.0.0.1
– Accepting AUTHENTICATED call from 199.172.228.206:
> requested format = gsm,
> requested prefs = (),
> actual format = ulaw,
> host prefs = (ulaw|alaw|gsm),
> priority = mine
– Executing Macro(“IAX2/104-5”, “dialout-trunk|21|0013605153566||”) in new stack
– Executing Set(“IAX2/104-5”, “DIAL_TRUNK=21”) in new stack
– Executing Set(“IAX2/104-5”, “DIAL_NUMBER=0013605153566”) in new stack
– Executing Set(“IAX2/104-5”, “ROUTE_PASSWD=”) in new stack
– Executing GotoIf(“IAX2/104-5”, “1?noauth”) in new stack
– Goto (macro-dialout-trunk,s,6)
– Executing GotoIf(“IAX2/104-5”, “0?disabletrunk|1”) in new stack
– Executing Set(“IAX2/104-5”, “_NODEST=”) in new stack
– Executing Set(“IAX2/104-5”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing Set(“IAX2/104-5”, “GROUP()=OUT_21”) in new stack
– Executing Macro(“IAX2/104-5”, “user-callerid|SKIPTTL”) in new stack
– Executing NoOp(“IAX2/104-5”, “user-callerid: zzzRajan Patel 104”) in new stack
– Executing GotoIf(“IAX2/104-5”, “0?report”) in new stack
– Executing GotoIf(“IAX2/104-5”, “0?start”) in new stack
– Executing Set(“IAX2/104-5”, “REALCALLERIDNUM=104”) in new stack
– Executing NoOp(“IAX2/104-5”, “REALCALLERIDNUM is 104”) in new stack
– Executing Set(“IAX2/104-5”, “AMPUSER=104”) in new stack
– Executing Set(“IAX2/104-5”, “AMPUSERCIDNAME=zzzRajan Patel”) in new stack
– Executing GotoIf(“IAX2/104-5”, “0?report”) in new stack
– Executing Set(“IAX2/104-5”, “AMPUSERCID=104”) in new stack
– Executing Set(“IAX2/104-5”, “CALLERID(all)=zzzRajan Patel <104>”) in new stack
– Executing Set(“IAX2/104-5”, “REALCALLERIDNUM=104”) in new stack
– Executing NoOp(“IAX2/104-5”, “TTL: ARG1: SKIPTTL”) in new stack
– Executing GotoIf(“IAX2/104-5”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,22)
– Executing NoOp(“IAX2/104-5”, “Using CallerID “zzzRajan Patel” <104>”) in new stack
– Executing Macro(“IAX2/104-5”, “record-enable|104|OUT”) in new stack
– Executing GotoIf(“IAX2/104-5”, “0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing DeadAGI(“IAX2/104-5”, “recordingcheck|20070524-215113|1180057873.600”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20070524-215113|1180057873.600: Outbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing NoOp(“IAX2/104-5”, “No recording needed”) in new stack
– Executing GotoIf(“IAX2/104-5”, “0?skipoutcid”) in new stack
– Executing Set(“IAX2/104-5”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing Macro(“IAX2/104-5”, “outbound-callerid|21”) in new stack
– Executing GotoIf(“IAX2/104-5”, “1?start”) in new stack
– Goto (macro-outbound-callerid,s,3)
– Executing NoOp(“IAX2/104-5”, “REALCALLERIDNUM is 104”) in new stack
– Executing GotoIf(“IAX2/104-5”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,9)
– Executing Set(“IAX2/104-5”, “USEROUTCID=“Rajan Patel” <3604880489>”) in new stack
– Executing Set(“IAX2/104-5”, “EMERGENCYCID=”) in new stack
– Executing Set(“IAX2/104-5”, “TRUNKOUTCID=”) in new stack
– Executing GotoIf(“IAX2/104-5”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,16)
– Executing GotoIf(“IAX2/104-5”, “1?usercid”) in new stack
– Goto (macro-outbound-callerid,s,18)
– Executing GotoIf(“IAX2/104-5”, “0?report”) in new stack
– Executing Set(“IAX2/104-5”, “CALLERID(all)=“Rajan Patel” <3604880489>”) in new stack
– Executing GotoIf(“IAX2/104-5”, “1?report:hidecid”) in new stack
– Goto (macro-outbound-callerid,s,22)
– Executing NoOp(“IAX2/104-5”, “CallerID set to “Rajan Patel” <3604880489>”) in new stack
– Executing GotoIf(“IAX2/104-5”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,17)
– Executing DeadAGI(“IAX2/104-5”, “fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
> fixlocalprefix: Using pattern 001345+XXXXXXX
> fixlocalprefix: Using pattern 001+NXXNXXXXXX
> fixlocalprefix: Using pattern 00+1NXXNXXXXXX
> fixlocalprefix: Using pattern 001NXXNXXXXXX
== fixlocalprefix: Dialpattern 001NXXNXXXXXX matched. 0013605153566 -> 0013605153566
– AGI Script fixlocalprefix completed, returning 0
– Executing Set(“IAX2/104-5”, “OUTNUM=0013605153566”) in new stack
– Executing Set(“IAX2/104-5”, “custom=SIP/VBKN”) in new stack
– Executing GotoIf(“IAX2/104-5”, “1?gocall”) in new stack
– Goto (macro-dialout-trunk,s,22)
– Executing GotoIf(“IAX2/104-5”, “0?customtrunk”) in new stack
– Executing Dial(“IAX2/104-5”, “SIP/VBKN/0013605153566|300|tr”) in new stack
– Called VBKN/0013605153566
– SIP/VBKN-08cf0b98 is making progress passing it to IAX2/104-5
– Executing NoOp(“SIP/66.54.140.46-b7d125f0”, “Received incoming SIP connection from unknown peer to 3605153566”) in new stack
– Executing Set(“SIP/66.54.140.46-b7d125f0”, “DID=3605153566”) in new stack
– Executing Goto(“SIP/66.54.140.46-b7d125f0”, “s|1”) in new stack
– Goto (from-sip-external,s,1)
– Executing Ringing(“SIP/66.54.140.46-b7d125f0”, “”) in new stack
– Executing GotoIf(“SIP/66.54.140.46-b7d125f0”, “1?from-trunk|3605153566|1”) in new stack
– Goto (from-trunk,3605153566,1)
– Executing Set(“SIP/66.54.140.46-b7d125f0”, “__FROM_DID=3605153566”) in new stack
– Executing Gosub(“SIP/66.54.140.46-b7d125f0”, “app-blacklist-check|s|1”) in new stack
– Executing LookupBlacklist(“SIP/66.54.140.46-b7d125f0”, “”) in new stack
– Executing GotoIf(“SIP/66.54.140.46-b7d125f0”, “0?blacklisted”) in new stack
– Executing Return(“SIP/66.54.140.46-b7d125f0”, “”) in new stack
– Executing GotoIf(“SIP/66.54.140.46-b7d125f0”, “1 ?cidok”) in new stack
– Goto (from-trunk,3605153566,5)
– Executing NoOp(“SIP/66.54.140.46-b7d125f0”, "CallerID is “Unknown” ") in new stack
– Executing Goto(“SIP/66.54.140.46-b7d125f0”, “callback|2|1”) in new stack
– Goto (callback,2,1)
– Executing Set(“SIP/66.54.140.46-b7d125f0”, “CALL=17329830228”) in new stack
– Executing Set(“SIP/66.54.140.46-b7d125f0”, “DESTINATION=disa.4.1”) in new stack
– Executing Set(“SIP/66.54.140.46-b7d125f0”, “SLEEP=5”) in new stack
– Executing System(“SIP/66.54.140.46-b7d125f0”, “/var/lib/asterisk/bin/callback 17329830228 disa.4.1 5 &”) in new stack
– Executing Hangup(“SIP/66.54.140.46-b7d125f0”, “”) in new stack
== Spawn extension (callback, 2, 5) exited non-zero on ‘SIP/66.54.140.46-b7d125f0’
[/code:1]
I made the call with my IDEFISK (extension 104) to a Voipbuster trunk, which gives me the best rates to my cell phone device. My cell phone bill is through the roof, since I use it to call my parents back in the states - the sooner I can get this resolved, the faster I begin saving some money.
Thanks all for your time and reading through this; if we can resolve the problem here on the forum - I hope this information can help someone else who has similar issues.