Clarification on the 2 vars....<div>you set origination_caller_id_number on the call leg directly.</div><div>you set effective_caller_id_number on any leg that will get bridged to something else.</div><div><br></div><div>Internally, the core will look if effective_caller_id_number is set on the A-leg to see if it can use it.</div>
<div><br></div><div>This said: originate {origination_caller_id_number=12223334444,effective_caller_id_number=13334445555}sofia/gateway/blah/12345 &amp;bridge(sofia/gateway/blah/54321)</div><div><br></div><div>12345 is called and sees 12223334444 as callerid, then the call is bridged to 54321 which sees 13334445555 because bridge looks up the variable in the a-leg.</div>
<div><br></div><div>It would be the same as doing</div><div>originate {origination_caller_id_number=12223334444}sofia/gateway/blah/12345 &amp;bridge({origination_caller_id_number=13334445555}sofia/gateway/blah/54321)</div>
<div><br></div><div>Having it as effective_caller_id_number only saves you the extra work of setting it on all B-legs&nbsp;</div><div><br></div><div>Mathieu</div><div><br><div class="gmail_quote">On Thu, Feb 19, 2009 at 6:03 AM, Alexandru Nedelcu <span dir="ltr">&lt;<a href="mailto:alex@sinapticode.ro">alex@sinapticode.ro</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Just a follow up, I execute the following command:<br>
<br>
originate<br>
{effective_caller_id_number=40722333444}sofia/gateway/provider/&lt;phone1&gt;<br>
&amp;bridge(&#39;sofia/gateway/provider/&lt;phone2&gt;&#39;)<br>
<br>
And it worked, but when I add origination_caller_id_number ... it<br>
overrides effective_caller_id_number.<br>
<br>
My provider&#39;s setup is nothing fancy, something like:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name=&quot;username&quot; value=&quot;anything&quot; /&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name=&quot;password&quot; value=&quot;anything&quot;/&gt;<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name=&quot;realm&quot; value=&quot;&lt;ip&gt;&quot; /&gt;<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;!-- tried setting this on and off --&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;!--&lt;param name=&quot;caller-id-in-from&quot; value=&quot;true&quot;/&gt;--&gt;<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
On Thu, 2009-02-19 at 12:36 +0200, Alexandru Nedelcu wrote:<br>
&gt; I don&#39;t know what I&#39;m doing wrong. origination_caller_id_number is used<br>
&gt; on the B-leg of the bridge, although I also specify the<br>
&gt; effective_caller_id_number.<br>
&gt;<br>
&gt; The thing is that it originally worked in my tests, and I can&#39;t figure<br>
&gt; out what changed in the meantime.<br>
&gt;<br>
&gt; The code is something like this ...<br>
&gt;<br>
&gt; session = new<br>
&gt; Session(&quot;{originate_retry_sleep_ms=30000,ignore_early_media=true,is_callcenter=0,origination_caller_id_number=+40722333444,effective_caller_id_number=+40711222333}sofia/gateway/provider/&lt;phone&gt;&quot;);<br>

&gt;<br>
&gt; if (session.ready()) {<br>
&gt;<br>
&gt; &nbsp; &nbsp; new_session = new Session(&quot;sofia/gateway/provider/&lt;another phone&gt;&quot;,<br>
&gt; session);<br>
&gt; &nbsp; &nbsp; if (new_session.ready())<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; bridge(session, new_session);<br>
&gt; }<br>
&gt;<br>
&gt; Thanks,<br>
<br>
<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>
</div></div></blockquote></div><br></div>