Skip to main content

Inbound routes not working

Posted by MikeWitlin on Mon, 03/29/2010

I apologize in advance if any of my questions seem ignorant - I am still a bit of a newbie.

I have Thirdlane running with a DIGIUM T1 Card. The T1 span is up and active. I can see traffic coming in on the asterisks CLI. But all the inbound calls are rejected:

-- Extension '4107796904' in context 'incoming' from '4102980555' does not exist. Rejecting call on channel 0/1, span 1

The Trunk group is defined as G1.
The inbound routes are defined to match the DIDs in the range 410-779-6901 /6920.

Any assistance would be greatly appreciated.


Submitted by thirdlane on Mon, 03/29/2010 Permalink

Hi Mike,

You should change the context from "incoming" to from-outside

Submitted by MikeWitlin on Mon, 03/29/2010 Permalink

would this context "from-outside" have any effect on outbound dialing?

we get invalid playback for alloutbound routes.

Submitted by thirdlane on Mon, 03/29/2010 Permalink

No, it only matters for inbound.

Did you associate this trunk with outbound routes?

Submitted by MikeWitlin on Mon, 03/29/2010 Permalink

yes,

only one trunk defined G1 - associated with all outbound routes.

modified the local route to 10 digits since we don't use 7 digit dialing in our area.

Submitted by thirdlane on Mon, 03/29/2010 Permalink

Please post CLI trace with debugging

asterisk -r

core set debug 3
core set verbose 3

Submitted by eeman on Mon, 03/29/2010 Permalink

so is chan_dahdi.conf setup for your group? G1 = group 1 but your channel range of your t1 needs to have group=1 set.

Submitted by MikeWitlin on Mon, 03/29/2010 Permalink

;
; DAHDI telephony interface
;
; Configuration file

[trunkgroups]

[channels]

context=from-outside
group = 1
echocancel = yes
signalling = pri_cpe
switchtype = national
channel = 1-8

Submitted by MikeWitlin on Mon, 03/29/2010 Permalink

This is a dynamic T1 - Data / Voice - only 8 channles alocated for voice the rest is IP bandwidth.

Thanks.

Submitted by MikeWitlin on Mon, 03/29/2010 Permalink

PBX Manager 6.0.1.79

PBX Version
Asterisk 1.6.0.6 built by root @ distro-el5.asterroid.com on a i686 running Linux on 2009-05-12 06:01:48 UTC

Submitted by MikeWitlin on Mon, 03/29/2010 Permalink

I am not on customer site - I am trying to configuring an X-Lite phone now so I can replicate the issue remotely.

Submitted by MikeWitlin on Mon, 03/29/2010 Permalink

When I dial the same number - first 10 digits only for local calling - this fails. Whend dialing 1 + 10 digits (LD) it goes through.

I must have a problem in the outbound scripts for the 10 digit dialing patterns - I will review and what I did - I may just delete the pattern and rebuild.

I need to allow for 410-NXX-xxxx and for 1+410-NXX-xxxx. In Maryland these are both vaild and the former is a local call and the latter is an intra latta LD call.

CLI output below:

10 digit dialing (Local)
=========================

== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
== Using UDPTL CoS mark 5
-- Executing [4109526733@from-inside:1] Macro("SIP/199-b7025c28", "tl-set-variables2,from-inside-redir,") in new stack
-- Executing [s@macro-tl-set-variables2:1] Set("SIP/199-b7025c28", "__tenant=") in new stack
-- Executing [s@macro-tl-set-variables2:2] Set("SIP/199-b7025c28", "CDR(userfield)=") in new stack
-- Executing [s@macro-tl-set-variables2:3] Set("SIP/199-b7025c28", "__FROM_INSIDE=1") in new stack
-- Executing [s@macro-tl-set-variables2:4] Set("SIP/199-b7025c28", "__MOH=default") in new stack
-- Executing [s@macro-tl-set-variables2:5] GotoIf("SIP/199-b7025c28", "1 ?setmoh") in new stack
-- Goto (macro-tl-set-variables2,s,7)
-- Executing [s@macro-tl-set-variables2:7] Set("SIP/199-b7025c28", "CHANNEL(musicclass)=default") in new stack
-- Executing [s@macro-tl-set-variables2:8] Goto("SIP/199-b7025c28", "from-inside-redir,4109526733,1") in new stack
-- Goto (from-inside-redir,4109526733,1)
== Channel 'SIP/199-b7025c28' jumping out of macro 'tl-set-variables2'
-- Sent into invalid extension '4109526733' in context 'from-inside-redir' on SIP/199-b7025c28
-- Executing [i@from-inside-redir:1] Playback("SIP/199-b7025c28", "invalid") in new stack
-- Playing 'invalid.gsm' (language 'en')
== Spawn extension (from-inside-redir, i, 1) exited non-zero on 'SIP/199-b7025c28'
-- Executing [h@from-inside-redir:1] Hangup("SIP/199-b7025c28", "") in new stack
== Spawn extension (from-inside-redir, h, 1) exited non-zero on 'SIP/199-b7025c28'

