Outgoing call failure to PortaSIP

Hi,

I’ve set up FreePBX and it’s working fine for internal and inbound calls but I cannot get outbound calls to connect.
I’m using TrixBox 2.0.0.1 and FreePBX 2.3.1.0.
I have 1 Trunk with the following Outgoing Settings:
fromuser=xxxxxxxxxxx
host=84.45.112.7
qualify=yes
secret=xxxxxx
type=portasipfriendly
username=xxxxxxxxxxx

Any ideas why this isn’t connecting? I don’t ever see anything hit my PortaSIP…

Debug info:

– Executing [07833904652@from-internal:1] Macro(“SIP/702-08fd50b8”, “dialout-trunk|2|07833904652||”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/702-08fd50b8”, “DIAL_TRUNK=2”) in new stack
– Executing [s@macro-dialout-trunk:2] Set(“SIP/702-08fd50b8”, “DIAL_NUMBER=07833904652”) in new stack
– Executing [s@macro-dialout-trunk:3] Set(“SIP/702-08fd50b8”, “ROUTE_PASSWD=”) in new stack
– Executing [s@macro-dialout-trunk:4] GotoIf(“SIP/702-08fd50b8”, “1?noauth”) in new stack
– Goto (macro-dialout-trunk,s,6)
– Executing [s@macro-dialout-trunk:6] GotoIf(“SIP/702-08fd50b8”, “0?disabletrunk|1”) in new stack
– Executing [s@macro-dialout-trunk:7] Set(“SIP/702-08fd50b8”, “_NODEST=”) in new stack
– Executing [s@macro-dialout-trunk:8] Set(“SIP/702-08fd50b8”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:9] Set(“SIP/702-08fd50b8”, “GROUP()=OUT_2”) in new stack
– Executing [s@macro-dialout-trunk:10] Macro(“SIP/702-08fd50b8”, “user-callerid|SKIPTTL”) in new stack
– Executing [s@macro-user-callerid:1] NoOp(“SIP/702-08fd50b8”, “user-callerid: device 702”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/702-08fd50b8”, “AMPUSER=702”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/702-08fd50b8”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] GotoIf(“SIP/702-08fd50b8”, “0?start”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/702-08fd50b8”, “REALCALLERIDNUM=702”) in new stack
– Executing [s@macro-user-callerid:6] NoOp(“SIP/702-08fd50b8”, “REALCALLERIDNUM is 702”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/702-08fd50b8”, “AMPUSER=702”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/702-08fd50b8”, “AMPUSERCIDNAME=Dan2”) in new stack
– Executing [s@macro-user-callerid:9] GotoIf(“SIP/702-08fd50b8”, “0?report”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/702-08fd50b8”, “AMPUSERCID=702”) in new stack
– Executing [s@macro-user-callerid:11] Set(“SIP/702-08fd50b8”, “CALLERID(all)=“Dan2” <702>”) in new stack
– Executing [s@macro-user-callerid:12] Set(“SIP/702-08fd50b8”, “REALCALLERIDNUM=702”) in new stack
– Executing [s@macro-user-callerid:13] NoOp(“SIP/702-08fd50b8”, “TTL: ARG1: SKIPTTL”) in new stack
– Executing [s@macro-user-callerid:14] GotoIf(“SIP/702-08fd50b8”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,23)
– Executing [s@macro-user-callerid:23] NoOp(“SIP/702-08fd50b8”, “Using CallerID “Dan2” <702>”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/702-08fd50b8”, “record-enable|702|OUT”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“SIP/702-08fd50b8”, “0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] AGI(“SIP/702-08fd50b8”, “recordingcheck|20080222-100602|1203674762.42”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20080222-100602|1203674762.42: Outbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing [s@macro-record-enable:5] NoOp(“SIP/702-08fd50b8”, “No recording needed”) in new stack
– Executing [s@macro-dialout-trunk:12] GotoIf(“SIP/702-08fd50b8”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/702-08fd50b8”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:14] Macro(“SIP/702-08fd50b8”, “outbound-callerid|2”) in new stack
– Executing [s@macro-outbound-callerid:1] GotoIf(“SIP/702-08fd50b8”, “1?start”) in new stack
– Goto (macro-outbound-callerid,s,3)
– Executing [s@macro-outbound-callerid:3] NoOp(“SIP/702-08fd50b8”, “REALCALLERIDNUM is 702”) in new stack
– Executing [s@macro-outbound-callerid:4] GotoIf(“SIP/702-08fd50b8”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,9)
– Executing [s@macro-outbound-callerid:9] Set(“SIP/702-08fd50b8”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:10] Set(“SIP/702-08fd50b8”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:11] Set(“SIP/702-08fd50b8”, “TRUNKOUTCID=02030022112”) in new stack
– Executing [s@macro-outbound-callerid:12] GotoIf(“SIP/702-08fd50b8”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,16)
– Executing [s@macro-outbound-callerid:16] GotoIf(“SIP/702-08fd50b8”, “0?usercid”) in new stack
– Executing [s@macro-outbound-callerid:17] Set(“SIP/702-08fd50b8”, “CALLERID(all)=02030022112”) in new stack
– Executing [s@macro-outbound-callerid:18] GotoIf(“SIP/702-08fd50b8”, “1?report”) in new stack
– Goto (macro-outbound-callerid,s,22)
– Executing [s@macro-outbound-callerid:22] NoOp(“SIP/702-08fd50b8”, “CallerID set to “” <02030022112>”) in new stack
– Executing [s@macro-dialout-trunk:15] GotoIf(“SIP/702-08fd50b8”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,17)
– Executing [s@macro-dialout-trunk:17] AGI(“SIP/702-08fd50b8”, “fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
> fixlocalprefix: Using pattern XXXXXXXXXXX
== fixlocalprefix: Dialpattern XXXXXXXXXXX matched. 07833904652 -> 07833904652
– AGI Script fixlocalprefix completed, returning 0
– Executing [s@macro-dialout-trunk:18] Set(“SIP/702-08fd50b8”, “OUTNUM=07833904652”) in new stack
– Executing [s@macro-dialout-trunk:19] Set(“SIP/702-08fd50b8”, “custom=SIP/Test”) in new stack
– Executing [s@macro-dialout-trunk:20] GotoIf(“SIP/702-08fd50b8”, “1?gocall”) in new stack
– Goto (macro-dialout-trunk,s,24)
– Executing [s@macro-dialout-trunk:24] GotoIf(“SIP/702-08fd50b8”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:25] Dial(“SIP/702-08fd50b8”, “SIP/Test/07833904652|300|”) in new stack
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [s@macro-dialout-trunk:26] Goto(“SIP/702-08fd50b8”, “s-CHANUNAVAIL|1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf(“SIP/702-08fd50b8”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp(“SIP/702-08fd50b8”, “TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks”) in new stack
– Executing [07833904652@from-internal:2] Macro(“SIP/702-08fd50b8”, “outisbusy|”) in new stack
– Executing [s@macro-outisbusy:1] Playback(“SIP/702-08fd50b8”, “all-circuits-busy-now|noanswer”) in new stack
– Executing [s@macro-outisbusy:2] Playback(“SIP/702-08fd50b8”, “pls-try-call-later|noanswer”) in new stack
– Executing [s@macro-outisbusy:3] Macro(“SIP/702-08fd50b8”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] ResetCDR(“SIP/702-08fd50b8”, “w”) in new stack
– Executing [s@macro-hangupcall:2] NoCDR(“SIP/702-08fd50b8”, “”) in new stack
– Executing [s@macro-hangupcall:3] GotoIf(“SIP/702-08fd50b8”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing [s@macro-hangupcall:6] GotoIf(“SIP/702-08fd50b8”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] GotoIf(“SIP/702-08fd50b8”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,11)
– Executing [s@macro-hangupcall:11] Hangup(“SIP/702-08fd50b8”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘SIP/702-08fd50b8’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘SIP/702-08fd50b8’ in macro ‘outisbusy’
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘SIP/702-08fd50b8’