<div dir="ltr"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"> &lt;action application=&quot;set&quot;</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=&quot;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}&quot;/&gt;</span><div>

<font color="#222222" face="arial, sans-serif">... doesn&#39;t do anything. You&#39;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&#39;Arcy J.M. Cain <span dir="ltr">&lt;<a href="mailto:darcy@vex.net" target="_blank">darcy@vex.net</a>&gt;</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 &lt;<a href="mailto:krice@freeswitch.org">krice@freeswitch.org</a>&gt; wrote:<br>
<br>
&gt; termination is termination and origination is origination... just<br>
&gt; because out interconnect tech is primarily sip vs tdm (pots pri ss7<br>
&gt; 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 &quot;inbound&quot; and &quot;outbound&quot; to<br>
reduce their user&#39;s confusion but that&#39;s like saying &quot;left&quot; and &quot;right&quot;<br>
on a ship. It depends on which direction you are looking.<br>
<br>
&gt; as far as freeswitch controlling what clid is passed thru, that is up<br>
&gt; to how you configure freswitch. yes it can pass thru what the<br>
&gt; customer sends or it can block that and send something you have<br>
&gt; configured for the customer... for the later see the effective caller<br>
&gt; 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>
&lt;include&gt;<br>
  &lt;user id=&quot;<a href="tel:4164251212" value="+14164251212">4164251212</a>&quot; mailbox=&quot;<a href="tel:4164251212" value="+14164251212">4164251212</a>&quot;&gt;<br>
    &lt;params&gt;<br>
      &lt;param name=&quot;password&quot; value=&quot;password&quot;/&gt;<br>
      &lt;param name=&quot;vm-password&quot; value=&quot;0000&quot;/&gt;<br>
    &lt;/params&gt;<br>
    &lt;variables&gt;<br>
      &lt;variable name=&quot;accountcode&quot; value=&quot;<a href="tel:4164251212" value="+14164251212">4164251212</a>&quot;/&gt;<br>
      &lt;variable name=&quot;user_context&quot; value=&quot;default&quot;/&gt;<br>
      &lt;variable name=&quot;effective_caller_id_name&quot; value=&quot;Vex Consulting&quot;/&gt;<br>
      &lt;variable name=&quot;effective_caller_id_number&quot; value=&quot;<a href="tel:4164251212" value="+14164251212">4164251212</a>&quot;/&gt;<br>
    &lt;/variables&gt;<br>
  &lt;/user&gt;<br>
&lt;/include&gt;<br>
<br>
Here is my (again, sanitized) dialplan.<br>
<br>
&lt;include&gt;<br>
  &lt;extension name=&quot;mygateway&quot;&gt;<br>
    &lt;condition field=&quot;destination_number&quot; expression=&quot;^1?(\d{10})\d*$&quot;&gt;<br>
      &lt;action application=&quot;set&quot;<br>
        data=&quot;effective_caller_id_number=${effective_caller_id_number}&quot;/&gt;<br>
      &lt;action application=&quot;set&quot;<br>
        data=&quot;effective_caller_id_name=${effective_caller_id_name}&quot;/&gt;<br>
      &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/mygateway/$1&quot;/&gt;<br>
    &lt;/condition&gt;<br>
  &lt;/extension&gt;<br>
&lt;/include&gt;<br>
<br>
So, just before sending this message I decided to test one more time<br>
and realized that the reason this didn&#39;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&#39;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>