Try the auto_to_user value.<br><br>&lt;!--/// extension for inbound calls: *optional* Same as username, if blank. To use what&#39;s in ${sip_to_user}, set it to the value &quot;auto_to_user&quot; ///--&gt;<br>&lt;param name=&quot;extension&quot; value=&quot;&quot;/&gt;<br>

<br>Source: <a href="http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files">http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files</a><br><br>-Steve<br><br><br><div class="gmail_quote">On 11 April 2011 13:35, Boris Kovalenko <span dir="ltr">&lt;<a href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

  

    
  
  <div text="#000000" bgcolor="#ffffff">
    Hello!<br>
    <br>
        Reading documentation about gateways and misunderstanding.
    Please clarify: when there is inbound call from a gateway the
    destination_number is set to:<br>
    <code></code>
    <pre>&lt;!--/// extension for inbound calls: *optional* same as username, if blank ///--&gt;
&lt;!--&lt;param name=&quot;extension&quot; value=&quot;cluecon&quot;/&gt;--&gt;</pre>
    But in this case how may I know what destination_number gateway is
    calling?<br>
    <pre cols="72">-- 
Regards,
Boris

</pre>
  </div>

<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">

</div>