Trixbox dialplan for Vicidial
Posted: Wed Aug 23, 2006 2:18 pm
Hello, I have been working on integrating vicidial and trixbox. Everything so far has been relatively simple. The problem that I have been having is dialing from a vicidial campaign. In the asterisk output Vicidial is unable to locate a trunk to dial out on.
> Channel SIP/102-c2f1 was answered.
-- Executing MeetMe("SIP/102-c2f1", "8600051") in new stack
-- Created MeetMe conference 1023 for conference '8600051'
-- Playing 'conf-onlyperson' (language 'en')
== Manager 'sendcron' logged off from 127.0.0.1
== Manager 'sendcron' logged on from 127.0.0.1
-- Executing Macro("Local/917274514974@from-internal-45b6,2", "dialout-trunk|1|17274514974|") in new stack
-- Executing GotoIf("Local/917274514974@from-internal-45b6,2", "1?3:2") in new stack
-- Goto (macro-dialout-trunk,s,3)
-- Executing Macro("Local/917274514974@from-internal-45b6,2", "user-callerid") in new stack
-- Executing GotoIf("Local/917274514974@from-internal-45b6,2", "1?report") in new stack
-- Goto (macro-user-callerid,s,9)
-- Executing NoOp("Local/917274514974@from-internal-45b6,2", "Using CallerID "V0822132458000000001" <0000000000>") in new stack
-- Executing Macro("Local/917274514974@from-internal-45b6,2", "record-enable|0000000000|OUT") in new stack
-- Executing GotoIf("Local/917274514974@from-internal-45b6,2", "0 > 0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing AGI("Local/917274514974@from-internal-45b6,2", "recordingcheck|20060822-132459|1156267499.9") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20060822-132459|1156267499.9: No AMPUSER db entry for 0000000000. Not recording
-- AGI Script recordingcheck completed, returning 0
-- Executing NoOp("Local/917274514974@from-internal-45b6,2", "No recording needed") in new stack
-- Executing Macro("Local/917274514974@from-internal-45b6,2", "outbound-callerid|1") in new stack
-- Executing GotoIf("Local/917274514974@from-internal-45b6,2", "0?start") in new stack
-- Executing Set("Local/917274514974@from-internal-45b6,2", "REALCALLERIDNUM=0000000000") in new stack
-- Executing NoOp("Local/917274514974@from-internal-45b6,2", "REALCALLERIDNUM is 0000000000") in new stack
-- Executing Set("Local/917274514974@from-internal-45b6,2", "USEROUTCID=") in new stack
-- Executing Set("Local/917274514974@from-internal-45b6,2", "EMERGENCYCID=") in new stack
-- Executing Set("Local/917274514974@from-internal-45b6,2", "TRUNKOUTCID=") in new stack
-- Executing GotoIf("Local/917274514974@from-internal-45b6,2", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,11)
-- Executing GotoIf("Local/917274514974@from-internal-45b6,2", "1?usercid") in new stack
-- Goto (macro-outbound-callerid,s,13)
-- Executing GotoIf("Local/917274514974@from-internal-45b6,2", "1?report") in new stack
-- Goto (macro-outbound-callerid,s,15)
-- Executing NoOp("Local/917274514974@from-internal-45b6,2", "CallerID set to "V0822132458000000001" <0000000000>") in new stack
-- Executing Set("Local/917274514974@from-internal-45b6,2", "GROUP()=OUT_1") in new stack
-- Executing GotoIf("Local/917274514974@from-internal-45b6,2", "0?108") in new stack
-- Executing Set("Local/917274514974@from-internal-45b6,2", "DIAL_NUMBER=17274514974") in new stack
-- Executing Set("Local/917274514974@from-internal-45b6,2", "DIAL_TRUNK=1") in new stack
-- Executing AGI("Local/917274514974@from-internal-45b6,2", "fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- AGI Script fixlocalprefix completed, returning 0
-- Executing Set("Local/917274514974@from-internal-45b6,2", "OUTNUM=17274514974") in new stack
-- Executing Set("Local/917274514974@from-internal-45b6,2", "custom=") in new stack
-- Executing GotoIf("Local/917274514974@from-internal-45b6,2", "0?16") in new stack
-- Executing Dial("Local/917274514974@from-internal-45b6,2", "/17274514974|120|r") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing Dial("Local/917274514974@from-internal-45b6,2", "/17274514974|55|to") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing Set("Local/917274514974@from-internal-45b6,2", "pre_num=") in new stack
-- Executing Set("Local/917274514974@from-internal-45b6,2", "the_num=") in new stack
-- Executing Set("Local/917274514974@from-internal-45b6,2", "post_num=") in new stack
-- Executing GotoIf("Local/917274514974@from-internal-45b6,2", "0?20:21") in new stack
-- Goto (macro-dialout-trunk,s,21)
-- Executing Dial("Local/917274514974@from-internal-45b6,2", "|120|r") in new stack
Any help with the dialplan would be greatly appriciated.
> Channel SIP/102-c2f1 was answered.
-- Executing MeetMe("SIP/102-c2f1", "8600051") in new stack
-- Created MeetMe conference 1023 for conference '8600051'
-- Playing 'conf-onlyperson' (language 'en')
== Manager 'sendcron' logged off from 127.0.0.1
== Manager 'sendcron' logged on from 127.0.0.1
-- Executing Macro("Local/917274514974@from-internal-45b6,2", "dialout-trunk|1|17274514974|") in new stack
-- Executing GotoIf("Local/917274514974@from-internal-45b6,2", "1?3:2") in new stack
-- Goto (macro-dialout-trunk,s,3)
-- Executing Macro("Local/917274514974@from-internal-45b6,2", "user-callerid") in new stack
-- Executing GotoIf("Local/917274514974@from-internal-45b6,2", "1?report") in new stack
-- Goto (macro-user-callerid,s,9)
-- Executing NoOp("Local/917274514974@from-internal-45b6,2", "Using CallerID "V0822132458000000001" <0000000000>") in new stack
-- Executing Macro("Local/917274514974@from-internal-45b6,2", "record-enable|0000000000|OUT") in new stack
-- Executing GotoIf("Local/917274514974@from-internal-45b6,2", "0 > 0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing AGI("Local/917274514974@from-internal-45b6,2", "recordingcheck|20060822-132459|1156267499.9") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20060822-132459|1156267499.9: No AMPUSER db entry for 0000000000. Not recording
-- AGI Script recordingcheck completed, returning 0
-- Executing NoOp("Local/917274514974@from-internal-45b6,2", "No recording needed") in new stack
-- Executing Macro("Local/917274514974@from-internal-45b6,2", "outbound-callerid|1") in new stack
-- Executing GotoIf("Local/917274514974@from-internal-45b6,2", "0?start") in new stack
-- Executing Set("Local/917274514974@from-internal-45b6,2", "REALCALLERIDNUM=0000000000") in new stack
-- Executing NoOp("Local/917274514974@from-internal-45b6,2", "REALCALLERIDNUM is 0000000000") in new stack
-- Executing Set("Local/917274514974@from-internal-45b6,2", "USEROUTCID=") in new stack
-- Executing Set("Local/917274514974@from-internal-45b6,2", "EMERGENCYCID=") in new stack
-- Executing Set("Local/917274514974@from-internal-45b6,2", "TRUNKOUTCID=") in new stack
-- Executing GotoIf("Local/917274514974@from-internal-45b6,2", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,11)
-- Executing GotoIf("Local/917274514974@from-internal-45b6,2", "1?usercid") in new stack
-- Goto (macro-outbound-callerid,s,13)
-- Executing GotoIf("Local/917274514974@from-internal-45b6,2", "1?report") in new stack
-- Goto (macro-outbound-callerid,s,15)
-- Executing NoOp("Local/917274514974@from-internal-45b6,2", "CallerID set to "V0822132458000000001" <0000000000>") in new stack
-- Executing Set("Local/917274514974@from-internal-45b6,2", "GROUP()=OUT_1") in new stack
-- Executing GotoIf("Local/917274514974@from-internal-45b6,2", "0?108") in new stack
-- Executing Set("Local/917274514974@from-internal-45b6,2", "DIAL_NUMBER=17274514974") in new stack
-- Executing Set("Local/917274514974@from-internal-45b6,2", "DIAL_TRUNK=1") in new stack
-- Executing AGI("Local/917274514974@from-internal-45b6,2", "fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- AGI Script fixlocalprefix completed, returning 0
-- Executing Set("Local/917274514974@from-internal-45b6,2", "OUTNUM=17274514974") in new stack
-- Executing Set("Local/917274514974@from-internal-45b6,2", "custom=") in new stack
-- Executing GotoIf("Local/917274514974@from-internal-45b6,2", "0?16") in new stack
-- Executing Dial("Local/917274514974@from-internal-45b6,2", "/17274514974|120|r") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing Dial("Local/917274514974@from-internal-45b6,2", "/17274514974|55|to") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing Set("Local/917274514974@from-internal-45b6,2", "pre_num=") in new stack
-- Executing Set("Local/917274514974@from-internal-45b6,2", "the_num=") in new stack
-- Executing Set("Local/917274514974@from-internal-45b6,2", "post_num=") in new stack
-- Executing GotoIf("Local/917274514974@from-internal-45b6,2", "0?20:21") in new stack
-- Goto (macro-dialout-trunk,s,21)
-- Executing Dial("Local/917274514974@from-internal-45b6,2", "|120|r") in new stack
Any help with the dialplan would be greatly appriciated.