<p dir="ltr">Whether or not you hand it back to mod_ivr or not, to set a channel variable in Lua:</p>
<p dir="ltr">session:setVariable(&quot;varname&quot;, &quot;varvalue&quot;);</p>
<p dir="ltr">This has the same effect as using the set application in the dialplan:</p>
<p dir="ltr">&lt;action application=&quot;set&quot; data=&quot;varname=varvalue&quot;/&gt;</p>
<p dir="ltr">You can read the variable in Lua like this:</p>
<p dir="ltr">varname = session:getVariable(&quot;varname&quot;);</p>
<p dir="ltr">-BDF</p>
<div class="gmail_quote">On May 18, 2013 12:35 PM, &quot;Telecube - John&quot; &lt;<a href="mailto:john@telecube.com.au">john@telecube.com.au</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ok, if someone could point me in the right direction I would be very<br>
grateful.<br>
<br>
I need to integrate database lookups into multi level IVRs to gather<br>
call routing info.<br>
<br>
The lookups are for variable multi digit keypress data as well as<br>
multiple sets of routing information.<br>
<br>
So far I can see my options are xml_curl or hand the call off to a lua<br>
script to handle the processing.<br>
<br>
I can catch the multi digit keypresses with regex and give that detail<br>
to a lua script, no problem.<br>
<br>
I&#39;m hoping to be able to use the mod_ivr process as much as possible but<br>
I&#39;m struggling to see how I can get data back into the call flow after<br>
dishing the duty off to lua.<br>
<br>
Can anyone point me down the right path please?<br>
<br>
Should I be happy to pass it off to lua and finish the lookups and<br>
routing in there?<br>
<br>
Should I try to keep as much as possible in the core ivr?<br>
<br>
Thanks..<br>
<br>
- John<br>
<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>
</blockquote></div>