I ran into a similar problem and setting origination_caller_id name and number fixed it for me. http://wiki.freeswitch.org/wiki/Variable_origination_caller_id_number On Wed, Oct 10, 2012 at 3:34 PM, D'Arcy J.M. Cain <darcy@vex.net> wrote:
I have Google and the mailing list but so far no joy. Basically all I want to do is prevent users from setting their own caller ID and name.
From the mailing list I saw something like this:
<user id="4165551212" mailbox="4165551212"> <params> <param name="password" value="password"/> <param name="vm-password" value="1234"/> </params> <variables> <variable name="accountcode" value="4165551212"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="User Name"/> <variable name="effective_caller_id_number" value="4165551212"/> <variable name="outbound_caller_id_name" value="User Name"/> <variable name="outbound_caller_id_number" value="4165551212"/> </variables> </user>
And in the default dialplan:
<include> <extension name="mygateway"> <condition field="destination_number" expression="^1?(\d{10})\d*$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/mygateway/$1"/> </condition> </extension> </include>
But this still sends the name and ID from the VoIP adapter. Am I missing something?
Thanks for all help.
-- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy@Vex.Net
_________________________________________________________________________ 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
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