VOIP.MS trunk

DaveHaertel
Posts: 28
Member Since:
2007-12-17

Hello,
I've got a Trixbox CE 2.6.2.2 that was setup in the Phillipines by the local techs and I'm trying to help configure it remotely. I have root and the web interface access. Here is the overall view of the setup and what we are trying to get accomplished. We are programming extensions over there with local US DID's for customers here so that we can route calls over there to agents to pre-qualify sales calls. There's a trixbox locally using the same VOIP provider fully configured and working well. The router over in the Phillipines is a Cisco 2811 and over here a Sonic wall NSA 240. The Phillipine local NetAdmin is Cisco certified, so I'm hoping and assuming that all the ports were opened. Here's what I believe to be open

udp 6600 HUD (working somewhat, my extension shows up as does the other local phones and extensions
udp 5060 SIP (Sub account SIP is showing registered in VOIP.MS's panel
udp 10001-20000 (RTP)
udp 4569 (IAX2) for linking the 2 boxes together for inter center transfers

The status so far,
Outbound route is setup using local 7 and 10 digit dialing using the wizards and international calling
SIP trunk is showing registered
Sip_nat.conf
nat=yes
externip=xxx.xxx.xxx.xxx (correct external IP of the phillipines office)
localnet=192.168.2.0/255.255.255.0
Inbound routes
anyDID/anyCID points to my softphone extension 303

on inbound calls I get my extensions unavailable voicemail
on outbound calls I get "all circuits are busy" message

CLI output

== Spawn extension (macro-vm, s-CHANUNAVAIL, 2) exited non-zero on 'SIP/106050_ilo-b770af98' in macro 'vm'
== Spawn extension (macro-vm, s-CHANUNAVAIL, 2) exited non-zero on 'SIP/106050_ilo-b770af98' in macro 'exten-vm'
== Spawn extension (macro-vm, s-CHANUNAVAIL, 2) exited non-zero on 'SIP/106050_ilo-b770af98'
-- Executing [8434787227@from-internal:1] Macro("SIP/303-b770c6c0", "user-callerid|SKIPTTL|") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/303-b770c6c0", "AMPUSER=303") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/303-b770c6c0", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/303-b770c6c0", "1|Set|REALCALLERIDNUM=303") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/303-b770c6c0", "AMPUSER=303") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/303-b770c6c0", "AMPUSERCIDNAME=Dave") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/303-b770c6c0", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/303-b770c6c0", "AMPUSERCID=303") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/303-b770c6c0", "CALLERID(all)="Dave" ") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/303-b770c6c0", "REALCALLERIDNUM=303") in new stack
-- Executing [s@macro-user-callerid:10] ExecIf("SIP/303-b770c6c0", "0|Set|CHANNEL(language)=") in new stack
-- Executing [s@macro-user-callerid:11] GotoIf("SIP/303-b770c6c0", "1?continue") in new stack
-- Goto (macro-user-callerid,s,20)
-- Executing [s@macro-user-callerid:20] NoOp("SIP/303-b770c6c0", "Using CallerID "Dave" ") in new stack
-- Executing [8434787227@from-internal:2] Set("SIP/303-b770c6c0", "_NODEST=") in new stack
-- Executing [8434787227@from-internal:3] Macro("SIP/303-b770c6c0", "record-enable|303|OUT|") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/303-b770c6c0", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/303-b770c6c0", "recordingcheck|20100307-131803|1267939083.16") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20100307-131803|1267939083.16: Outbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] MacroExit("SIP/303-b770c6c0", "") in new stack
-- Executing [8434787227@from-internal:4] Macro("SIP/303-b770c6c0", "dialout-trunk|2|843XXX7227||") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/303-b770c6c0", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/303-b770c6c0", "0?sub-pincheck|s|1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/303-b770c6c0", "0?disabletrunk|1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/303-b770c6c0", "DIAL_NUMBER=843XXX7227") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/303-b770c6c0", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/303-b770c6c0", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/303-b770c6c0", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/303-b770c6c0", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/303-b770c6c0", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/303-b770c6c0", "outbound-callerid|2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/303-b770c6c0", "0|SetCallerPres|") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/303-b770c6c0", "0|Set|REALCALLERIDNUM=303") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/303-b770c6c0", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/303-b770c6c0", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/303-b770c6c0", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/303-b770c6c0", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/303-b770c6c0", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/303-b770c6c0", "0|Set|CALLERID(all)=") in new stack
-- Executing [s@macro-outbound-callerid:13] GotoIf("SIP/303-b770c6c0", "1?exit") in new stack
-- Goto (macro-outbound-callerid,s,11)
-- Executing [s@macro-outbound-callerid:11] MacroExit("SIP/303-b770c6c0", "") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/303-b770c6c0", "1|AGI|fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
> fixlocalprefix: Using pattern NXXNXXXXXX
== fixlocalprefix: Dialpattern NXXNXXXXXX matched. 843XXX7227 -> 843XXX7227
-- AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/303-b770c6c0", "OUTNUM=843XXX7227") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/303-b770c6c0", "custom=SIP/voip.ms") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/303-b770c6c0", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/303-b770c6c0", "dialout-trunk-predial-hook|") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/303-b770c6c0", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/303-b770c6c0", "0?bypass|1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/303-b770c6c0", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/303-b770c6c0", "SIP/voip.ms/843XXX7227|300|") in new stack
-- Called voip.ms/843XXX7227
-- SIP/voip.ms-083dfd40 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [s@macro-dialout-trunk:20] Goto("SIP/303-b770c6c0", "s-CONGESTION|1") in new stack
-- Goto (macro-dialout-trunk,s-CONGESTION,1)
-- Executing [s-CONGESTION@macro-dialout-trunk:1] GotoIf("SIP/303-b770c6c0", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CONGESTION,3)
-- Executing [s-CONGESTION@macro-dialout-trunk:3] NoOp("SIP/303-b770c6c0", "TRUNK Dial failed due to CONGESTION - failing through to other trunks") in new stack
-- Executing [843XXX7227@from-internal:5] Macro("SIP/303-b770c6c0", "outisbusy|") in new stack
-- Executing [s@macro-outisbusy:1] Playback("SIP/303-b770c6c0", "all-circuits-busy-now|noanswer") in new stack
-- Playing 'all-circuits-busy-now' (language 'en')
-- Executing [s@macro-outisbusy:2] Playback("SIP/303-b770c6c0", "pls-try-call-later|noanswer") in new stack
-- Playing 'pls-try-call-later' (language 'en')
-- Executing [s@macro-outisbusy:3] Macro("SIP/303-b770c6c0", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("SIP/303-b770c6c0", "w") in new stack
-- Executing [s@macro-hangupcall:2] NoCDR("SIP/303-b770c6c0", "") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("SIP/303-b770c6c0", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] GotoIf("SIP/303-b770c6c0", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/303-b770c6c0", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Hangup("SIP/303-b770c6c0", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/303-b770c6c0' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/303-b770c6c0' in macro 'outisbusy'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/303-b770c6c0'

As I mentioned before, I'm fairly certain the ports are opened as their NetAdmin over there is pretty good. Any ideas? I tried to mimick pretty much our sip.conf, sip_nat.conf, and extension.conf with the generated samples but maybe I missed something

One more thing of note, this box is running 2 network cards, one configured with the internal IP address, the other with the external IP address. I personally don't have much experience with this configuration and am not sure if the calls are just being routed back to themselves or what's going on. Just thought I would add that bit of information to help troubleshoot.

Thanks

--

Dave Haertel
Port City Technology, LLC
Charleston, SC



415eric
Posts: 416
Member Since:
2009-10-29
I would verify that all

I would verify that all ports you need opened are opened on both firewalls. Assumptions in this business can cause for many unneeded headaches.

--


Comment viewing options

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