You want: <param name="extension" value="auto_to_user"/> in your gateway config.Via: http://wiki.freeswitch.org/wiki/Clarification:gateways
<!--/// 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="cluecon"/>-->-AviBestFone
On Mon, Jul 23, 2012 at 10:29 AM, Systeembeheer <support@sping.nl> wrote:
Hi,
Trying to get freeswitch to answer to a trunk with 10 different phone
numbers. With all inbound calls however, the 'destination number' in
conditions in the dialplan contains the login name of the gateway (where
the trunk comes from), not the dialed number. The variable
'sip_req_user' does contain the true dialed number, but why doesn't the
'dialed number' field?
Thanks!
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com Join Us At ClueCon - Aug 7-9, 2012 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