Try the auto_to_user value.

<!--/// extension for inbound calls: *optional* Same as username, if blank. To use what's in ${sip_to_user}, set it to the value "auto_to_user" ///-->
<param name="extension" value=""/>

Source: http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files

-Steve


On 11 April 2011 13:35, Boris Kovalenko <boris@tagnet.ru> wrote:
Hello!

    Reading documentation about gateways and misunderstanding. Please clarify: when there is inbound call from a gateway the destination_number is set to:
<!--/// extension for inbound calls: *optional* same as username, if blank ///-->
<!--<param name="extension" value="cluecon"/>-->
But in this case how may I know what destination_number gateway is calling?
-- 
Regards,
Boris


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org