[Freeswitch-users] get info from DB into channel variable in xml dialplan
msc at freeswitch.org
Tue Jun 19 01:52:44 MSD 2012
If it's really a concern then I would just use a regex API and parse out
the stuff you need from the response data.
On Mon, Jun 18, 2012 at 2:26 PM, Abaci <abaci64 at gmail.com> wrote:
> to avoid the overhead of XML+curl+lua+JSON4Lua and use just XML+curl. I
> know Lua is light but it adds up especially if you do more than one per
> On 6/18/2012 5:15 PM, Michael Collins wrote:
> My guess is that if you want/need to skip Lua then you'll need to do some
> regex magic to parse out the response data. However, I'm wondering what the
> aversion to Lua is. It's ridiculously light and it's pretty easy to use.
> What's the downside?
> On Mon, Jun 18, 2012 at 1:50 PM, Abaci <abaci64 at gmail.com> wrote:
>> We are looking for a way to set a few variables in the XML dialplan with
>> information stored in a MySQL DB, the simplest seems to be to use
>> mod_odbc_query which will set channel variables (see
>> http://wiki.freeswitch.org/wiki/Mod_odbc_query#APP), problem is that we
>> prefer not to access the DB directly from xml.
>> The other option is to use mod_curl which gets the result into a channel
>> variable named 'curl_response_data', problem is that we have multiple
>> values that we need in separate channel variables, and I can't find any
>> documentation on how to do that, is there any way to do this using json etc?
-------------- next part --------------
An HTML attachment was scrubbed...
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users