[asterisk-users] adding area code

Motty Cruz motty.cruz at gmail.com
Tue Apr 28 09:21:12 CDT 2015


this code worked for me,

here is what I did and worked for me:

exten => 1381+NXXXXXX,1,Set(CALLERID(number)=3817383444)

exten => 1+NXXNXXXXXX,2,Dial(SIP/SIP-Provider/${EXTEN:1},80)


Thanks for you help!

On 04/27/2015 02:56 PM, Matt Riddell wrote:
>
>> On 27Apr, 2015, at 16:39, Motty Cruz <motty.cruz at gmail.com 
>> <mailto:motty.cruz at gmail.com>> wrote:
>>
>> forgot to mentioned I am running Asterisk 1.8.22.0 on CentOS.
>>
>> Thanks,
>>
>>
>> On 04/27/2015 02:38 PM, Motty Cruz wrote:
>>> here is what I have:
>>>
>>> exten => _9XXXXXXX,1,Set(l_HomeAreaCode=381)
>>>
>>> exten => _9XXXXXXX,n,Set(dialnumber=${l_HomeAreaCode}${EXTEN:-1})
>>>
>>> exten => _9XXXXXXX,n,Dial(SIP/SIP-Provider/${dialnumber},80)
>>>
>>> not having success;
>>>
>>> "Got SIP reponse 503" Service Unavailable”
>
> Can you send us the console output when you make the call?
>
> --
> Cheers,
>
> Matt Riddell
> _______________________________________________
>
> http://www.venturevoip.com/news.php (Daily Asterisk News)
> http://www.venturevoip.com/pabx_on_disk.php (PABX on a Disk)
> http://www.venturevoip.com/exchange.php (Full ITSP Solution)
> http://www.venturevoip.com/cc.php (Call Centre Solutions)
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150428/7cc94c2f/attachment.html>


More information about the asterisk-users mailing list