The API mthod of setting the callerid is really for testing purposes.  Since you have no callerid from the FS command line interface I added a parameter you can pass to specify the CID.<br><br>When in the dialplan you actually have the CID, so none is used.<br>
<br>mod_lcr is just grabbing the callerid on the channel.  I assme this is not the base callerid you want passed to the sip provider?<br><br><div class="gmail_quote">On Thu, Jun 4, 2009 at 6:02 AM, Yuriy Ivzhenko <span dir="ltr">&lt;<a href="mailto:yivzhenko@mksat.net">yivzhenko@mksat.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="font-family: &#39;Sans Serif&#39;; font-size: 10pt; font-weight: 400; font-style: normal;">
<p style="margin: 0px; text-indent: 0px;">Hello. </p>
<p style="margin: 0px; text-indent: 0px;">I have another problem with setting caller  id with cid field.</p>
<p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">command lcr has parameter [caller_id].</p>
<p style="margin: 0px; text-indent: 0px;">and if i call lcr from the commandline  it works fine,</p>
<p style="margin: 0px; text-indent: 0px;">but if i call lcr from dialplan it ignores this parameter and use original caller id from caller.</p>
<p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">my cid field = /^(.*)$/999$1/</p>
<p style="margin: 0px; text-indent: 0px;">If i call lcr from the commandline </p>
<p style="margin: 0px; text-indent: 0px;">        lcr 444555 default 11111</p>
<p style="margin: 0px; text-indent: 0px;">lcr return origination_caller_id_number=99911111</p>
<p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">but if i call lcr from dialplan</p>
<p style="margin: 0px; text-indent: 0px;">        &lt;action application=&quot;lcr&quot; data=&quot;444555 default 11111&quot;/&gt;</p>
<p style="margin: 0px; text-indent: 0px;">lcr return origination_caller_id_number=9991002</p>
<p style="margin: 0px; text-indent: 0px;">1002 is a original caller id number</p>
<p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">There is  a way to use this parameter from dialplan? </p>
<p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">Yuriy</p>
<p style="margin: 0px; text-indent: 0px;"></p></div><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>
<br></blockquote></div><br><br clear="all"><br>-- <br>-Rupa<br>