[Fixed] Things were working fine until I installed TDM2400P

Things were fine until I installed a TDM2400P with 24 fxs channels (green ones).

Now I have to dial 10 digit numbers to make calls (local and long distance).

Here is my zapata.conf:

[channels]
signalling=pri_cpe
switchtype=national
echocancel=yes
echocancelwhenbridged=yes
echotraining=400
callerid=asreceived
group=1
context=long distance
channel => 1-23
;
group=2
signalling=fxo_ks
context=long distance
echocancel=yes
channel => 25-48

And my extensions.conf:

[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no

[incoming]
exten => 3698,1,Dial(Zap/25-1)
;
exten => 3699,1,Dial(SIP/6505263699,20)
exten => 3699,2,VoiceMail(3699@default)
exten => 3699,3,PlayBack(vm-goodbye)
exten => 3699,4,Wait(2)
exten => 3699,5,HangUp()
;
;
exten => 9999,1,VoiceMailMain() ;voicemail extension
;
[local]
exten => _XXXXXX.,1,Dial(ZAP/r1/${EXTEN})
include => incoming
;
[long distance]
exten => _XXXXXXX.,1,Dial(ZAP/r1/1650${EXTEN})
include => local

Help!!!

…Razr

If you have to dial 10 digits for local calls, this is probably how the telco has it setup. The hardware doesn’t put a requirement on like this. You can also change your dial plan to get around this.

Change this:
exten => _XXXXXX.,1,Dial(ZAP/r1/${EXTEN})

To this:
exten => _XXXXXX.,1,Dial(ZAP/r1/your_area_code_here${EXTEN})

Then the area code will be appended to the 7digits so you don’t have to dial the area code.

That works, but now when I dial long distance it adds my area code onto the 10 digit number I dial.

So it becomes a 13 digit number now.

…Razr

do you have to dial a ‘1’ before LD numbers? if so, change to this:

[local]
exten => _NXXNXXXXXX,1,Dial(ZAP/r1/${EXTEN})
include => incoming
;
[long distance]
exten => _1NXXNXXXXXX,1,Dial(ZAP/r1/${EXTEN})
include => local

No worky.

It appears that it doesn’t recognize the [long distance] context.

What the heck am I missing?

…Razr

rename [long distance] to [long_distance] - no spaces in context names.

default context for SIP devices is in sip.conf. if we had something like so:

context=internal

then in the internal context, we’d need to include both the LD and local contexts:

[internal]
include => local
include => long_distance

check all of that and/or post your config files, this should be an easy fix.

I assume you need to include the long distance context into the context your phone belongs to. Also I don’t think you can have spaces in your context names.

Ok, well I guess it is quite obvious that I’m a Windoes guru and have limited linux skills.

It was the space that was the cause of my problems. This is the 3rd typo so far that has bitten me in the arse.

Advice for Beginners: Check your typing, once done checking, Check it again.

Thanks for all the help. I have a basic config working, now I’m off to the fine tuning and adding all the great features.

Thanks again,

…Razr