Incoming calls from PSTN lack last two digits and cannot be routed

mbagni
Joined: Mon 08 of Mar, 2010

Incoming calls from PSTN lack last two digits and cannot be routed

Posted:Mon 08 of Mar, 2010 (21:43 UTC)
Hi I have the following strange problem and maybe someone has the solution for it.

I have recently installed Asterisk 1.6.1.11 and I have connected to it three ISDN lines provided by Telecom Italia (I live in Italy) that are bundled together and with 100 numbers available (we can be reached by dialing from 0620203400 through 0620203499).

The problem I am having is the following:

If I use my mobile phone and dial 0620203439 I am correctly connected with the extension 39 but if I use a normal PSTN telephone and I dial 0620203439 the Asterisk system seems to receive only 06202034 and cannot route the call to the desired user. This happens for all the configured extensions. Every extension can dial out and among them without a problem.

The extensions.conf file contains the following rules copied for the three span (one for each ISDN line):

[DID_span_1]
exten => _620203423,1,Dial(SIP/23)
exten => _62020342X,1,Goto(default,${EXTEN:7},1)
exten => _62020343X,1,Goto(default,${EXTEN:7},1)
exten => _62020344X,1,Goto(default,${EXTEN:7},1)
exten => _XXXXXXX,1,Goto(ringroups-custom-1,s,1)
exten => _XXXXXXXX,1,Goto(ringroups-custom-1,s,1)
exten => _XXXXXXXXX,1,Goto(ringroups-custom-1,s,1)
include = DID_span_1_default


The last three exten should capture a call performed to a user that is not in the office and after about 20 seconds route it to the telephone defined by the ringroups-custom-1 (int. 21 and 22) and if neither them are in the office, pass to the int. 22 Voicemail. Actually the system works fine and as expected if the incoming call originates not from a PSTN telephone.

And the file chan_dahdi.conf stripped from all the commented lines contains the following:

[channels]
language=it
usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
group=1
callgroup=1
pickupgroup=1
immediate=no


Thank you in advance for the help.