<div dir="ltr"><div>Hi Brendan,<br><br></div>Can you attach an Asterisk log with "sip set debug on", "core set verbose 9" and "core set debug 9"?<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 18 August 2015 at 10:33, Brendan Ord <span dir="ltr"><<a href="mailto:bord@staff.onthenet.com.au" target="_blank">bord@staff.onthenet.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-AU">
<div>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><u></u> <u></u></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;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Asterisk log;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">app_dial.c: Called SIP/test/0429123456@CUBE<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">chan_sip.c: Got SIP response 500 "Internal Server Error" back from <a href="http://172.22.4.12:5060" target="_blank">172.22.4.12:5060</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">In the SIP SDP;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">INVITE <a href="mailto:sip%3A0429920437%2540CUBE@172.22.4.12" target="_blank">sip:0429920437%40CUBE@172.22.4.12</a> SIP/2.0.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">To: <<a href="mailto:sip%3A0429920437%2540CUBE@172.22.4.12" target="_blank">sip:0429920437%40CUBE@172.22.4.12</a>>.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><u></u> <u></u></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.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Here is my trunk configuration;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">PEER<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">type=friend<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">qualify=yes<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">nat=no<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">insecure=port,invite<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">host=172.22.4.12<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">dtmfmode=rfc2833<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">context=from-trunk<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">allow=ulaw<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">disallow=all<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">USER<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">type=friend<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">qualify=yes<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">nat=no<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">host=172.22.4.12<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">dtmfmode=rfc2833<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">allow=ulaw<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">disallow=all<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">canreinvite=no<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><u></u> <u></u></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 class="HOEnZb"><font color="#888888"><span style="font-family:"Verdana","sans-serif""><u></u><u></u></span></font></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Verdana","sans-serif";color:#da2128">Brendan Ord</span><span style="font-size:13.5pt;font-family:"Times New Roman","serif";color:black"><br>
</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:black">OntheNet - Network Engineer<br>
</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:#da2128">P</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:black"> 07 5553 9222<br>
</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:#da2128">F</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:black"> 07 5593 3557<br>
Level One, 165 Varsity Parade Varsity Lakes Qld 4227 (<a href="https://goo.gl/maps/p25WF" target="_blank"><span style="color:blue">Map</span></a>)<br>
<a href="http://www.onthenet.com.au/" target="_blank"><span style="color:blue">www.OntheNet.com.au</span></a></span><span><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</font></span></div>
</div>

<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" rel="noreferrer" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">David Cunningham, Voisonics<br><a href="http://voisonics.com/" target="_blank">http://voisonics.com/</a><br>USA: +1 213 221 1092<br>UK: +44 (0) 20 3298 1642<br>Australia: +61 (0) 2 8063 9019<br></div>
</div>