Open Source Training Seminar


Not Logged in - No Account?

Don't have an account? Registering an account with us allows you to post to the forums, easily track new posts, subscribe to threads, pm (private message) other forum members, and receive periodic news letters (you can opt out if you desire). Once you are logged in this message will no longer appear. If you don't have an account, you can create one by registering here. Lost your password, request a new password. We respect your privacy which means we collect minimal information when you register and we do not resell that information or use it in any objectionable way. You can review our privacy policy for full details.


bandwidth.com and freepbx 2.4

ja133's picture

I cannot make outgoing calls with them using freepbx 2.4. On my other server (in my SAME network), which uses freepbx 2.3, outgoing calls are successful. bandwidth.com does not provide sip registration- they verify via IP adress. This may be the issue. This is part of what the CLI says:

-- Executing [s@macro-dialout-trunk:20] Dial("SIP/216-09873f00", "SIP/Bandwi dth2/+1213xxxxxxx|300|") in new stack
-- Couldn't call Bandwidth2/+1213xxxxxxx
== Everyone is busy/congested at this time (0:0/0/0)
-- Executing [s@macro-dialout-trunk:21] Goto("SIP/216-09873f00", "s-CHANUNAV AIL|1") in new stack

Please advise
Thanks

heres trunk setup
(Outbound dial prefix: +)

allow=ulaw
canreinvite=no
disallow=all
dtmfmode=rfc2833
host=216.82.225.202
nat=yes
port=5060
type=peer


__________________

Joseph Ades
Local Support in New York City & Remote Support Available

(718) 303-1061


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

never mind looks like it's

ja133's picture

never mind
looks like it's just on this particular system
anyone know whats wrong?


__________________

Joseph Ades
Local Support in New York City & Remote Support Available

(718) 303-1061


bandwidth.com and freepbx 2.4

blackstump's picture

Looks like Codec to me ...
If you do a sip debug on the call you will probably see it ....
if your config above is verbatim ...

allow=ulaw #allow ulaw
canreinvite=no
disallow=all #disallow all codecs even the one I just allowed
dtmfmode=rfc2833
host=216.82.225.202
nat=yes
port=5060
type=peer

no more codecs allowed .... swap them around and see if that fixes it ... if not do a sip debug and check the logs ...


This is actually a freePBX

ja133's picture

This is actually a freePBX issue, not a trixbox issue. This worked with the same settings on a different box. I took that box- backed up FreePBX and restored it on the other server. SAME results. here's the CLI with asterisk 1.4.17

