<div dir="ltr">Yes indeed.<br><br>Do you have the dialplan, eg from /etc/asterisk/extensions.conf?<br><br>Something is getting this OUT_3_SUFFIX variable and including it in a Dial to 172.22.4.12.<span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><br><br></span></div><div class="gmail_extra"><br><div class="gmail_quote">On 18 August 2015 at 16:21, 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-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d">Starting to make sense when I saw this line:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d">[2015-08-18 15:01:33] DEBUG[19366][C-00001cfc]: pbx.c:3785 ast_str_retrieve_variable: Result of 'OUT_3_SUFFIX' is '@CUBE'<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d">But I can’t find where this is in configuration ..<u></u><u></u></span></p><span class="">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div>
<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;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">Map</a>)<br>
<a href="http://www.onthenet.com.au/" target="_blank">www.OntheNet.com.au</a></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
</span><div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>]
<b>On Behalf Of </b>Brendan Ord<br>
<b>Sent:</b> Tuesday, 18 August 2015 3:44 PM</span></p><div><div class="h5"><br>
<b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br>
<b>Subject:</b> Re: [asterisk-users] Asterisk 13 chan_sip trunk appending @string to dialled number<u></u><u></u></div></div><p></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d">David,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d">I should also note;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d">246 is my extension, it has IP 172.22.3.238.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d">172.22.4.8 is the PBX, and 172.22.4.12 is the 2800 gateway.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d">The trunk is called ‘testing’ at the moment.  The route that selects this trunk uses a 9 prefix.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d">This system is in semi-production, so there might be fluff in the log from other active calls.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><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;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">Map</a>)<br>
<a href="http://www.onthenet.com.au/" target="_blank">www.OntheNet.com.au</a></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>]
<b>On Behalf Of </b>David Cunningham<br>
<b>Sent:</b> Tuesday, 18 August 2015 2:39 PM<br>
<b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br>
<b>Subject:</b> Re: [asterisk-users] Asterisk 13 chan_sip trunk appending @string to dialled number<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Brendan,<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Can you attach an Asterisk log with "sip set debug on", "core set verbose 9" and "core set debug 9"?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On 18 August 2015 at 10:33, Brendan Ord <<a href="mailto:bord@staff.onthenet.com.au" target="_blank">bord@staff.onthenet.com.au</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Hello,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><u></u><u></u></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;</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Asterisk log;</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">app_dial.c: Called SIP/test/0429123456@CUBE</span><u></u><u></u></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></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">In the SIP SDP;</span><u></u><u></u></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.</span><u></u><u></u></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>>.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><u></u><u></u></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.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Here is my trunk configuration;</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">PEER</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">type=friend</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">qualify=yes</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">nat=no</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">insecure=port,invite</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">host=172.22.4.12</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">dtmfmode=rfc2833</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">context=from-trunk</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">allow=ulaw</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">disallow=all</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">USER</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">type=friend</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">qualify=yes</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">nat=no</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">host=172.22.4.12</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">dtmfmode=rfc2833</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">allow=ulaw</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">disallow=all</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">canreinvite=no</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Thanks for any help
</span><span style="font-family:Wingdings">J</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif";color:#888888"> </span><span style="color:#888888"><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;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">Map</a>)<br>
<a href="http://www.onthenet.com.au/" target="_blank">www.OntheNet.com.au</a></span><span style="color:#888888"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#888888"> <u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" 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" 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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <u></u><u></u></p>
<div>
<p class="MsoNormal">David Cunningham, Voisonics<br>
<a href="http://voisonics.com/" target="_blank">http://voisonics.com/</a><br>
USA: <a href="tel:%2B1%20213%20221%201092" value="+12132211092" target="_blank">+1 213 221 1092</a><br>
UK: <a href="tel:%2B44%20%280%29%2020%203298%201642" value="+442032981642" target="_blank">+44 (0) 20 3298 1642</a><br>
Australia: <a href="tel:%2B61%20%280%29%202%208063%209019" value="+61280639019" target="_blank">+61 (0) 2 8063 9019</a><u></u><u></u></p>
</div>
</div>
</div></div></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>