<div dir="ltr"><a href="https://freeswitch.org/confluence/display/FREESWITCH/Sofia+Configuration+Files#SofiaConfigurationFiles-Parameters">https://freeswitch.org/confluence/display/FREESWITCH/Sofia+Configuration+Files#SofiaConfigurationFiles-Parameters</a><br><div><br></div><div>Specifically the &quot;extension&quot; parameter.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 7 September 2016 at 16:43, Ken Rice <span dir="ltr">&lt;<a href="mailto:krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">Check out the info dialplan application…<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">You’re provider is doing something unusual here as the invite URI is what you use to route the call, the to: uri is supposed to be the original dialed digits<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@<wbr>lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-<wbr>bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Allan Kristensen<br><b>Sent:</b> Wednesday, September 7, 2016 10:39 AM<br><b>To:</b> FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.<wbr>freeswitch.org</a>&gt;<br><b>Subject:</b> [Freeswitch-users] Getting destination number<u></u><u></u></span></p><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Hello,<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I&#39;ve just setup a sip trunk with a new provider, however there are some issues receiving calls.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">The INVITE looks like this:<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">   INVITE <a href="http://sip:NCdWXsdSsaF2B@192.168.0.190:52284" target="_blank">sip:NCdWXsdSsaF2B@192.168.0.<wbr>190:52284</a> SIP/2.0</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">   ....</span><u></u><u></u></p></div><div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">   From: &lt;<a>sip:+XXXXXXXXXX@x.x.x.x</a>&gt;;tag=<wbr>Ud8ghaXg01821203</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">   To: &lt;<a>sip:+YYYYYYYYYY@x.x.x.x</a>&gt;</span><u></u><u></u></p></div></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">   ...</span><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">The invite has my account name, instead of the destination number and the real destination number is in the &quot;To:&quot; field (which it normally is I guess ;-)<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Then Freeswitch does this of cause:<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">[INFO] mod_dialplan_xml.c:637 Processing +XXXXXXXXXX &lt;+XXXXXXXXXX&gt;-&gt;<wbr>NCdWXsdSsaF2B in context inbound</span><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">That is undesirable, so Is there any way for Freeswitch to grab the destination number from the to field instead of the INVITE string ?<u></u><u></u></p></div><div><p class="MsoNormal">I could make a special sip profile for that provider with it&#39;s own dialplan and then set destination_number from the &quot;sip_to_user&quot; variable and transfer to the real dialplan, but it just seems so messy...<u></u><u></u></p></div><div><p class="MsoNormal">Or is it my provider that is doing it wrong?<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Best regards,<u></u><u></u></p></div><div><p class="MsoNormal">  Allan<u></u><u></u></p></div></div></div></div></div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><b>Andrew Cassidy BSc (Hons) MBCS SSCA</b><div>Managing Director<div><div><img src="https://docs.google.com/uc?export=download&amp;id=0B48A-71LkjxcRUlpZlNFZmY5Q2s&amp;revid=0B48A-71LkjxcaWJXYm5XZjdGY1czZFF1citBazFCVXV6R0ZnPQ"><br></div><div><div>03303 880 960 <a href="mailto:andrew@cassidywebservices.co.uk" style="font-size:12.8px" target="_blank">andrew@cassidyweb.co.uk</a> <a href="http://www.cassidywebservices.co.uk" style="font-size:12.8px" target="_blank">www.cassidyweb.co.uk</a></div></div></div></div></div></div></div></div></div>
</div>