<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Brenden,<br>
      <br>
      check the context, from-trunk, in the dialplan.  Thtat's where
      this is being added<br>
      <br>
       <br>
      <br>
      On 8/17/15 5:33 PM, Brendan Ord wrote:<br>
    </div>
    <blockquote
      cite="mid:B3E09B948995A84B8A68E87D6B6C1A7C4D40CCFC@JAZZ.onthenet.local"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Verdana","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">Hello,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">I’m
            having what seems like a weird issue connecting Asterisk 13
            (FreePBX 12) to a Cisco 2811 router via a chan_sip trunk. 
            Whenever I try dialling out via this trunk, something
            appends ‘@CUBE’ onto the end of the dialled number, as per
            the following examples;<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">Asterisk
            log;<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">app_dial.c:
            Called SIP/test/0429123456@CUBE<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">chan_sip.c:
            Got SIP response 500 "Internal Server Error" back from
            172.22.4.12:5060<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">In
            the SIP SDP;<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">INVITE
            <a class="moz-txt-link-freetext" href="sip:0429920437%40CUBE@172.22.4.12">sip:0429920437%40CUBE@172.22.4.12</a> SIP/2.0.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">To:
            <a class="moz-txt-link-rfc2396E" href="sip:0429920437%40CUBE@172.22.4.12"><sip:0429920437%40CUBE@172.22.4.12></a>.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">As
            you can see, the @CUBE carries over into the SIP URI as
            %40CUBE.  The FPBX trunk name and outbound route were called
            CUBE (afaik, purely descriptive) but I changed them to
            something different and the @CUBE persisted.  I’m really not
            sure where this is coming from, and why.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">Here
            is my trunk configuration;<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">PEER<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">type=friend<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">qualify=yes<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">nat=no<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">insecure=port,invite<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">host=172.22.4.12<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">dtmfmode=rfc2833<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">context=from-trunk<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">allow=ulaw<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">disallow=all<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">USER<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">type=friend<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">qualify=yes<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">nat=no<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">host=172.22.4.12<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">dtmfmode=rfc2833<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">allow=ulaw<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">disallow=all<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">canreinvite=no<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">Thanks
            for any help
          </span><span style="font-family:Wingdings">J</span><span
            style="font-family:"Verdana","sans-serif""><o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Verdana","sans-serif";color:#DA2128;mso-fareast-language:EN-AU">Brendan
            Ord</span><span
            style="font-size:13.5pt;font-family:"Times New
            Roman","serif";color:black;mso-fareast-language:EN-AU"><br>
          </span><span
style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:black;mso-fareast-language:EN-AU">OntheNet
            - Network Engineer<br>
          </span><span
style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:#DA2128;mso-fareast-language:EN-AU">P</span><span
style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:black;mso-fareast-language:EN-AU"> 07
            5553 9222<br>
          </span><span
style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:#DA2128;mso-fareast-language:EN-AU">F</span><span
style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:black;mso-fareast-language:EN-AU"> 07
            5593 3557<br>
            Level One, 165 Varsity Parade Varsity Lakes Qld 4227 (<a
              moz-do-not-send="true" href="https://goo.gl/maps/p25WF"><span
                style="color:blue">Map</span></a>)<br>
            <a moz-do-not-send="true" href="http://www.onthenet.com.au/"><span
                style="color:blue">www.OntheNet.com.au</span></a></span><span
            style="mso-fareast-language:EN-AU"><o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </body>
</html>