[Asterisk-Users] Re: asterisk strips off trailing digit from incoming calls

Bernie Ott gurkenschaeler at gmail.com
Mon Jul 4 01:35:11 MST 2005


There's a tiny bit of new info available:

asterisk only strips off the trailing digit of calls coming from
ANALOG lines; calling from e.g. a (fully digital) gsm mobile, I get
the 3 digit extension as it should be.

does this ring a bell for anyone?

On 7/3/05, no name <gurkenschaeler at gmail.com> wrote:
> so here it is, the problem that's been nagging me for the past 2 days:
> 
> connected a box to my telco's NTBA <-> zap/asterisk. which works:
> 
> box:/etc/asterisk# cat /proc/zaptel/1
> Span 1: ZTHFC1 "HFC-S PCI A ISDN card 0 [TE] layer 1 ACTIVATED (F7)" HDB3/CCS
> 
>            1 ZTHFC1/0/1 Clear (In use)
>            2 ZTHFC1/0/2 Clear (In use)
>            3 ZTHFC1/0/3 HDLCFCS (In use)
> 
> so then I instructed asterisk to treat this as zap interface:
> 
> box:/etc/asterisk# egrep -v '(^;|^$)' zapata.conf
> [channels]
> switchtype=euroisdn
> signalling=bri_cpe
> pridialplan=unknown
> prilocaldialplan=unknown
> immediate=no
> priindication=outofband
> overlapdial=no
> usecallerid=yes
> rxgain=0.0
> txgain=0.0
> context=inbound
> callerid=asreceived
> group=1
> channel=1-2
> 
> 
> defined this in the dialplan:
> 
> office:/etc/asterisk# tail -21 extensions.conf| egrep -v '(^;|^$)'
> [inbound]
> ; my main number is "1234567",
> ; I am using 3-digit internal extensions
> exten => _11234567XXX,1,Goto(internal-phones,$EXTEN:8,1)
> exten => _XXX,1,Goto(internal-phones,${EXTEN},1)
> ; this acts as catch-all so dialling just the main number goes to x200
> exten => s,1,Answer
> exten => s,2,Goto(internal-phones,200,1)
> 
> 
> now when I call e.g. "1234567200" from the outside, asterisk sees this as:
> 
> -- Extension '20' in context 'inbound' from '1<some other number>'
> does not exist.  Rejecting call on channel 0/1, span 1
> 
> 
> why does asterisk INSIST on chopping the trailing digit off the
> dialled number? I don't get it.
> 
> please help!
> 
> Bernie
> 


-- 
best,

Bernie



More information about the asterisk-users mailing list