<div dir="ltr">It IS a trunk with multiple DID&#39;s and it IS registered with the provider.<div> <div>Setting the &quot;extension&quot; parameter however does not change anything. It&#39;s like the invite request is not &quot;matched&quot; with the gateway config and the option is therefore not applied.</div><div><div><br></div></div><div>It&#39;s a pretty simple config:</div><div><br></div><div><div>&lt;include&gt;</div><div>    &lt;gateway name=&quot;dev_tx1_13&quot;&gt;</div><div>        &lt;param name=&quot;proxy&quot; value=&quot;x.x.x.x&quot;/&gt;</div><div>        &lt;param name=&quot;ping&quot; value=&quot;10&quot;/&gt;</div><div>        &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;</div><div>        &lt;param name=&quot;extension&quot; value=&quot;auto_to_user&quot;/&gt;</div><div>        &lt;param name=&quot;username&quot; value=&quot;NCdWXsdSsaF2B&quot;/&gt;</div><div>        &lt;param name=&quot;password&quot; value=&quot;&lt;censored&gt;&quot;/&gt;</div><div>    &lt;/gateway&gt;</div><div>&lt;/include&gt;</div></div><div><br></div></div><div>I will contact the provider if the way they are doing it is non standard...</div><div><br></div><div>/Allan</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 7, 2016 at 5:56 PM, Victor Chukalovskiy <span dir="ltr">&lt;<a href="mailto:victor.chukalovskiy@gmail.com" target="_blank">victor.chukalovskiy@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>I&#39;d ask provider to make a change and send destination number in
      SIP URI like most others do. <br>
    </p>
    <p>Especially if later you get different numbers from a different
      provider, you might benefit from having it all standard from day
      1.<br>
    </p><div><div class="h5">
    <pre cols="72"></pre>
    <div>On 16-09-07 11:38 AM, Allan Kristensen
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div>I&#39;ve just setup a sip trunk with a new provider, however
          there are some issues receiving calls.</div>
        <div><br>
        </div>
        <div>The INVITE looks like this:</div>
        <div><br>
        </div>
        <div><font face="monospace, monospace">   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<br>
          </font></div>
        <div><font face="monospace, monospace">   ....</font></div>
        <div>
          <div><font face="monospace, monospace">   From:
              <a href="mailto:sip:+XXXXXXXXXX@x.x.x.x" target="_blank">&lt;sip:+XXXXXXXXXX@x.x.x.x&gt;</a>;tag=<wbr>Ud8ghaXg01821203</font></div>
          <div><font face="monospace, monospace">   To:
              <a href="mailto:sip:+YYYYYYYYYY@x.x.x.x" target="_blank">&lt;sip:+YYYYYYYYYY@x.x.x.x&gt;</a></font></div>
        </div>
        <div><font face="monospace, monospace">   ...</font></div>
        <div><br>
        </div>
        <div>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 ;-)<br>
        </div>
        <div><br>
        </div>
        <div>Then Freeswitch does this of cause:</div>
        <div><br>
        </div>
        <div><font face="monospace, monospace">[INFO]
            mod_dialplan_xml.c:637 Processing
            +XXXXXXXXXX &lt;+XXXXXXXXXX&gt;-&gt;<wbr>NCdWXsdSsaF2B in context
            inbound<br>
          </font></div>
        <div><br>
        </div>
        <div>That is undesirable, so Is there any way for Freeswitch to
          grab the destination number from the to field instead of the
          INVITE string ?</div>
        <div>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...</div>
        <div>Or is it my provider that is doing it wrong?<br>
        </div>
        <div><br>
        </div>
        <div>Best regards,</div>
        <div>  Allan</div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><span class=""><pre>______________________________<wbr>______________________________<wbr>_____________
Professional FreeSWITCH Consulting Services: 
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.<wbr>freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.<wbr>org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.<wbr>freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></pre>
    </span></blockquote>
    <br>
  </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></div>