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 [4150680@from-internal:1] Macro(“SIP/400-08dcede0”, “dialout-trunk|2|4150680||”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/400-08dcede0”, “DIAL_TRUNK=2”) in new stack
– Executing [s@macro-dialout-trunk:2] Set(“SIP/400-08dcede0”, “DIAL_NUMBER=4150680”) in new stack
– Executing [s@macro-dialout-trunk:3] Set(“SIP/400-08dcede0”, “ROUTE_PASSWD=”) in new stack
– Executing [s@macro-dialout-trunk:4] GotoIf(“SIP/400-08dcede0”, “1?noauth”) in new stack
– Goto (macro-dialout-trunk,s,6)
– Executing [s@macro-dialout-trunk:6] GotoIf(“SIP/400-08dcede0”, “0?disabletrunk|1”) in new stack
– Executing [s@macro-dialout-trunk:7] Set(“SIP/400-08dcede0”, “_NODEST=”) in new stack
– Executing [s@macro-dialout-trunk:8] Set(“SIP/400-08dcede0”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:9] Set(“SIP/400-08dcede0”, “GROUP()=OUT_2”) in new stack
– Executing [s@macro-dialout-trunk:10] Macro(“SIP/400-08dcede0”, “user-callerid|SKIPTTL”) in new stack
– Executing [s@macro-user-callerid:1] NoOp(“SIP/400-08dcede0”, “user-callerid: device 400”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/400-08dcede0”, “AMPUSER=400”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/400-08dcede0”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] GotoIf(“SIP/400-08dcede0”, “0?start”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/400-08dcede0”, “REALCALLERIDNUM=400”) in new stack
– Executing [s@macro-user-callerid:6] NoOp(“SIP/400-08dcede0”, “REALCALLERIDNUM is 400”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/400-08dcede0”, “AMPUSER=400”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/400-08dcede0”, “AMPUSERCIDNAME=Jim Lawrence”) in new stack
– Executing [s@macro-user-callerid:9] GotoIf(“SIP/400-08dcede0”, “0?report”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/400-08dcede0”, “AMPUSERCID=400”) in new stack
– Executing [s@macro-user-callerid:11] Set(“SIP/400-08dcede0”, “CALLERID(all)=“Jim Lawrence” <400>”) in new stack
– Executing [s@macro-user-callerid:12] Set(“SIP/400-08dcede0”, “REALCALLERIDNUM=400”) in new stack
– Executing [s@macro-user-callerid:13] NoOp(“SIP/400-08dcede0”, “TTL: ARG1: SKIPTTL”) in new stack
– Executing [s@macro-user-callerid:14] GotoIf(“SIP/400-08dcede0”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,23)
– Executing [s@macro-user-callerid:23] NoOp(“SIP/400-08dcede0”, “Using CallerID “Jim Lawrence” <400>”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/400-08dcede0”, “record-enable|400|OUT”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“SIP/400-08dcede0”, “0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable: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 [s@macro-record-enable:5] NoOp(“SIP/400-08dcede0”, “No recording needed”) in new stack
– Executing [s@macro-dialout-trunk:12] GotoIf(“SIP/400-08dcede0”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/400-08dcede0”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:14] Macro(“SIP/400-08dcede0”, “outbound-callerid|2”) in new stack
– Executing [s@macro-outbound-callerid:1] GotoIf(“SIP/400-08dcede0”, “1?start”) in new stack
– Goto (macro-outbound-callerid,s,3)
– Executing [s@macro-outbound-callerid:3] NoOp(“SIP/400-08dcede0”, “REALCALLERIDNUM is 400”) in new stack
– Executing [s@macro-outbound-callerid:4] GotoIf(“SIP/400-08dcede0”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,9)
– Executing [s@macro-outbound-callerid:9] Set(“SIP/400-08dcede0”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:10] Set(“SIP/400-08dcede0”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:11] Set(“SIP/400-08dcede0”, “TRUNKOUTCID=15852003547”) in new stack
– Executing [s@macro-outbound-callerid:12] GotoIf(“SIP/400-08dcede0”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,16)
– Executing [s@macro-outbound-callerid:16] GotoIf(“SIP/400-08dcede0”, “0?usercid”) in new stack
– Executing [s@macro-outbound-callerid:17] Set(“SIP/400-08dcede0”, “CALLERID(all)=15852003547”) in new stack
– Executing [s@macro-outbound-callerid:18] GotoIf(“SIP/400-08dcede0”, “1?report”) in new stack
– Goto (macro-outbound-callerid,s,22)
– Executing [s@macro-outbound-callerid:22] NoOp(“SIP/400-08dcede0”, “CallerID set to “” <15852003547>”) in new stack
– Executing [s@macro-dialout-trunk:15] GotoIf(“SIP/400-08dcede0”, “0?nomax”) in new stack
– Executing [s@macro-dialout-trunk:16] GotoIf(“SIP/400-08dcede0”, “0?chanfull”) in new stack
– Executing [s@macro-dialout-trunk: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 [s@macro-dialout-trunk:18] Set(“SIP/400-08dcede0”, “OUTNUM=+4150680”) in new stack
– Executing [s@macro-dialout-trunk:19] Set(“SIP/400-08dcede0”, “custom=SIP/BanwidthSIP”) in new stack
– Executing [s@macro-dialout-trunk:20] GotoIf(“SIP/400-08dcede0”, “1?gocall”) in new stack
– Goto (macro-dialout-trunk,s,24)
– Executing [s@macro-dialout-trunk:24] GotoIf(“SIP/400-08dcede0”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk: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/+4150680@from-sip-external’ (thanks to SIP/BanwidthSIP-08dccfd8)
– Executing [+4150680@from-sip-external:1] NoOp(“Local/+4150680@from-sip-external-a7ff,2”, “Received incoming SIP connection from unknown peer to +4150680”) in new stack
– Executing [+4150680@from-sip-external:2] Set(“Local/+4150680@from-sip-external-a7ff,2”, “DID=+4150680”) in new stack
– Executing [+4150680@from-sip-external:3] Goto(“Local/+4150680@from-sip-external-a7ff,2”, “s|1”) in new stack
– Goto (from-sip-external,s,1)
– Executing [s@from-sip-external:1] GotoIf(“Local/+4150680@from-sip-external-a7ff,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 [s@macro-dialout-trunk:26] Goto(“SIP/400-08dcede0”, “s-CHANUNAVAIL|1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf(“SIP/400-08dcede0”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp(“SIP/400-08dcede0”, “TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks”) in new stack
– Executing [4150680@from-internal:2] Macro(“SIP/400-08dcede0”, “outisbusy|”) in new stack
– Executing [s@macro-outisbusy:1] Playback(“SIP/400-08dcede0”, “all-circuits-busy-now|noanswer”) in new stack
– Playing ‘all-circuits-busy-now’ (language ‘en’)
– Executing [s@macro-outisbusy: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’