<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
forgot to mentioned I am running Asterisk 1.8.22.0 on CentOS. <br>
<br>
Thanks, <br>
<br>
<br>
<div class="moz-cite-prefix">On 04/27/2015 02:38 PM, Motty Cruz
wrote:<br>
</div>
<blockquote cite="mid:553EAC6C.8010200@gmail.com" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
here is what I have: <br>
<p class="MsoNormal"><span class="SpellE"><font face="Calibri"
size="2"><span style="font-size:11.0pt">exten</span></font></span>
=> _9XXXXXXX,1,Set(<span class="SpellE">l_HomeAreaCode</span>=381)<o:p></o:p></p>
<p class="MsoNormal"><span class="SpellE"><font face="Calibri"
size="2"><span style="font-size:11.0pt">exten</span></font></span>
=> _9XXXXXXX,n,Set(<span class="SpellE">dialnumber</span>=${<span
class="SpellE">l_HomeAreaCode</span>}${EXTEN:-1})<o:p></o:p></p>
<span class="SpellE"><font face="Calibri" size="2"><span
style="font-size:11.0pt">exten</span></font></span> =>
_9XXXXXXX,n,Dial(SIP<span class="SpellE">/SIP-Provider</span>/${<span
class="SpellE">dialnumber</span>},80)<br>
<br>
not having success; <br>
<br>
"Got SIP reponse 503" Service Unavailable"<br>
<br>
<div class="moz-cite-prefix">On 04/27/2015 02:19 PM, Bryant
Zimmerman wrote:<br>
</div>
<blockquote cite="mid:3cde44172c50415b8ff597ea9ce34183@zktech.com"
type="cite"><span style="font-family: Arial, Helvetica,
Sans-Serif; font-size: 12px">
<div>Motty</div>
<div> </div>
<div>Yes</div>
<div> </div>
<div>From your dial plan accept 9 + 7 digits then concat your
dialed number together with your areacode.</div>
<div> </div>
<div>This s a brief example.</div>
<div> </div>
<div>exten => _9XXXXXXX,1,Set(l_HomeAreaCode=555)</div>
<div>exten =>
_9XXXXXXX,n,Set(dialnumber=${l_HomeAreaCode}${EXTEN-1}) ;;
This line should combine your area code and the last 7
digits of your dialed phone number</div>
<div>exten => _9XXXXXXX,n,Dial(SIP/${dialnumber},35)</div>
<div> </div>
<div> </div>
<div>Thanks<br>
<br>
Bryant Zimmerman (ZK Tech Inc.)<br>
616-855-1030 Ext. 2003</div>
<div> </div>
<hr size="2" width="100%" align="center">
<div><span style="font-family: tahoma,arial,sans-serif;
font-size: 10pt;"><b>From</b>: "Motty Cruz" <a
moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:motty.cruz@gmail.com"><motty.cruz@gmail.com></a><br>
<b>Sent</b>: Monday, April 27, 2015 4:33 PM<br>
<b>To</b>: <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a><br>
<b>Subject</b>: [asterisk-users] adding area code</span>
<div> </div>
Hello,<br>
<br>
I would like to add area code if clients dial 7 digits, it
that<br>
possible? currently clients dial prefix 9 plus local number,
however my<br>
SIP provider is requiring to dial 10 digits. is it possible
to add area<br>
code?<br>
<br>
Thanks,<br>
Motty<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.api-digital.com">http://www.api-digital.com</a>
--<br>
New to Asterisk? Join us for a live introductory webinar
every Thurs:<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div>
</span> <br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>