UK PTSN: Can't dial a number containing a 1 or 2

I have an Asterisk server running on Centos 5.1 with a TDM410P card. The card has two FXO ports and the first of these is connected to a BT telephone line. The telephone line works fine with a normal phone handset. I can receive calls over that line and Asterisk routes them appropriately. I can also make calls on that line, but if and only if the number I am dialing doesn’t contain a ‘1’ or a ‘2’. I could call 07773 456789 but I can’t call, for example 02078887777 or any other number with a 1 or a 2 in it. When I try I get the BT woman’s voice saying “The number you’ve dialed has not been recognized, please hang up and try again”. If I dial the same number from a regular phone plugged straight in to the wall socket, it’s fine.

I am using *Now to construct the dialplan, though there is nothing special about it. Additionally, the messages in the * console would suggest that there is nothing wrong with the dialplan - it shows the full number being dialed.

Does anybody know what causes this and what to do to fix it? Herewith the various configs that might be relevant - let me know if you need others.

Thanks in advance.

DMesg

Port 1: Installed – AUTO FXO (UK mode)
Port 2: Installed – AUTO FXO (UK mode)
Port 3: Not installed
Port 4: Not installed

/etc/zaptel.conf
fxsks = 1,2
loadzone = uk
defaultzone = uk

/etc/asterisk/zapata.conf
[channels]
context=default
toneduration=200
usecallerid=yes
cidsignalling=v23
cidstart=polarity
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no
callerid=asreceived
signalling=fxs_ks
channel => 1

ztcfg -vvvv
Zaptel Version: 1.4.9
Echo Canceller: MG2
Configuration

Channel map:
Channel 01: FXS Kewlstart (Default) (Slaves: 01)
Channel 02: FXS Kewlstart (Default) (Slaves: 02)
2 channels to configure.

Asterisk output whilst making a call

asterisk*CLI>
– Accepting AUTHENTICATED call from 10.0.0.212:
> requested format = gsm,
> requested prefs = (),
> actual format = ulaw,
> host prefs = (),
> priority = mine
– Executing [02074828829@numberplan-custom-2:1] Macro(“IAX2/6000-14036”, “trunkdial|Zap/g1/02074828829|”) in new stack
– Executing [s@macro-trunkdial:1] Set(“IAX2/6000-14036”, “CALLERID(all)=”) in new stack
– Executing [s@macro-trunkdial:2] Dial(“IAX2/6000-14036”, “Zap/g1/02074828829”) in new stack
– Called g1/02074828829
– Zap/1-1 answered IAX2/6000-14036
– Hungup ‘Zap/1-1’
== Spawn extension (macro-trunkdial, s, 2) exited non-zero on ‘IAX2/6000-14036’ in macro ‘trunkdial’
== Spawn extension (macro-trunkdial, s, 2) exited non-zero on ‘IAX2/6000-14036’
– Hungup ‘IAX2/6000-14036’

Are you in London? Is so what happens if you change the dial plan to allow you to dial numbers in local format (i.e. 77235000 instead of 02077235000)?

Lee

I am in London. Tried that - same result, alas.

Some extra info:

the digit ‘1’ doesn’t work either. So I can call any number that doesn’t have a 1, a 2 or a 3.

Also, if I open the channel by dialing an empty number, then send DTMF tones, I get the same result - can’t dial numbers containing a 1 2 or 3. But again, if I plug a regular handset straight in to the line, it’s fine.

HELP!

Hi

Ok the usual question has to be asked and explained why.

Can we see the dialplan for these calls

the reason is we dont have crystal balls and have no idea of what is set up.

so try

show dialplan 01234123456@numberplan-custom-2
and 02071231234@numberplan-custom-2

then we can see whats set up

Ian

[quote=“ianplain”]Hi

Ok the usual question has to be asked and explained why.

Can we see the dialplan for these calls

the reason is we dont have crystal balls and have no idea of what is set up.

[/quote]

Ian, thanks for the reply. Yes, sure you can see the dialplans, though I am fairly confident they’re not relevant. The reason I say this is that you can see from the * debug log (that I included originally) that the number is being dialed correctly. Anyway, here is the info requested and it’d be great to hear your thoughts on where I am going wrong. Let me know if you need any further logs or conf files.

Thanks.

asterisk*CLI> show dialplan 01234123456@numberplan-custom-2
[ Context 'numberplan-custom-2' created by 'pbx_config' ]
  '_0X!' =>         1. Dial(Zap/g1/${EXTEN})                      [pbx_config]

-= 1 extension (1 priority) in 1 context. =-
asterisk*CLI> show dialplan 02071231234@numberplan-custom-2 
[ Context 'numberplan-custom-2' created by 'pbx_config' ]
  '_0X!' =>         1. Dial(Zap/g1/${EXTEN})                      [pbx_config]

-= 1 extension (1 priority) in 1 context. =-

ok change the ! to a . and see what happens

Ian

No change. BT woman says “the number you’ve dialed has not been recognized”. This is what * showed:

-- Executing [02074280430@numberplan-custom-2:1] Dial("IAX2/4000-14920", "Zap/g1/02074280430") in new stack -- Called g1/02074280430 -- Zap/1-1 answered IAX2/4000-14920 -- Hungup 'Zap/1-1' == Spawn extension (numberplan-custom-2, 02074280430, 1) exited non-zero on 'IAX2/4000-14920' -- Hungup 'IAX2/4000-14920'

Ok do you have a test butt ? if you do put it across the line and switch it to monitor and listen to the tones…

what doe show dialplan for a working number show.?

Is the line BT, Cable or what ? it may be worth sticking a w before the dial as I seem to remember that * can dial to quick on some slow exchanges as it doesnt wait for dialtone

Ian

I don’t know what one of those is, so I definitely don’t have one! Presumably it allows you to listen to the line or something?

   -- Accepting AUTHENTICATED call from 10.0.0.212:
       > requested format = gsm,
       > requested prefs = (),
       > actual format = ulaw,
       > host prefs = (),
       > priority = mine
    -- Executing [07775894894@numberplan-custom-2:1] Dial("IAX2/4000-11304", "Zap/g1/07775894894") in new stack
    -- Called g1/07775894894
    -- Zap/1-1 answered IAX2/4000-11304
    -- Hungup 'Zap/1-1'
  == Spawn extension (numberplan-custom-2, 07775894894, 1) exited non-zero on 'IAX2/4000-11304'
    -- Hungup 'IAX2/4000-11304'

[quote]
Is the line BT, Cable or what ? it may be worth sticking a w before the dial as I seem to remember that * can dial to quick on some slow exchanges as it doesnt wait for dialtone[/quote]

It is a BT line. I tried adding a wait but it made no difference. Surely if it was something like that then a number without a 1, 2 or 3 (such as the example I’ve shown above) wouldn’t work either, which it does?