Hi, I am trying callback features with the freepbx setting as below:
Callback Description: Callback-1
Callback Number: Leave blank
Delay before callback: 5
Destination after callback: IVR : PT
For the incominig router I set destination as IVR ‘PT’, and one option
number ‘9999’ as callback number.
Upon call in with PSTN line at TDM400p FXO port, the cli shows as below:
– Starting simple switch on ‘Zap/3-1’
-- Executing NoOp("Zap/3-1", "Entering from-zaptel with DID == ") in new
stack
-- Executing Ringing("Zap/3-1", "") in new stack
-- Executing Set("Zap/3-1", "DID=s") in new stack
-- Executing NoOp("Zap/3-1", "DID is now s") in new stack
-- Executing GotoIf("Zap/3-1", "1?zapok:notzap") in new stack
-- Goto (from-zaptel,s,8)
-- Executing NoOp("Zap/3-1", "Is a Zaptel Channel") in new stack
-- Executing Set("Zap/3-1", "CHAN=3-1") in new stack
-- Executing Set("Zap/3-1", "CHAN=3") in new stack
-- Executing Macro("Zap/3-1", "from-zaptel-3|s|1") in new stack
-- Executing NoOp("Zap/3-1", "Entering macro-from-zaptel-3 with DID =
s") in new stack
-- Executing Gosub("Zap/3-1", "app-blacklist-check|s|1") in new stack
== Channel ‘Zap/3-1’ jumping out of macro ‘from-zaptel-3’
-- Executing LookupBlacklist("Zap/3-1", "") in new stack
-- Executing GotoIf("Zap/3-1", "0?blacklisted") in new stack
-- Executing Return("Zap/3-1", "") in new stack
-- Executing Set("Zap/3-1", "FROM_DID=s") in new stack
-- Executing Set("Zap/3-1", "FAX_RX=1100") in new stack
-- Executing Set("Zap/3-1", "[email protected]") in
new stack
-- Executing Answer("Zap/3-1", "") in new stack
-- Executing Wait("Zap/3-1", "6") in new stack
-- Executing Goto("Zap/3-1", "ivr-2|s|1") in new stack
-- Goto (ivr-2,s,1)
-- Executing Set("Zap/3-1", "LOOPCOUNT=0") in new stack
-- Executing Set("Zap/3-1", "__DIR-CONTEXT=default") in new stack
-- Executing Answer("Zap/3-1", "") in new stack
-- Executing Wait("Zap/3-1", "1") in new stack
-- Executing Set("Zap/3-1", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3
-- Executing Set("Zap/3-1", "TIMEOUT(response)=15") in new stack
-- Response timeout set to 15
-- Executing BackGround("Zap/3-1", "custom/general") in new stack
-- Playing 'custom/general' (language 'en')
== CDR updated on Zap/3-1
-- Executing Goto("Zap/3-1", "callback|1|1") in new stack
-- Goto (callback,1,1)
-- Executing Set("Zap/3-1", "CALL=97418592") in new stack
-- Executing Set("Zap/3-1", "DESTINATION=app-blackhole.hangup.1") in new
stack
-- Executing Set("Zap/3-1", "SLEEP=10") in new stack
-- Executing System("Zap/3-1", "/var/lib/asterisk/bin/callback 97418592
app-blackhole.hangup.1 10 &") in new stack
-- Executing Hangup("Zap/3-1", "") in new stack
== Spawn extension (callback, 1, 5) exited non-zero on ‘Zap/3-1’
-- Hungup 'Zap/3-1'
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
-- Executing Macro("Local/97418592@from-internal-0212,2",
“dialout-trunk|1|97418592||”) in new stack
-- Executing Set("Local/97418592@from-internal-0212,2", "DIAL_TRUNK=1")
in new stack
-- Executing Set("Local/97418592@from-internal-0212,2", "_NODEST=") in
new stack
-- Executing Set("Local/97418592@from-internal-0212,2",
“DIAL_NUMBER=97418592”) in new stack
-- Executing Set("Local/97418592@from-internal-0212,2", "ROUTE_PASSWD=")
in new stack
-- Executing Set("Local/97418592@from-internal-0212,2",
“DIAL_TRUNK_OPTIONS=tr”) in new stack
-- Executing GotoIf("Local/97418592@from-internal-0212,2", "1?noauth")
in new stack
-- Goto (macro-dialout-trunk,s,8)
-- Executing Set("Local/97418592@from-internal-0212,2", "GROUP()=OUT_1")
in new stack
-- Executing Macro("Local/97418592@from-internal-0212,2",
“user-callerid|SKIPTTL”) in new stack
-- Executing NoOp("Local/97418592@from-internal-0212,2", "user-callerid:
Callback ") in new stack
-- Executing GotoIf("Local/97418592@from-internal-0212,2", "1?report")
in new stack
-- Goto (macro-user-callerid,s,11)
-- Executing NoOp("Local/97418592@from-internal-0212,2", "TTL: ARG1:
SKIPTTL") in new stack
-- Executing GotoIf("Local/97418592@from-internal-0212,2", "1?continue")
in new stack
-- Goto (macro-user-callerid,s,21)
-- Executing NoOp("Local/97418592@from-internal-0212,2", "Using CallerID
“Callback” <>") in new stack
-- Executing Macro("Local/97418592@from-internal-0212,2",
“record-enable||OUT”) in new stack
-- Executing GotoIf("Local/97418592@from-internal-0212,2", "0 > 0?2:4")
in new stack
-- Goto (macro-record-enable,s,4)
-- Executing DeadAGI("Local/97418592@from-internal-0212,2",
“recordingcheck|20070107-002551|1168100751.6”) in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20070107-002551|1168100751.6: PHPAGI internal
configuration:
recordingcheck|20070107-002551|1168100751.6: Array
recordingcheck|20070107-002551|1168100751.6: (
recordingcheck|20070107-002551|1168100751.6: [phpagi] => Array
recordingcheck|20070107-002551|1168100751.6: (
recordingcheck|20070107-002551|1168100751.6: [debug] => 1
recordingcheck|20070107-002551|1168100751.6: [error_handler]
=> 1
recordingcheck|20070107-002551|1168100751.6: [admin] =>
[email protected]
recordingcheck|20070107-002551|1168100751.6: [hostname] => PT2
recordingcheck|20070107-002551|1168100751.6: [tempdir] => /tmp
recordingcheck|20070107-002551|1168100751.6: )
recordingcheck|20070107-002551|1168100751.6:
recordingcheck|20070107-002551|1168100751.6: [asmanager] => Array
recordingcheck|20070107-002551|1168100751.6: (
recordingcheck|20070107-002551|1168100751.6: [server] =>
localhost
recordingcheck|20070107-002551|1168100751.6: [port] => 5038
recordingcheck|20070107-002551|1168100751.6: [username] =>
recordingcheck|20070107-002551|1168100751.6: [secret] =>
recordingcheck|20070107-002551|1168100751.6: )
recordingcheck|20070107-002551|1168100751.6:
recordingcheck|20070107-002551|1168100751.6: [fastagi] => Array
recordingcheck|20070107-002551|1168100751.6: (
recordingcheck|20070107-002551|1168100751.6: [setuid] => 1
recordingcheck|20070107-002551|1168100751.6: [basedir] =>
/var/lib/asterisk/agi-bin/
recordingcheck|20070107-002551|1168100751.6: )
recordingcheck|20070107-002551|1168100751.6:
recordingcheck|20070107-002551|1168100751.6: [festival] => Array
recordingcheck|20070107-002551|1168100751.6: (
recordingcheck|20070107-002551|1168100751.6: [text2wave] =>
/usr/bin/text2wave
recordingcheck|20070107-002551|1168100751.6: )
recordingcheck|20070107-002551|1168100751.6:
recordingcheck|20070107-002551|1168100751.6: [cepstral] => Array
recordingcheck|20070107-002551|1168100751.6: (
recordingcheck|20070107-002551|1168100751.6: [swift] =>
/opt/swift/bin/swift
recordingcheck|20070107-002551|1168100751.6: [voice] => David
recordingcheck|20070107-002551|1168100751.6: )
recordingcheck|20070107-002551|1168100751.6:
recordingcheck|20070107-002551|1168100751.6: )
recordingcheck|20070107-002551|1168100751.6:
recordingcheck|20070107-002551|1168100751.6: No AMPUSER db entry for . Not
recording
-- AGI Script recordingcheck completed, returning 0
-- Executing NoOp("Local/97418592@from-internal-0212,2", "No recording
needed") in new stack
-- Executing GotoIf("Local/97418592@from-internal-0212,2",
“0?skipoutcid”) in new stack
-- Executing Set("Local/97418592@from-internal-0212,2",
“DIAL_TRUNK_OPTIONS=r”) in new stack
-- Executing Macro("Local/97418592@from-internal-0212,2",
“outbound-callerid|1”) in new stack
-- Executing GotoIf("Local/97418592@from-internal-0212,2", "0?start") in
new stack
-- Executing Set("Local/97418592@from-internal-0212,2",
“REALCALLERIDNUM=”) in new stack
-- Executing NoOp("Local/97418592@from-internal-0212,2",
"REALCALLERIDNUM is ") in new stack
-- Executing GotoIf("Local/97418592@from-internal-0212,2", "1?normcid")
in new stack
-- Goto (macro-outbound-callerid,s,9)
-- Executing Set("Local/97418592@from-internal-0212,2", "USEROUTCID=")
in new stack
-- Executing Set("Local/97418592@from-internal-0212,2", "EMERGENCYCID=")
in new stack
-- Executing Set("Local/97418592@from-internal-0212,2",
“TRUNKOUTCID=“PT2” <64811788>”) in new stack
-- Executing GotoIf("Local/97418592@from-internal-0212,2", "1?trunkcid")
in new stack
-- Goto (macro-outbound-callerid,s,16)
-- Executing GotoIf("Local/97418592@from-internal-0212,2", "0?usercid")
in new stack
-- Executing Set("Local/97418592@from-internal-0212,2",
“CALLERID(all)=“PT2” <64811788>”) in new stack
-- Executing GotoIf("Local/97418592@from-internal-0212,2", "1?report")
in new stack
-- Goto (macro-outbound-callerid,s,22)
-- Executing NoOp("Local/97418592@from-internal-0212,2", "CallerID set
to “PT2” <64811788>") in new stack
-- Executing GotoIf("Local/97418592@from-internal-0212,2", "0?nomax") in
new stack
-- Executing GotoIf("Local/97418592@from-internal-0212,2", "0?chanfull")
in new stack
-- Executing DeadAGI("Local/97418592@from-internal-0212,2",
“fixlocalprefix”) in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
fixlocalprefix: PHPAGI internal configuration:
fixlocalprefix: Array
fixlocalprefix: (
fixlocalprefix: [phpagi] => Array
fixlocalprefix: (
fixlocalprefix: [debug] => 1
fixlocalprefix: [error_handler] => 1
fixlocalprefix: [admin] => [email protected]
fixlocalprefix: [hostname] => PT2
fixlocalprefix: [tempdir] => /tmp
fixlocalprefix: )
fixlocalprefix:
fixlocalprefix: [asmanager] => Array
fixlocalprefix: (
fixlocalprefix: [server] => localhost
fixlocalprefix: [port] => 5038
fixlocalprefix: [username] =>
fixlocalprefix: [secret] =>
fixlocalprefix: )
fixlocalprefix:
fixlocalprefix: [fastagi] => Array
fixlocalprefix: (
fixlocalprefix: [setuid] => 1
fixlocalprefix: [basedir] => /var/lib/asterisk/agi-bin/
fixlocalprefix: )
fixlocalprefix:
fixlocalprefix: [festival] => Array
fixlocalprefix: (
fixlocalprefix: [text2wave] => /usr/bin/text2wave
fixlocalprefix: )
fixlocalprefix:
fixlocalprefix: [cepstral] => Array
fixlocalprefix: (
fixlocalprefix: [swift] => /opt/swift/bin/swift
fixlocalprefix: [voice] => David
fixlocalprefix: )
fixlocalprefix:
fixlocalprefix: )
fixlocalprefix:
> fixlocalprefix: Using pattern 9XXXXXXX
== fixlocalprefix: Dialpattern 9XXXXXXX matched. 97418592 -> 97418592
-- AGI Script fixlocalprefix completed, returning 0
-- Executing Set("Local/97418592@from-internal-0212,2",
“OUTNUM=97418592”) in new stack
-- Executing Set("Local/97418592@from-internal-0212,2", "custom=ZAP/g0")
in new stack
-- Executing GotoIf("Local/97418592@from-internal-0212,2",
“0?customtrunk”) in new stack
-- Executing Dial("Local/97418592@from-internal-0212,2",
“ZAP/g0/97418592|300|r”) in new stack
-- Called g0/97418592
-- Zap/3-1 answered Local/97418592@from-internal-0212,2
> Channel Local/97418592@from-internal-0212,1 was answered.
== Manager ‘admin’ logged off from 127.0.0.1
-- Executing NoOp("Local/97418592@from-internal-0212,1", "Blackhole
Dest: Hangup") in new stack
-- Executing Hangup("Local/97418592@from-internal-0212,1", "") in new
stack
== Spawn extension (app-blackhole, hangup, 2) exited non-zero on
’Local/97418592@from-internal-0212,1’
-- Hungup 'Zap/3-1'
== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on
’Local/97418592@from-internal-0212,2’ in macro ‘dialout-trunk’
== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on
’Local/97418592@from-internal-0212,2’
-- Executing Macro("Local/97418592@from-internal-0212,2", "hangupcall")
in new stack
-- Executing ResetCDR("Local/97418592@from-internal-0212,2", "w") in new
stack
-- Executing NoCDR("Local/97418592@from-internal-0212,2", "") in new
stack
-- Executing GotoIf("Local/97418592@from-internal-0212,2", "1?skiprg")
in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing GotoIf("Local/97418592@from-internal-0212,2", "1?theend")
in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing Wait("Local/97418592@from-internal-0212,2", "5") in new
stack
-- Executing Hangup("Local/97418592@from-internal-0212,2", "") in new
stack
== Spawn extension (macro-hangupcall, s, 10) exited non-zero on
’Local/97418592@from-internal-0212,2’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 10) exited non-zero on
’Local/97418592@from-internal-0212,2’
I notice that after the callback features call back my number, it
automatically hangup. Any one knows any wrong with it?
Do I need to manually modify anything? I am using freepbx 2.2.0rc3 +
asterisk 1.2.14.
Thanks for any suggestions.
Best Regards
Banshing
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users
Post generated using Mail2Forum (http://www.mail2forum.com)