Verbosity is at least 3
-- Executing [17186371062@from-internal:1] Macro("SIP/215-0834b2d8", "user-callerid|SKIPTTL|") in new stack
-- Executing [s@macro-user-callerid:1] NoOp("SIP/215-0834b2d8", "user-callerid: device 215") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/215-0834b2d8", "AMPUSER=215") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/215-0834b2d8", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/215-0834b2d8", "1|Set|REALCALLERIDNUM=215") in new stack
-- Executing [s@macro-user-callerid:5] NoOp("SIP/215-0834b2d8", "REALCALLERIDNUM is 215") in new stack
-- Executing [s@macro-user-callerid:6] Set("SIP/215-0834b2d8", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/215-0834b2d8", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/215-0834b2d8", "1?report") in new stack
-- Goto (macro-user-callerid,s,13)
-- Executing [s@macro-user-callerid:13] NoOp("SIP/215-0834b2d8", "TTL: ARG1: SKIPTTL") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("SIP/215-0834b2d8", "1?continue") in new stack
-- Goto (macro-user-callerid,s,23)
-- Executing [s@macro-user-callerid:23] NoOp("SIP/215-0834b2d8", "Using CallerID "device" <215>") in new stack
-- Executing [17186371062@from-internal:2] Set("SIP/215-0834b2d8", "_NODEST=") in new stack
-- Executing [17186371062@from-internal:3] Macro("SIP/215-0834b2d8", "record-enable||OUT|") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/215-0834b2d8", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] DeadAGI("SIP/215-0834b2d8", "recordingcheck|20080131-215042|1201834242.4") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20080131-215042|1201834242.4: No AMPUSER db entry for . Not recording
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] NoOp("SIP/215-0834b2d8", "No recording needed") in new stack
-- Executing [17186371062@from-internal:4] Macro("SIP/215-0834b2d8", "dialout-trunk|9|17186371062||") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/215-0834b2d8", "DIAL_TRUNK=9") in new stack
-- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/215-0834b2d8", "0|Authenticate|") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/215-0834b2d8", "0?disabletrunk|1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/215-0834b2d8", "DIAL_NUMBER=17186371062") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/215-0834b2d8", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/215-0834b2d8", "GROUP()=OUT_9") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/215-0834b2d8", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/215-0834b2d8", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/215-0834b2d8", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/215-0834b2d8", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/215-0834b2d8", "outbound-callerid|9") in new stack
-- Executing [s@macro-outbound-callerid:1] GotoIf("SIP/215-0834b2d8", "1?start") in new stack
-- Goto (macro-outbound-callerid,s,3)
-- Executing [s@macro-outbound-callerid:3] NoOp("SIP/215-0834b2d8", "REALCALLERIDNUM is 215") in new stack
-- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/215-0834b2d8", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,9)
-- Executing [s@macro-outbound-callerid:9] Set("SIP/215-0834b2d8", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:10] Set("SIP/215-0834b2d8", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:11] Set("SIP/215-0834b2d8", "TRUNKOUTCID=17183031060") in new stack
-- Executing [s@macro-outbound-callerid:12] GotoIf("SIP/215-0834b2d8", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,16)
-- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/215-0834b2d8", "0?usercid") in new stack
-- Executing [s@macro-outbound-callerid:17] Set("SIP/215-0834b2d8", "CALLERID(all)=17183031060") in new stack
-- Executing [s@macro-outbound-callerid:18] GotoIf("SIP/215-0834b2d8", "1?report") in new stack
-- Goto (macro-outbound-callerid,s,22)
-- Executing [s@macro-outbound-callerid:22] NoOp("SIP/215-0834b2d8", "CallerID set to "" <17183031060>") in new stack
-- Executing [s@macro-dialout-trunk:12] AGI("SIP/215-0834b2d8", "fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/215-0834b2d8", "OUTNUM=+17186371062") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/215-0834b2d8", "custom=SIP/Bandwidth2") in new stack
-- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/215-0834b2d8", "1?gocall") in new stack
-- Goto (macro-dialout-trunk,s,17)
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/215-0834b2d8", "dialout-trunk-predial-hook|") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/215-0834b2d8", "0?bypass|1") in new stack
-- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/215-0834b2d8", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:20] Dial("SIP/215-0834b2d8", "SIP/Bandwidth2/+17186371062|300|") in new stack
-- Couldn't call Bandwidth2/+17186371062
== Everyone is busy/congested at this time (0:0/0/0)
-- Executing [s@macro-dialout-trunk:21] Goto("SIP/215-0834b2d8", "s-CHANUNAVAIL|1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/215-0834b2d8", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/215-0834b2d8", "TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack
-- Executing [17186371062@from-internal:5] Macro("SIP/215-0834b2d8", "dialout-trunk|8|17186371062||") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/215-0834b2d8", "DIAL_TRUNK=8") in new stack
-- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/215-0834b2d8", "0|Authenticate|") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/215-0834b2d8", "0?disabletrunk|1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/215-0834b2d8", "DIAL_NUMBER=17186371062") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/215-0834b2d8", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/215-0834b2d8", "GROUP()=OUT_8") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/215-0834b2d8", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/215-0834b2d8", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/215-0834b2d8", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/215-0834b2d8", "outbound-callerid|8") in new stack
-- Executing [s@macro-outbound-callerid:1] GotoIf("SIP/215-0834b2d8", "1?start") in new stack
-- Goto (macro-outbound-callerid,s,3)
-- Executing [s@macro-outbound-callerid:3] NoOp("SIP/215-0834b2d8", "REALCALLERIDNUM is 215") in new stack
-- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/215-0834b2d8", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,9)
-- Executing [s@macro-outbound-callerid:9] Set("SIP/215-0834b2d8", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:10] Set("SIP/215-0834b2d8", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:11] Set("SIP/215-0834b2d8", "TRUNKOUTCID=17183031060") in new stack
-- Executing [s@macro-outbound-callerid:12] GotoIf("SIP/215-0834b2d8", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,16)
-- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/215-0834b2d8", "0?usercid") in new stack
-- Executing [s@macro-outbound-callerid:17] Set("SIP/215-0834b2d8", "CALLERID(all)=17183031060") in new stack
-- Executing [s@macro-outbound-callerid:18] GotoIf("SIP/215-0834b2d8", "1?report") in new stack
-- Goto (macro-outbound-callerid,s,22)
-- Executing [s@macro-outbound-callerid:22] NoOp("SIP/215-0834b2d8", "CallerID set to "" <17183031060>") in new stack
-- Executing [s@macro-dialout-trunk:12] AGI("SIP/215-0834b2d8", "fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/215-0834b2d8", "OUTNUM=+17186371062") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/215-0834b2d8", "custom=SIP/Bandwidth") in new stack
-- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/215-0834b2d8", "1?gocall") in new stack
-- Goto (macro-dialout-trunk,s,17)
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/215-0834b2d8", "dialout-trunk-predial-hook|") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/215-0834b2d8", "0?bypass|1") in new stack
-- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/215-0834b2d8", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:20] Dial("SIP/215-0834b2d8", "SIP/Bandwidth/+17186371062|300|") in new stack
-- Couldn't call Bandwidth/+17186371062
== Everyone is busy/congested at this time (0:0/0/0)
-- Executing [s@macro-dialout-trunk:21] Goto("SIP/215-0834b2d8", "s-CHANUNAVAIL|1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/215-0834b2d8", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/215-0834b2d8", "TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack
-- Executing [17186371062@from-internal:6] Macro("SIP/215-0834b2d8", "outisbusy|") in new stack
-- Executing [s@macro-outisbusy:1] Playback("SIP/215-0834b2d8", "all-circuits-busy-now|noanswer") in new stack
-- Playing 'all-circuits-busy-now' (language 'en')
== Spawn extension (macro-outisbusy, s, 1) exited non-zero on 'SIP/215-0834b2d8' in macro 'outisbusy'
== Spawn extension (macro-outisbusy, s, 1) exi


__________________

Joseph Ades
Local Support in New York City & Remote Support Available

(718) 303-1061