Trixbox 2.6 Outbound does not work.
Hi you all,
While setting up our voip server we've met some problems with the newest version 2.6.
Inbound call's from dutch provider budgetphone are working fine. While setting up the outbound i've got the following configuration like below;
disallow=all
allow=g729
context=from-pstn
fromdomain=budgetphone.nl
fromuser=315XXXXXXXXX
host=budgetphone.nl
insecure=invite,port
qualify=yes
secret=XXXXXXXX
type=friend
user=315XXXXXXXXX
username=315XXXXXXXXX
Userdetails;
empty.
The register goes without problems, our inbound calls are routed correctly and the phone
rings (Linksys spa922).
If i call a number i will get the following results in the Asterisk CLI;
-- Executing [s@macro-record-enable:5] NoOp("SIP/201-09508358", "No recording needed") in new stack
-- Executing [0202313123@from-internal:4] Macro("SIP/201-09508358", "dialout-trunk|2|0202313123||") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/201-09508358", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/201-09508358", "0|Authenticate|") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/201-09508358", "0?disabletrunk|1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/201-09508358", "DIAL_NUMBER=0202313123") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/201-09508358", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/201-09508358", "GROUP()=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/201-09508358", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/201-09508358", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/201-09508358", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/201-09508358", "outbound-callerid|2") in new stack
-- Executing [s@macro-outbound-callerid:1] GotoIf("SIP/201-09508358", "1?start") in new stack
-- Goto (macro-outbound-callerid,s,3)
-- Executing [s@macro-outbound-callerid:3] NoOp("SIP/201-09508358", "REALCALLERIDNUM is 201") in new stack
-- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/201-09508358", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,9)
-- Executing [s@macro-outbound-callerid:9] Set("SIP/201-09508358", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:10] Set("SIP/201-09508358", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:11] Set("SIP/201-09508358", "TRUNKOUTCID=3243232324") in new stack
-- Executing [s@macro-outbound-callerid:12] GotoIf("SIP/201-09508358", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,16)
-- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/201-09508358", "0?usercid") in new stack
-- Executing [s@macro-outbound-callerid:17] Set("SIP/201-09508358", "CALLERID(all)=3243232324") in new stack
-- Executing [s@macro-outbound-callerid:18] GotoIf("SIP/201-09508358", "1?report") in new stack
-- Goto (macro-outbound-callerid,s,22)
-- Executing [s@macro-outbound-callerid:22] NoOp("SIP/201-09508358", "CallerID set to "" <3243232324>") in new stack
-- Executing [s@macro-dialout-trunk:12] AGI("SIP/201-09508358", "fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
> fixlocalprefix: Using pattern 0[012345789]XXXXXXXX
== fixlocalprefix: Dialpattern 0[012345789]XXXXXXXX matched. 0200123423-> 0200123423
-- AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/201-09508358", "OUTNUM=0202313123") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/201-09508358", "custom=SIP/budgetphone") in new stack
-- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/201-09508358", "1?gocall") in new stack
-- Goto (macro-dialout-trunk,s,17)
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/201-09508358", "dialout-trunk-predial-hook|") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/201-09508358", "0?bypass|1") in new stack
-- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/201-09508358", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:20] Dial("SIP/201-09508358", "SIP/budgetphone/0202313123|300|") in new stack
-- Couldn't call budgetphone/0200123423
== Everyone is busy/congested at this time (0:0/0/0)
-- Executing [s@macro-dialout-trunk:21] Goto("SIP/201-09508358", "s-CHANUNAVAIL|1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/201-09508358", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/201-09508358", "TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack
-- Executing [0202313123@from-internal:5] Macro("SIP/201-09508358", "dialout-trunk|2|0202313123||") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/201-09508358", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/201-09508358", "0|Authenticate|") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/201-09508358", "0?disabletrunk|1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/201-09508358", "DIAL_NUMBER=0202313123") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/201-09508358", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/201-09508358", "GROUP()=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/201-09508358", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/201-09508358", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/201-09508358", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/201-09508358", "outbound-callerid|2") in new stack
-- Executing [s@macro-outbound-callerid:1] GotoIf("SIP/201-09508358", "1?start") in new stack
-- Goto (macro-outbound-callerid,s,3)
-- Executing [s@macro-outbound-callerid:3] NoOp("SIP/201-09508358", "REALCALLERIDNUM is 201") in new stack
-- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/201-09508358", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,9)
-- Executing [s@macro-outbound-callerid:9] Set("SIP/201-09508358", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:10] Set("SIP/201-09508358", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:11] Set("SIP/201-09508358", "TRUNKOUTCID=3243232324") in new stack
-- Executing [s@macro-outbound-callerid:12] GotoIf("SIP/201-09508358", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,16)
-- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/201-09508358", "0?usercid") in new stack
-- Executing [s@macro-outbound-callerid:17] Set("SIP/201-09508358", "CALLERID(all)=3243232324") in new stack
-- Executing [s@macro-outbound-callerid:18] GotoIf("SIP/201-09508358", "1?report") in new stack
-- Goto (macro-outbound-callerid,s,22)
-- Executing [s@macro-outbound-callerid:22] NoOp("SIP/201-09508358", "CallerID set to "" <3243232324>") in new stack
-- Executing [s@macro-dialout-trunk:12] AGI("SIP/201-09508358", "fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
> fixlocalprefix: Using pattern 0[012345789]XXXXXXXX
== fixlocalprefix: Dialpattern 0[012345789]XXXXXXXX matched. 0202313123 -> 0202313123
-- AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/201-09508358", "OUTNUM=0202313123") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/201-09508358", "custom=SIP/budgetphone") in new stack
-- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/201-09508358", "1?gocall") in new stack
-- Goto (macro-dialout-trunk,s,17)
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/201-09508358", "dialout-trunk-predial-hook|") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/201-09508358", "0?bypass|1") in new stack
-- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/201-09508358", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:20] Dial("SIP/201-09508358", "SIP/budgetphone/0202313123|300|") in new stack
-- Couldn't call budgetphone/0202313123
== Everyone is busy/congested at this time (0:0/0/0)
-- Executing [s@macro-dialout-trunk:21] Goto("SIP/201-09508358", "s-CHANUNAVAIL|1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/201-09508358", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/201-09508358", "TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack
-- Executing [0202313123@from-internal:6] Macro("SIP/201-09508358", "outisbusy|") in new stack
-- Executing [s@macro-outisbusy:1] Playback("SIP/201-09508358", "all-circuits-busy-now|noanswer") in new stack
--
-- Executing [s@macro-outisbusy:2] Playback("SIP/201-09508358", "pls-try-call-later|noanswer") in new stack
--
== Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/201-09508358' in macro 'outisbusy'
== Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/201-09508358'
If i pick up the phone and call a number that divers from the dialpattern i've got a message like this;
-- ast_get_srv: SRV lookup for '_sip._udp.budgetphone.nl' mapped to host proxy.sipthor.net, port 5060
-- ast_get_srv: SRV lookup for '_sip._udp.budgetphone.nl' mapped to host proxy.sipthor.net, port 5060
-- ast_get_srv: SRV lookup for '_sip._udp.budgetphone.nl' mapped to host proxy.sipthor.net, port 5060
-- Executing [00594613940@from-internal:1] ResetCDR("SIP/201-09508358", "") in new stack
-- Executing [00594613940@from-internal:2] NoCDR("SIP/201-09508358", "") in new stack
-- Executing [00594613940@from-internal:3] Wait("SIP/201-09508358", "1") in new stack
-- Executing [00594613940@from-internal:4] Playback("SIP/201-09508358", "silence/1&cannot-complete-as-dialed&check-number-dial-again|noanswer") in new stack
--
--
== Spawn extension (from-internal, 00594613940, 4) exited non-zero on 'SIP/201-09508358'
-- Executing [h@from-internal:1] Macro("SIP/201-09508358", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("SIP/201-09508358", "w") in new stack
-- Executing [s@macro-hangupcall:2] NoCDR("SIP/201-09508358", "") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("SIP/201-09508358", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] GotoIf("SIP/201-09508358", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/201-09508358", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Hangup("SIP/201-09508358", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/201-09508358' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/201-09508358'
I've spend many hours finding a solution for this problem, till now i do not get any further. Does anyone have a clue?
Kind regards,
Sipura


Member Since:
2008-05-20