<div dir="ltr"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"> <action application="set"</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"> data="effective_caller_id_</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">number=${effective_caller_id_</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">number}"/></span><div>
<font color="#222222" face="arial, sans-serif">... doesn't do anything. You're just setting a variable to the same variable.</font></div><div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">The use for this kind of thing is specifying outbound_name and outbound_number in addition to an internal_name and internal_number to use different caller ID if you make an intra-office call as opposed to calling outside.</font></div>
<div><font color="#222222" face="arial, sans-serif"><br clear="all"></font><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi</span></div>
<br><br><div class="gmail_quote">On Thu, Oct 11, 2012 at 4:34 PM, D'Arcy J.M. Cain <span dir="ltr"><<a href="mailto:darcy@vex.net" target="_blank">darcy@vex.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, 10 Oct 2012 22:26:17 -0500<br>
Ken Rice <<a href="mailto:krice@freeswitch.org">krice@freeswitch.org</a>> wrote:<br>
<br>
> termination is termination and origination is origination... just<br>
> because out interconnect tech is primarily sip vs tdm (pots pri ss7<br>
> etc) the terminology does not change.<br>
<br>
Cool. I am so glad to hear that FS got that right. People seem to get<br>
confused. One provider talks about "inbound" and "outbound" to<br>
reduce their user's confusion but that's like saying "left" and "right"<br>
on a ship. It depends on which direction you are looking.<br>
<br>
> as far as freeswitch controlling what clid is passed thru, that is up<br>
> to how you configure freswitch. yes it can pass thru what the<br>
> customer sends or it can block that and send something you have<br>
> configured for the customer... for the later see the effective caller<br>
> id name and number variables on the fs wiki.<br>
<br>
Yes, I did that and it still left me with some questions. I know that<br>
I may sound knowledgeable about some of these things but when it comes<br>
to the FreeSWITCH package itself I am a rank amateur so please bear with<br>
me while I describe my understanding in excruciating detail to make sure<br>
that I have it right.<br>
<br>
Here is an actual (sanitized) directory entry.<br>
<br>
<include><br>
<user id="<a href="tel:4164251212" value="+14164251212">4164251212</a>" mailbox="<a href="tel:4164251212" value="+14164251212">4164251212</a>"><br>
<params><br>
<param name="password" value="password"/><br>
<param name="vm-password" value="0000"/><br>
</params><br>
<variables><br>
<variable name="accountcode" value="<a href="tel:4164251212" value="+14164251212">4164251212</a>"/><br>
<variable name="user_context" value="default"/><br>
<variable name="effective_caller_id_name" value="Vex Consulting"/><br>
<variable name="effective_caller_id_number" value="<a href="tel:4164251212" value="+14164251212">4164251212</a>"/><br>
</variables><br>
</user><br>
</include><br>
<br>
Here is my (again, sanitized) dialplan.<br>
<br>
<include><br>
<extension name="mygateway"><br>
<condition field="destination_number" expression="^1?(\d{10})\d*$"><br>
<action application="set"<br>
data="effective_caller_id_number=${effective_caller_id_number}"/><br>
<action application="set"<br>
data="effective_caller_id_name=${effective_caller_id_name}"/><br>
<action application="bridge" data="sofia/gateway/mygateway/$1"/><br>
</condition><br>
</extension><br>
</include><br>
<br>
So, just before sending this message I decided to test one more time<br>
and realized that the reason this didn't seem to work was that the cell<br>
phone I was testing with had my office number in the contacts and was<br>
displaying that name rather than the CNAME. I changed the number<br>
<a href="tel:%28416-555-1212" value="+14165551212">(416-555-1212</a>) and it sent that number and displayed the proper CNAME.<br>
I decided to send this message anyway to help future mailing list<br>
searchers with a working example as well as pointing out a possible<br>
testing gotcha.<br>
<br>
--<br>
D'Arcy J.M. Cain<br>
System Administrator, Vex.Net<br>
<a href="http://www.Vex.Net/" target="_blank">http://www.Vex.Net/</a> IM:darcy@Vex.Net<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div></div>