[Freeswitch-users] Controlling the caller ID
D'Arcy J.M. Cain
darcy at Vex.Net
Wed Oct 10 23:34:45 MSD 2012
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
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list