[Freeswitch-users] ivr from mysql
michal kalinowski
michal.kalinowski at interia.pl
Mon Feb 15 14:25:58 PST 2010
I'm trying use in python something like this:
from freeswitch import *
def xml_fetch( param1, param2 ):
xml = '''
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="RE Dial Plan For FreeSwitch">
<context name="default">
<extension name="generated">
<condition field="destination_number" expression="^9992$">>
<action application="answer"/>
<action application="playback" data="${hold_music}"/>
</condition>
</extension>
</context>
</section>
</document>
'''
return xml
Of course XML context is with ivr parameters.
So I will try mod_xml_curl in my configuration.
BR,
Michał
W dniu 15 lutego 2010 19:02 użytkownik Michael Collins
<msc at freeswitch.org> napisał:
> When you say "xml from python" what exactly do you mean? Are you trying to
> use mod_xml_curl? If not you might want to check it out. The other choice is
> to use Lua from the dialplan, although I have a gut feeling that
> mod_xml_curl might be better for you.
> -MC
>
> 2010/2/15 michal kalinowski <michal.kalinowski at interia.pl>
>>
>> Hi,
>>
>> I need build ivr script/aplication which will take dynamically
>> configuration from mysql db (ivr menu, prompts, etc.).
>> My first idea is generate xml from python script. But it's not working
>> properly.
>>
>> Anybody has some idea or have this aplication already done ?
>>
>> BR,
>> Michał
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
More information about the FreeSWITCH-users
mailing list