Al circuits busy tb 2.4

I have trouble shot this issue to death. I’ve contacted bandwidth.com and they say the config is correct. But i cannot make a outbound call. the call never reaches bandwidth.com.

Setup

eth0 wan ip 74.42.245.173

eth1 local ip 192.168.31.0/

route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
74.42.245.168 * 255.255.255.248 U 0 0 0 eth0
192.168.31.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default 192.168.31.1 0.0.0.0 UG 0 0 0 eth1

I have a feeling that the issue is in the route above. or maybe not. the ip 74.42.245.168 is not my gateway I remember bandwidth telling me they will listen on .169. coud this be the issue? the default gateway above is my local router im not sure where to go anymore . i realy need this setup to work cause it is pointless to put a box ike this behind a router since the voip providers need all the ports open to begin with. I have no firewall rules applied at this time. When dialing out i get all circuits are busy.

sip trunk

Caller ID
15852003547

Dial Rules
1585+NXXNXXX
1+NXXNXXXXXX

Dial Prefix +

outgoing peer

allow=ulaw&g729
dtmfmode=rfc2833
fromdomain=74.42.245.173
host=74.42.245.173
nat=no
port=5060
qualify=no
type=peer

Bandwidth wants to see a + NPAN with all outbound calls. however when calling out in the asterisk cli it doesn’t appear to be happening.

Quote:

