[Fixed] Making Outbound calls - Further Along

Ok, I am able to make outbound calls now, although only when I dial the 10 digit number (locally or long distance). When I try to dial the 7 digit number for local calls this comes up in the CLI:

– codec_g726: using generic PLC
– Executing Dial(“SIP/3699-b7803918”, “ZAP/r1/6912130”) in new stack
– Requested transfer capability: 0x00 - SPEECH
– Called r1/6912130
– Channel 0/4, span 1 got hangup
– Hungup ‘Zap/4-1’
== Everyone is busy/congested at this time (1:0/0/1)
== Auto fallthrough, channel ‘SIP/3699-b7803918’ status is 'CHANUNAVAIL’
Asterisk*CLI>

Here are my configs:

zapata.conf

[channels]
signalling=pri_cpe
switchtype=national
echocancel=yes
echocancelwhenbridged=yes
echotraining=400
callerid=asreceived
group=1
context=local
channel => 1-23

extensions.conf

[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
[incoming]
exten => _3699,1,Dial(SIP/3699,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
[local]
exten => _XXXXXX.,1,Dial(ZAP/r1/${EXTEN})
include => incoming

Any ideas?

…Razr

Well i think that you always have to enter the 10 digit of number if you do want to only enter 7 for the local call you have to do something like this in your extensions.conf

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

Where the XXX are your area code.
Hope this help

[quote=“alexis”]Well i think that you always have to enter the 10 digit of number if you do want to only enter 7 for the local call you have to do something like this in your extensions.conf

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

Where the XXX are your area code.
Hope this help[/quote]

Now it justs adds the area code to the long distance number (10 digit number (which is now a 13 digit number)).

Argg.

…Razr

try adding pridialplan=unknown prilocaldialplan=unknown to zapata.conf

Ok Sorry , Here is the line you should add to your extentions.conf :

exten => _XXXXXXX,1,Dial(ZAP/r1/XXX${EXTEN})

[quote=“baconbuttie”]try adding pridialplan=unknown prilocaldialplan=unknown to zapata.conf[/quote]

When I add this to my zapata.conf it works when I dial all 10 digits. I happened to notice when I did a reload from the CLI:

– Reloading module ‘chan_zap.so’ (Zapata Telephony w/PRI)
== Parsing ‘/etc/asterisk/zapata.conf’: Found
Aug 12 12:13:38 WARNING[4133]: chan_zap.c:10855 setup_zap: Ignoring signalling
Aug 12 12:13:38 WARNING[4133]: chan_zap.c:10855 setup_zap: Ignoring switchtype
Aug 12 12:13:38 WARNING[4133]: chan_zap.c:10855 setup_zap: Ignoring pridialplan
Aug 12 12:13:38 WARNING[4133]: chan_zap.c:10855 setup_zap: Ignoring prilocaldialplan
– Reconfigured channel 1, PRI Signalling signalling
– Reconfigured channel 2, PRI Signalling signalling

here is my zapata.conf:

[channels]
signalling=pri_cpe
switchtype=national
echocancel=yes
echocancelwhenbridged=yes
echotraining=400
callerid=asreceived
pridialplan=unknown
prilocaldialplan=unknown
group=1
context=local
channel => 1-23

Argg, this is going to be the death of me.

Thanks

…Razr

bumping to save the expense of a coffin.

…Razr

OK, I have commented out switchtype, signalling, pridialplan, and prilocaldialplan and I don’t receive the error messages in the CLI any more.

I’m still having to dial 10 digits to dial a number within the same area code.

Help.

…Razr

Your provider may require numbers to be passed in 10 digit form. Have you checked with them to make sure you can pass it in 7 digit format.

Did you try my second solution I use it and it work perfectly … When someone send a 7 digit number to your asterisk asterisk will add the area code… Well at least this is what it do for me !

Yes, but then when I dial a long distance number it comes up as call failed.

I had to add the 1XXX for the local to work in your solution.

…Razr

Ok can you post your extensions.conf here including my solution just want to look how you did it because i do it this way and its working fine

Here is my current extensions.conf:

[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
[incoming]
exten => 3699,1,Dial(SIP/3699,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
;
;
[local]
exten => _XXXXXXX,1,Dial(ZAP/r1/1650${EXTEN})
include => incoming

With this config I can call numbers within my area code cause it adds the 1650 to the call. But when I dial ouside my area code it comes up as call failed. If I remove the 1650, I can dial any number, but I have to use 1-xxx-xxx-xxxx format to complete the call.

Here is also my zapata.conf:

[channels]
;signalling=pri_cpe
;switchtype=national
echocancel=yes
echocancelwhenbridged=yes
echotraining=400
callerid=asreceived
;pridialplan=unknown
;prilocaldialplan=unknown
group=1
context=local
channel => 1-23

I’ve commented out the ones that were giving me errors in the CLI, ignorring switchtype, etc.

Thanks,

…Razr

Ok its because you deleted the other line here what you should have :

[local]
exten => _XXXXXXX,1,Dial(ZAP/r1/1650${EXTEN}) ;Not sure if you need to add the 1 for a local call depends on your provider.
exten => _XXXXXX.,1,Dial(ZAP/r1/${EXTEN}) 
include => incoming 

This way if the user dial 7 number it will use the first line. If not it will go to the second line.
Tell me if that work

[quote=“alexis”]Ok its because you deleted the other line here what you should have :

[local]
exten => _XXXXXXX,1,Dial(ZAP/r1/1650${EXTEN}) ;Not sure if you need to add the 1 for a local call depends on your provider.
exten => _XXXXXX.,1,Dial(ZAP/r1/${EXTEN}) 
include => incoming 

This way if the user dial 7 number it will use the first line. If not it will go to the second line.
Tell me if that work[/quote]

Works perfectly. Thank You.

Now I’m on to adding a TDM2400P for a handful of analog phones in the office. I’m sure I’ll be back with more questions. Wish me luck.

Thanks

…Razr