<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<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";
color:black;
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";
color:black;
mso-fareast-language:EN-US;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Verdana","sans-serif";
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Verdana","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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]-->
</head>
<body bgcolor="white" lang="EN-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif";color:#1F497D">Hi Bruce,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif";color:#1F497D">At the risk of sounding dumb
</span><span style="font-family:Wingdings;color:#1F497D">J</span><span style="font-family:"Verdana","sans-serif";color:#1F497D"> And, realising that I mustn’t know how context’s work properly (I guess they aren’t like Calling Search Spaces in Cisco-land).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif";color:#1F497D">I tried changing the context to from-internal and from-pstn with no change to @CUBE being appended.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif";color:#1F497D">The from-trunk context looks pretty long, and includes a heap of other contexts as well – this is all default configuration in FreePBX. I assume they’re doing most of the context
leg work for us already in their distro’s …<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif";color:#1F497D">Is there something I can stick in an email which might give a hint to my problem, or somewhere I should be looking? I was looking in extensions.conf at the contexts defined
in there, was I in the wrong place?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif";color:#1F497D">Thanks in advance,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<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";mso-fareast-language:EN-AU"><br>
</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";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";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";mso-fareast-language:EN-AU"> 07 5593 3557<br>
Level One, 165 Varsity Parade Varsity Lakes Qld 4227 (<a href="https://goo.gl/maps/p25WF">Map</a>)<br>
<a href="http://www.onthenet.com.au/">www.OntheNet.com.au</a></span><span style="color:#1F497D;mso-fareast-language:EN-AU"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-AU">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-AU">
asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com]
<b>On Behalf Of </b>Bruce Ferrell<br>
<b>Sent:</b> Tuesday, 18 August 2015 10:38 AM<br>
<b>To:</b> asterisk-users@lists.digium.com<br>
<b>Subject:</b> Re: [asterisk-users] Asterisk 13 chan_sip trunk appending @string to dialled number<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">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:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Hello,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><o:p></o:p></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><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Asterisk log;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">app_dial.c: Called SIP/test/0429123456@CUBE</span><o:p></o:p></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</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">In the SIP SDP;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">INVITE <a href="sip:0429920437%40CUBE@172.22.4.12">
sip:0429920437%40CUBE@172.22.4.12</a> SIP/2.0.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">To: <a href="sip:0429920437%40CUBE@172.22.4.12">
<sip:0429920437%40CUBE@172.22.4.12></a>.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><o:p></o:p></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><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Here is my trunk configuration;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">PEER</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">type=friend</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">qualify=yes</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">nat=no</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">insecure=port,invite</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">host=172.22.4.12</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">dtmfmode=rfc2833</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">context=from-trunk</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">allow=ulaw</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">disallow=all</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">USER</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">type=friend</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">qualify=yes</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">nat=no</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">host=172.22.4.12</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">dtmfmode=rfc2833</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">allow=ulaw</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">disallow=all</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">canreinvite=no</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Thanks for any help
</span><span style="font-family:Wingdings">J</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><o:p></o:p></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"><br>
</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";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";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";mso-fareast-language:EN-AU"> 07 5593 3557<br>
Level One, 165 Varsity Parade Varsity Lakes Qld 4227 (<a href="https://goo.gl/maps/p25WF">Map</a>)<br>
<a href="http://www.onthenet.com.au/">www.OntheNet.com.au</a></span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-AU"><br>
<br>
<o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-AU"><o:p> </o:p></span></p>
</div>
</body>
</html>