[Freeswitch-users] X-PRE-PROCESS and Dialplan XML Module

Steven Ayre steveayre at gmail.com
Tue Jul 19 15:15:30 MSD 2011


Correct


On 19 July 2011 12:02, Avi Marcus <avi at avimarcus.net> wrote:
> Yes, afaik, the x-pre-process is done BEFORE the XML is parsed (which is why
> you can't comment it out) and just does a wget and replaces itself with the
> file it grabbed.
> -Avi
>
> On Tue, Jul 19, 2011 at 1:19 PM, Nandy Dagondon <gcd at i.ph> wrote:
>>
>> hi daniel,
>> the X-PRE-PROCESS only purpose is to read the *.xml files in the said
>> directory at that point before proceeding further down. cool way of
>> organizing configuration files. nothing else.
>> if you want dynamic dialplan, use XML/Curl.
>> On Tue, Jul 19, 2011 at 5:17 PM, Daniel Knoll <daniel at danielknoll.de>
>> wrote:
>>>
>>> Hi FreeSwitch Group,
>>> i'm a little bit confused about the X-PRE-PROCESS  and XML Dialplan
>>> Module.
>>>
>>> I'm using a dynamic dialplan to include in FreeSwitch with
>>> <X-PRE-PROCESS cmd="exec" data="wget -qO -
>>> http://www.domain.com/dialplan.php" />
>>>
>>> This don't work if i place X-PRE-PROCESS in at the top from public.xml
>>> outsite the <include> tag
>>>
>>> <include>
>>>   <context name="public">
>>>     <extension name="123456789">
>>>        <condition field="destination_number" expression="123456789">
>>>            <action application="set" data="hangup_after_bridge=true"/>
>>>            <action application="javascript" data="app.js"/>
>>>       </condition>
>>>    </extension>
>>>  </context>
>>> </include>
>>>
>>>
>>> but
>>>
>>> this works if X-PRE-PROCESS is in the <include> tag, but it's not
>>> clean XML, because the root is missing
>>>
>>> <extension name="123456789">
>>>   <condition field="destination_number" expression="123456789">
>>>        <action application="set" data="hangup_after_bridge=true"/>
>>>        <action application="javascript" data="app.js"/>
>>>   </condition>
>>> </extension>
>>>
>>>
>>> My Question is what is the right anatomy of a XML to include my
>>> dialplan in the public.xml with X-PRE-PROCESS and exec wget ?
>>>
>>>
>>> Thanks for your answers.
>>> Daniel
>>>
>>> _______________________________________________
>>> Join us at ClueCon 2011, Aug 9-11, Chicago
>>> http://www.cluecon.com 877-7-4ACLUE
>>>
>>> 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
>>
>>
>> _______________________________________________
>> Join us at ClueCon 2011, Aug 9-11, Chicago
>> http://www.cluecon.com 877-7-4ACLUE
>>
>> 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
>>
>
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> 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