I'm not an expert in this area but I have a feeling that possibly mod_lcr can do what you want to do. Have you looked at that module by any chance? <br><a href="http://wiki.freeswitch.org/wiki/Mod_lcr">http://wiki.freeswitch.org/wiki/Mod_lcr</a><br>
<br>-MC<br><br><div class="gmail_quote">On Wed, Nov 14, 2012 at 6:21 AM, Archana Venugopan <span dir="ltr"><<a href="mailto:a.venugopan@mundio.com" target="_blank">a.venugopan@mundio.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-GB">
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I have an issue, currently incoming and outgoing calls are looking at a single lua script (directory.lua) and find the corresponding numbers from a table and route the calls. This is what I thought from the logs.<u></u><u></u></p>
<p class="MsoNormal">Now the requirement is to check for the numbers for incoming call from different table. If I change (directory.lua) script, then outgoing call display is also getting changed.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">As I am new to freeswitch and lua scripts I could not understand from where I should proceed. From logs (<07867429523>->447574745125), this I am calling from offnet(Vodafone,O2) to internal number(which will be present in my Database).<u></u><u></u></p>
<p class="MsoNormal">Ideally I should change the script in such a way that 447574745125 should be looked up from did table and direct the call. But currently its looking up in dir_users table from num_lookup.lua(which is stored as variables) and using user_id
its picking up the msisdn values from dir_users(directory.lua) and transferring the call.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Should I need to write a new lua so that outgoing call and incoming call looks up different lua scripts?<u></u><u></u></p>
<p class="MsoNormal">Or Can I change any of these existing lua?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I have no clue on this, Can anyone please guide me. Many thanks.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Regards,<u></u><u></u></p>
<p class="MsoNormal">Archana<span style="font-size:10.0pt"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>