Try setting up an extension that sets the variables and calls lcr, then use originate from the cli to dial into that extension.

If you're already using LCR for live traffic, you can use profiles to execute the existing query for normal calls and your custom sql just on a testing profile that you call explicitly:
<action application="lcr" data="$1 testprofile"/>

-Steve



On 7 July 2010 18:45, Roger Salloum <roger_salloum@shaw.ca> wrote:
Hi,

Is there a way to set channel variables in the CLI? I have created a custom sql that uses channel variables to determine routes, and wanted to test it through the CLI. However, I can't find out how to set the channel variables in the CLI so that the lcr module will have that information to use in the sql statement.

Thanks,


_______________________________________________
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