<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    this code worked for me,<br>
    <br>
    here is what I did and worked for me: <br>
    <p class="MsoNormal"><span class="SpellE"><font face="Calibri"
          size="2"><span style="font-size:11.0pt">exten</span></font></span>
      => 1381+NXXXXXX,1,Set(CALLERID(number)=3817383444)<o:p></o:p></p>
    <span class="SpellE"><font face="Calibri" size="2"><span
          style="font-size:11.0pt">exten</span></font></span> =>
    1+NXXNXXXXXX,2,Dial(SIP/<span class="SpellE">SIP-Provider</span>/${EXTEN:1},80)<br>
    <br>
    <br>
    Thanks for you help!<br>
    <br>
    <div class="moz-cite-prefix">On 04/27/2015 02:56 PM, Matt Riddell
      wrote:<br>
    </div>
    <blockquote
      cite="mid:EC7AA169-454D-481D-8181-26EAA46B9B38@venturevoip.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <br class="">
      <div>
        <blockquote type="cite" class="">
          <div class="">On 27Apr, 2015, at 16:39, Motty Cruz <<a
              moz-do-not-send="true" href="mailto:motty.cruz@gmail.com"
              class="">motty.cruz@gmail.com</a>> wrote:</div>
          <br class="Apple-interchange-newline">
          <div class="">
            <meta content="text/html; charset=windows-1252"
              http-equiv="Content-Type" class="">
            <div text="#000000" bgcolor="#FFFFFF" class=""> forgot to
              mentioned I am running Asterisk 1.8.22.0 on CentOS. <br
                class="">
              <br class="">
              Thanks, <br class="">
              <br class="">
              <br class="">
              <div class="moz-cite-prefix">On 04/27/2015 02:38 PM, Motty
                Cruz wrote:<br class="">
              </div>
              <blockquote cite="mid:553EAC6C.8010200@gmail.com"
                type="cite" class="">
                <meta content="text/html; charset=windows-1252"
                  http-equiv="Content-Type" class="">
                here is what I have: <br class="">
                <p class="MsoNormal"><span class="SpellE"><font class=""
                      face="Calibri" size="2"><span
                        style="font-size:11.0pt" class="">exten</span></font></span>
                  => _9XXXXXXX,1,Set(<span class="SpellE">l_HomeAreaCode</span>=381)<o:p
                    class=""></o:p></p>
                <p class="MsoNormal"><span class="SpellE"><font class=""
                      face="Calibri" size="2"><span
                        style="font-size:11.0pt" class="">exten</span></font></span>
                  => _9XXXXXXX,n,Set(<span class="SpellE">dialnumber</span>=${<span
                    class="SpellE">l_HomeAreaCode</span>}${EXTEN:-1})<o:p
                    class=""></o:p></p>
                <span class="SpellE"><font class="" face="Calibri"
                    size="2"><span style="font-size:11.0pt" class="">exten</span></font></span>
                => _9XXXXXXX,n,Dial(SIP<span class="SpellE">/SIP-Provider</span>/${<span
                  class="SpellE">dialnumber</span>},80)<br class="">
                <br class="">
                not having success; <br class="">
                <br class="">
                "Got SIP reponse 503" Service Unavailable”</blockquote>
            </div>
          </div>
        </blockquote>
        <br class="">
      </div>
      <div>Can you send us the console output when you make the call?</div>
      <div><br class="">
      </div>
      <div apple-content-edited="true" class=""><span
          class="Apple-style-span" style="border-collapse: separate;
          color: rgb(0, 0, 0); font-family: Helvetica; font-style:
          normal; font-variant: normal; font-weight: normal;
          letter-spacing: normal; line-height: normal; orphans: 2;
          text-align: -webkit-auto; text-indent: 0px; text-transform:
          none; white-space: normal; widows: 2; word-spacing: 0px;
          border-spacing: 0px; -webkit-text-decorations-in-effect: none;
          -webkit-text-stroke-width: 0px;">
          <div style="word-wrap: break-word; -webkit-nbsp-mode: space;
            -webkit-line-break: after-white-space;" class="">
            <div class="">--</div>
            <div class="">Cheers,</div>
            <div class=""><br class="">
            </div>
            <div class="">Matt Riddell</div>
            <div class="">_______________________________________________</div>
            <div class=""><br class="">
            </div>
            <div class=""><a moz-do-not-send="true"
                href="http://www.venturevoip.com/news.php" class="">http://www.venturevoip.com/news.php</a>
              (Daily Asterisk News)</div>
            <div class=""><a moz-do-not-send="true"
                href="http://www.venturevoip.com/pabx_on_disk.php"
                class="">http://www.venturevoip.com/pabx_on_disk.php</a>
              (PABX on a Disk)</div>
            <div class=""><a moz-do-not-send="true"
                href="http://www.venturevoip.com/exchange.php" class="">http://www.venturevoip.com/exchange.php</a>
              (Full ITSP Solution)</div>
            <div class=""><a moz-do-not-send="true"
                href="http://www.venturevoip.com/cc.php" class="">http://www.venturevoip.com/cc.php</a>
              (Call Centre Solutions)</div>
          </div>
        </span>
      </div>
      <br class="">
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </body>
</html>