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?
http://wiki.freeswitch.org/wiki/Mod_lcr
-MC
Hi,
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.
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.
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).
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.
Should I need to write a new lua so that outgoing call and incoming call looks up different lua scripts?
Or Can I change any of these existing lua?
I have no clue on this, Can anyone please guide me. Many thanks.
Regards,
Archana
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org