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