Verbosity is at least 4
– Executing [[email protected]:1] Macro(“SIP/400-08dcede0”, “dialout-trunk|2|4150680||”) in new stack
– Executing [[email protected]:1] Set(“SIP/400-08dcede0”, “DIAL_TRUNK=2”) in new stack
– Executing [[email protected]:2] Set(“SIP/400-08dcede0”, “DIAL_NUMBER=4150680”) in new stack
– Executing [[email protected]:3] Set(“SIP/400-08dcede0”, “ROUTE_PASSWD=”) in new stack
– Executing [[email protected]:4] GotoIf(“SIP/400-08dcede0”, “1?noauth”) in new stack
– Goto (macro-dialout-trunk,s,6)
– Executing [[email protected]:6] GotoIf(“SIP/400-08dcede0”, “0?disabletrunk|1”) in new stack
– Executing [[email protected]:7] Set(“SIP/400-08dcede0”, “_NODEST=”) in new stack
– Executing [[email protected]:8] Set(“SIP/400-08dcede0”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [[email protected]:9] Set(“SIP/400-08dcede0”, “GROUP()=OUT_2”) in new stack
– Executing [[email protected]:10] Macro(“SIP/400-08dcede0”, “user-callerid|SKIPTTL”) in new stack
– Executing [[email protected]:1] NoOp(“SIP/400-08dcede0”, “user-callerid: device 400”) in new stack
– Executing [[email protected]:2] Set(“SIP/400-08dcede0”, “AMPUSER=400”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/400-08dcede0”, “0?report”) in new stack
– Executing [[email protected]:4] GotoIf(“SIP/400-08dcede0”, “0?start”) in new stack
– Executing [[email protected]:5] Set(“SIP/400-08dcede0”, “REALCALLERIDNUM=400”) in new stack
– Executing [[email protected]:6] NoOp(“SIP/400-08dcede0”, “REALCALLERIDNUM is 400”) in new stack
– Executing [[email protected]:7] Set(“SIP/400-08dcede0”, “AMPUSER=400”) in new stack
– Executing [[email protected]:8] Set(“SIP/400-08dcede0”, “AMPUSERCIDNAME=Jim Lawrence”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/400-08dcede0”, “0?report”) in new stack
– Executing [[email protected]:10] Set(“SIP/400-08dcede0”, “AMPUSERCID=400”) in new stack
– Executing [[email protected]:11] Set(“SIP/400-08dcede0”, “CALLERID(all)=“Jim Lawrence” <400>”) in new stack
– Executing [[email protected]:12] Set(“SIP/400-08dcede0”, “REALCALLERIDNUM=400”) in new stack
– Executing [[email protected]:13] NoOp(“SIP/400-08dcede0”, “TTL: ARG1: SKIPTTL”) in new stack
– Executing [[email protected]:14] GotoIf(“SIP/400-08dcede0”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,23)
– Executing [[email protected]:23] NoOp(“SIP/400-08dcede0”, “Using CallerID “Jim Lawrence” <400>”) in new stack
– Executing [[email protected]:11] Macro(“SIP/400-08dcede0”, “record-enable|400|OUT”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/400-08dcede0”, “0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [[email protected]:4] AGI(“SIP/400-08dcede0”, “recordingcheck|20080223-073437|1203770077.37”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20080223-073437|1203770077.37: Outbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing [[email protected]:5] NoOp(“SIP/400-08dcede0”, “No recording needed”) in new stack
– Executing [[email protected]:12] GotoIf(“SIP/400-08dcede0”, “0?skipoutcid”) in new stack
– Executing [[email protected]:13] Set(“SIP/400-08dcede0”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [[email protected]:14] Macro(“SIP/400-08dcede0”, “outbound-callerid|2”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/400-08dcede0”, “1?start”) in new stack
– Goto (macro-outbound-callerid,s,3)
– Executing [[email protected]:3] NoOp(“SIP/400-08dcede0”, “REALCALLERIDNUM is 400”) in new stack
– Executing [[email protected]:4] GotoIf(“SIP/400-08dcede0”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,9)
– Executing [[email protected]:9] Set(“SIP/400-08dcede0”, “USEROUTCID=”) in new stack
– Executing [[email protected]:10] Set(“SIP/400-08dcede0”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:11] Set(“SIP/400-08dcede0”, “TRUNKOUTCID=15852003547”) in new stack
– Executing [[email protected]:12] GotoIf(“SIP/400-08dcede0”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,16)
– Executing [[email protected]:16] GotoIf(“SIP/400-08dcede0”, “0?usercid”) in new stack
– Executing [[email protected]:17] Set(“SIP/400-08dcede0”, “CALLERID(all)=15852003547”) in new stack
– Executing [[email protected]:18] GotoIf(“SIP/400-08dcede0”, “1?report”) in new stack
– Goto (macro-outbound-callerid,s,22)
– Executing [[email protected]:22] NoOp(“SIP/400-08dcede0”, “CallerID set to “” <15852003547>”) in new stack
– Executing [[email protected]:15] GotoIf(“SIP/400-08dcede0”, “0?nomax”) in new stack
– Executing [[email protected]:16] GotoIf(“SIP/400-08dcede0”, “0?chanfull”) in new stack
– Executing [[email protected]:17] AGI(“SIP/400-08dcede0”, “fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix

fixlocalprefix: Using pattern 1585+NXXNXXX
fixlocalprefix: Using pattern 1+NXXNXXXXXX
– AGI Script fixlocalprefix completed, returning 0
– Executing [[email protected]:18] Set(“SIP/400-08dcede0”, “OUTNUM=+4150680”) in new stack
– Executing [[email protected]:19] Set(“SIP/400-08dcede0”, “custom=SIP/BanwidthSIP”) in new stack
– Executing [[email protected]:20] GotoIf(“SIP/400-08dcede0”, “1?gocall”) in new stack
– Goto (macro-dialout-trunk,s,24)
– Executing [[email protected]:24] GotoIf(“SIP/400-08dcede0”, “0?customtrunk”) in new stack
– Executing [[email protected]:25] Dial(“SIP/400-08dcede0”, “SIP/BanwidthSIP/+4150680|300|”) in new stack
– Called BanwidthSIP/+4150680
– Got SIP response 482 “Loop Detected” back from 74.42.245.173
– Now forwarding SIP/400-08dcede0 to ‘Local/[email protected]’ (thanks to SIP/BanwidthSIP-08dccfd8)
– Executing [[email protected]:1] NoOp(“Local/[email protected],2”, “Received incoming SIP connection from unknown peer to +4150680”) in new stack
– Executing [[email protected]:2] Set(“Local/[email protected],2”, “DID=+4150680”) in new stack
– Executing [[email protected]:3] Goto(“Local/[email protected],2”, “s|1”) in new stack
– Goto (from-sip-external,s,1)
– Executing [[email protected]:1] GotoIf(“Local/[email protected],2”, “1?from-trunk|+4150680|1”) in new stack
– Goto (from-trunk,+4150680,1)
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [[email protected]:26] Goto(“SIP/400-08dcede0”, “s-CHANUNAVAIL|1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [[email protected]:1] GotoIf(“SIP/400-08dcede0”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
– Executing [[email protected]:3] NoOp(“SIP/400-08dcede0”, “TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks”) in new stack
– Executing [[email protected]:2] Macro(“SIP/400-08dcede0”, “outisbusy|”) in new stack
– Executing [[email protected]:1] Playback(“SIP/400-08dcede0”, “all-circuits-busy-now|noanswer”) in new stack
– Playing ‘all-circuits-busy-now’ (language ‘en’)
– Executing [[email protected]:2] Playback(“SIP/400-08dcede0”, “pls-try-call-later|noanswer”) in new stack
– Playing ‘pls-try-call-later’ (language ‘en’)
== Spawn extension (macro-outisbusy, s, 2) exited non-zero on ‘SIP/400-08dcede0’ in macro ‘outisbusy’
== Spawn extension (macro-outisbusy, s, 2) exited non-zero on ‘SIP/400-08dcede0’