[Freeswitch-users] Controlling the caller ID

Nick Vines jnvines at gmail.com
Wed Oct 10 23:40:52 MSD 2012


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 at 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 at Vex.Net
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121010/1c85c3b8/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list