Why not to use powerful and fast lua scripts with DB access - example for DB select:<div>------------------------</div><div><div>subscriber = "1000";</div><div>my_field = '';</div><div>local dbh = assert(freeswitch.Dbh("db","fs_user","fs_password"));</div>
<div>dbh:query("select my_field1 from my_table1 where subscriber = '"..subscriber.."'", </div><div>function(row) </div><div><span class="Apple-tab-span" style="white-space:pre">        </span>my_field = row.my_field1;</div>
<div>end);</div><div>dbh:release();</div><div>--do whatever you need here!!</div><div>------------------------</div><div><br></div><div>obviously you need to configure ODBC for access, but this is described:</div><div><a href="http://wiki.freeswitch.org/wiki/Using_ODBC_in_the_core#CentOS_5.2">http://wiki.freeswitch.org/wiki/Using_ODBC_in_the_core#CentOS_5.2</a></div>
<div><br></div><br><div class="gmail_quote">2012/2/23 Anita Hall <span dir="ltr"><<a href="mailto:anita.hall@simmortel.com">anita.hall@simmortel.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br><br>We are considering writing our own module for processing IVR in C. We are considering using mod_event_socket and then modify it to consume and produce the events internally instead of passing them to the socket. Is this a good idea?<br>
<br>I know FreeSWITCH already has a mod_dialplan_xml which can use mod_curl to communicate to the outside world for I/O and DB access. But ...<br><br>1) Does XML have all the power flexibility that will be needed for powerful IVR applications? <br>
<br>2) Does mod_dialplan_xml use a separate thread for each IVR execution ? What will be the overhead of interpreting the XML ?<br><br>3) Any more ideas ?<br><br>Thanks :)<br><br clear="all">regards,<br>Anita<br><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>
<br></blockquote></div><br></div>