> On 27Apr, 2015, at 16:39, Motty Cruz <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/20150427/3ab9bb71/attachment.html>
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>
On Tue, 28 Apr 2015 07:21:12 -0700 Motty Cruz <motty.cruz at gmail.com> wrote:> 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)I find it hard to believe this is working. First, you don't have a leading underscore on your patterns. Your users aren't literally dialing the N's and X's are they? Second, what's with the plus in the extension? You want your users to dial that? Third, that's two different extensions, one with priority 1 and one with priority 2. The first one will set a variable and hangup, and the second.... there's no priority 1 for that extension... I've never tried that... I'm assuming it just won't work. -- C. Chad Wallace, B.Sc. The Lodging Company http://www.lodgingcompany.com/ OpenPGP Public Key ID: 0x262208A0