=======================
1 + 10 digit dialing
=======================

== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
== Using UDPTL CoS mark 5
-- Executing [14109526733@from-inside:1] Macro("SIP/199-08499178", "tl-set-variables2,from-inside-redir,") in new stack
-- Executing [s@macro-tl-set-variables2:1] Set("SIP/199-08499178", "__tenant=") in new stack
-- Executing [s@macro-tl-set-variables2:2] Set("SIP/199-08499178", "CDR(userfield)=") in new stack
-- Executing [s@macro-tl-set-variables2:3] Set("SIP/199-08499178", "__FROM_INSIDE=1") in new stack
-- Executing [s@macro-tl-set-variables2:4] Set("SIP/199-08499178", "__MOH=default") in new stack
-- Executing [s@macro-tl-set-variables2:5] GotoIf("SIP/199-08499178", "1 ?setmoh") in new stack
-- Goto (macro-tl-set-variables2,s,7)
-- Executing [s@macro-tl-set-variables2:7] Set("SIP/199-08499178", "CHANNEL(musicclass)=default") in new stack
-- Executing [s@macro-tl-set-variables2:8] Goto("SIP/199-08499178", "from-inside-redir,14109526733,1") in new stack
-- Goto (from-inside-redir,14109526733,1)
== Channel 'SIP/199-08499178' jumping out of macro 'tl-set-variables2'
-- Executing [14109526733@from-inside-redir:1] Macro("SIP/199-08499178", "tl-dialout-1-trunk,60,DAHDI/G1,,0") in new stack
-- Executing [s@macro-tl-dialout-1-trunk:1] GotoIf("SIP/199-08499178", "0?dial") in new stack
-- Executing [s@macro-tl-dialout-1-trunk:2] Set("SIP/199-08499178", "__DIALED_NUMBER=14109526733") in new stack
-- Executing [s@macro-tl-dialout-1-trunk:3] Macro("SIP/199-08499178", "tl-dialout-base,60,DAHDI/G1,,0,") in new stack
-- Executing [s@macro-tl-dialout-base:1] Set("SIP/199-08499178", "status=") in new stack
-- Executing [s@macro-tl-dialout-base:2] GotoIf("SIP/199-08499178", "1?enabled") in new stack
-- Goto (macro-tl-dialout-base,s,5)
-- Executing [s@macro-tl-dialout-base:5] GotoIf("SIP/199-08499178", "1?allclear") in new stack
-- Goto (macro-tl-dialout-base,s,13)
-- Executing [s@macro-tl-dialout-base:13] Set("SIP/199-08499178", "i=2") in new stack
-- Executing [s@macro-tl-dialout-base:14] Macro("SIP/199-08499178", "tl-set-myvariables") in new stack
-- Executing [s@macro-tl-set-myvariables:1] Set("SIP/199-08499178", "MY_CHAN=199-08499178") in new stack
-- Executing [s@macro-tl-set-myvariables:2] NoOp("SIP/199-08499178", "THECHANNEL=SIP/199-08499178") in new stack
-- Executing [s@macro-tl-set-myvariables:3] Set("SIP/199-08499178", "zap=0") in new stack
-- Executing [s@macro-tl-set-myvariables:4] GotoIf("SIP/199-08499178", "1?usechannel") in new stack
-- Goto (macro-tl-set-myvariables,s,9)
-- Executing [s@macro-tl-set-myvariables:9] Set("SIP/199-08499178", "local=0") in new stack
-- Executing [s@macro-tl-set-myvariables:10] GotoIf("SIP/199-08499178", "1?useit") in new stack
-- Goto (macro-tl-set-myvariables,s,12)
-- Executing [s@macro-tl-set-myvariables:12] Set("SIP/199-08499178", "__MYEXTENSION=199") in new stack
-- Executing [s@macro-tl-set-myvariables:13] Set("SIP/199-08499178", "__MYID=199") in new stack
-- Executing [s@macro-tl-dialout-base:15] SetAMAFlags("SIP/199-08499178", "billing") in new stack
-- Executing [s@macro-tl-dialout-base:16] Set("SIP/199-08499178", "RECORD=") in new stack
-- Executing [s@macro-tl-dialout-base:17] GotoIf("SIP/199-08499178", "1?done_checkrecord") in new stack
-- Goto (macro-tl-dialout-base,s,26)
-- Executing [s@macro-tl-dialout-base:26] NoOp("SIP/199-08499178", "RECORD=") in new stack
-- Executing [s@macro-tl-dialout-base:27] NoOp("SIP/199-08499178", "TOUCH_MONITOR=") in new stack
-- Executing [s@macro-tl-dialout-base:28] NoOp("SIP/199-08499178", "RECORD_OPTIONS=") in new stack
-- Executing [s@macro-tl-dialout-base:29] NoOp("SIP/199-08499178", "RECORDING_FORMAT=wav") in new stack
-- Executing [s@macro-tl-dialout-base:30] Set("SIP/199-08499178", "CALLERID(name)=") in new stack
-- Executing [s@macro-tl-dialout-base:31] GotoIf("SIP/199-08499178", "1?calleridallowed") in new stack
-- Goto (macro-tl-dialout-base,s,39)
-- Executing [s@macro-tl-dialout-base:39] NoOp("SIP/199-08499178", "CLIMYID=") in new stack
-- Executing [s@macro-tl-dialout-base:40] NoOp("SIP/199-08499178", "MYID=199") in new stack
-- Executing [s@macro-tl-dialout-base:41] Set("SIP/199-08499178", "CLI=") in new stack
-- Executing [s@macro-tl-dialout-base:42] GotoIf("SIP/199-08499178", "0?chkcallfwd") in new stack
-- Executing [s@macro-tl-dialout-base:43] Set("SIP/199-08499178", "CLI=4107796915") in new stack
-- Executing [s@macro-tl-dialout-base:44] GotoIf("SIP/199-08499178", "1?chkcallfwd") in new stack
-- Goto (macro-tl-dialout-base,s,47)
-- Executing [s@macro-tl-dialout-base:47] NoOp("SIP/199-08499178", "MYID=199") in new stack
-- Executing [s@macro-tl-dialout-base:48] NoOp("SIP/199-08499178", "INCOMINGCLI=") in new stack
-- Executing [s@macro-tl-dialout-base:49] NoOp("SIP/199-08499178", "CALLFWD=") in new stack
-- Executing [s@macro-tl-dialout-base:50] GotoIf("SIP/199-08499178", "1?setcalleridasabove") in new stack
-- Goto (macro-tl-dialout-base,s,58)
-- Executing [s@macro-tl-dialout-base:58] GotoIf("SIP/199-08499178", "0?nocallerid") in new stack
-- Executing [s@macro-tl-dialout-base:59] Set("SIP/199-08499178", "CALLERID(num)=4107796915") in new stack
-- Executing [s@macro-tl-dialout-base:60] Set("SIP/199-08499178", "temp=") in new stack
-- Executing [s@macro-tl-dialout-base:61] GotoIf("SIP/199-08499178", "1?onetrunk,1") in new stack
-- Goto (macro-tl-dialout-base,onetrunk,1)
-- Executing [onetrunk@macro-tl-dialout-base:1] Set("SIP/199-08499178", "FULLNAME=DAHDI/G1") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:2] Set("SIP/199-08499178", "TRUNK=G1") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:3] GotoIf("SIP/199-08499178", "0?failed,1") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:4] Set("SIP/199-08499178", "TRUNK_STATUS=1") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:5] GotoIf("SIP/199-08499178", "0?next,1") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:6] Set("SIP/199-08499178", "ROUTE_PREPEND=") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:7] Set("SIP/199-08499178", "ROUTE_STRIP=0") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:8] Set("SIP/199-08499178", "ROUTE_OPTIONS=") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:9] Set("SIP/199-08499178", "NUMBER_TO_DIAL=14109526733") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:10] Set("SIP/199-08499178", "TRUNK_DIALSTRING=") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:11] Set("SIP/199-08499178", "TRUNK_NAME=G1") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:12] Set("SIP/199-08499178", "TRUNK_PROTOCOL=DAHDI") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:13] Set("SIP/199-08499178", "TRUNK_STRIP=0") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:14] Set("SIP/199-08499178", "TRUNK_PREPEND=") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:15] Set("SIP/199-08499178", "CALLERID(num)=4107796915") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:16] GotoIf("SIP/199-08499178", "0?dial-CUSTOM,1") in new stack
-- Executing [onetrunk@macro-tl-dialout-base:17] Goto("SIP/199-08499178", "dial-DAHDI,1") in new stack
-- Goto (macro-tl-dialout-base,dial-DAHDI,1)
-- Executing [dial-DAHDI@macro-tl-dialout-base:1] Set("SIP/199-08499178", "CIDNAME=") in new stack
-- Executing [dial-DAHDI@macro-tl-dialout-base:2] Set("SIP/199-08499178", "CALLERID(name)=") in new stack
-- Executing [dial-DAHDI@macro-tl-dialout-base:3] Dial("SIP/199-08499178", "DAHDI/G1/14109526733,60,") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called G1/14109526733
-- DAHDI/8-1 is proceeding passing it to SIP/199-08499178
-- DAHDI/8-1 is making progress passing it to SIP/199-08499178
-- Hungup 'DAHDI/8-1'
== Spawn extension (macro-tl-dialout-base, dial-DAHDI, 3) exited non-zero on 'SIP/199-08499178' in macro 'tl-dialout-base'
== Spawn extension (macro-tl-dialout-1-trunk, s, 3) exited non-zero on 'SIP/199-08499178' in macro 'tl-dialout-1-trunk'
== Spawn extension (from-inside-redir, 14109526733, 1) exited non-zero on 'SIP/199-08499178'
-- Executing [h@from-inside-redir:1] Hangup("SIP/199-08499178", "") in new stack
== Spawn extension (from-inside-redir, h, 1) exited non-zero on 'SIP/199-08499178'