[Freeswitch-users] ivr from mysql

michal kalinowski michal.kalinowski at interia.pl
Mon Feb 15 15:25:32 PST 2010


Mathieu,

Could you insert several examples here?

BR,
Michał

W dniu 15 lutego 2010 23:32 użytkownik Mathieu Rene
<mrene_lists at avgs.ca> napisał:
> You need to examine the parameters passed into the xml_fetch callback.
> The request will be in the configuration section for "ivr.conf" and
> its parameters will tell you which ivr should be loaded.
>
> Also note that you have to return all the submenus at the same time
> (this is also valid for xml_curl) as freeswitch loads all of them at
> the same time to optimize the amount of times it does queries.
>
> Mathieu Rene
> Avant-Garde Solutions Inc
> Office: + 1 (514) 664-1044 x100
> Cell: +1 (514) 664-1044 x200
> mrene at avgs.ca
>
>
>
>
> On 15-Feb-10, at 5:25 PM, michal kalinowski wrote:
>
>> 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
>>>
>>>
>>
>> _______________________________________________
>> 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