i was thinking more in direction of building custom sql that deals with both Caller_id and destination number. I'm aware that the current&nbsp; off the box mod_lcr&nbsp; has no such ability&nbsp; and that's why i asked if there is a way from&nbsp; dial plan to pass the caller_id_number&nbsp; channel variable to&nbsp; mod_lcr.<br>Thanks&nbsp; <br><br>----- Original Message -----<br>From: "Rupa Schomaker (lists)" &lt;freeswitch-users@lists.rupa.com&gt;<br>Date: Monday, February 16, 2009 9:01 pm<br>Subject: Re: [Freeswitch-users] Passing Caller_ID to MOD_LCR<br>To: freeswitch-users@lists.freeswitch.org<br><br>&gt; On 2/16/2009 7:40 PM, Tchavdar Paskov wrote:<br>&gt; &gt; &gt; Hi,<br>&gt; &gt; &gt; Is there a way to pass Caller Id to mod lcr and somehow to <br>&gt; include it in<br>&gt; &gt; &gt; a custom&nbsp; sql.<br>&gt; &gt; &gt; currently&nbsp; my dialplan looks like this:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp; &lt;extension name="LCR"&gt;<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition <br>&gt; field="destination_number" expression="^1(\d+)$"<br>&gt; &gt; &gt; break="never"&gt;<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&gt; &lt;action application="set" data="bypass_media=true" /&gt;<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action <br>&gt; application="lcr" data="$1"/&gt;<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action <br>&gt; application="bridge" data="${lcr_auto_route}"/&gt;<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<br>&gt; &gt; &gt; i guess that Caller_ID is already passed but i was <br>&gt; thinking&nbsp; about<br>&gt; &gt; &gt; making some LCR decisions based on Destination number and <br>&gt; Caller_ID&gt; &gt; /Interstate,Intrastate for example/<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Thanks for your time<br>&gt; <br>&gt; mod_lcr doesn't make any decisions based on caller id.&nbsp; <br>&gt; Probably the<br>&gt; best way to handle this would be to use profiles.&nbsp; You <br>&gt; could extract the<br>&gt; areacode and use that to determine which profile to use.&nbsp; <br>&gt; It would be<br>&gt; awkward if you want to handle all area codes -- but for a <br>&gt; smaller set of<br>&gt; area codes it might be sufficient.<br>&gt; <br>&gt; <br>&gt; &gt; &gt; Regards<br>&gt; &gt; &gt; Chav<br>&gt; &gt; &gt;<br>&gt; <br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; Freeswitch-users mailing list<br>&gt; Freeswitch-users@lists.freeswitch.org<br>&gt; http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>&gt; UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>&gt; http://www.freeswitch.org<br>&gt;