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>
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
[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)).
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 !
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.
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.