[Freeswitch-users] Include text file in XML dialplan?

Ken Rice krice at freeswitch.org
Fri Jun 23 14:42:39 UTC 2017


Why you can include files via the X-PRE include directive, this is not dynamic. You must call reloadxml everytime to get it to reload/parse the dialplan.

 

To do dynamic Dialplan you should look at mod_xml_curl 

Mr West has a video at https://www.youtube.com/watch?v=IxhLXATa1Ss describing how it works and documentation on confluence at

https://freeswitch.org/confluence/display/FREESWITCH/mod_xml_curl

 

From: FreeSWITCH-users [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Yu Boot
Sent: Friday, June 23, 2017 8:40 AM
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Include text file in XML dialplan?

 

I want something like this:

default.xml:

<extension>

<condition>

....

</condition>

</extension>

 

>>>>> include file.xml here <<<<

 

<extension>

<condition>

....

</condition>

</extension>

 

Is it possible?

 

23.06.2017 15:40, Giovanni Maruzzelli пишет:

all XML dialplan and configs are  based on including files. Obviously the included files must be XML... 

 

On 23 June 2017 at 13:52, Yu Boot <yu at yu-boot.ru <mailto:yu at yu-boot.ru> > wrote:

Is it possible to just include arbitrary text file to some place in XML dialplan? I want to add or remove some extension and condition entries automatically, without parsing and building entire dialplan XML.

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org <mailto:consulting at freeswitch.org> 
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org <mailto: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




-- 


Sincerely,

Giovanni Maruzzelli
OpenTelecom.IT
cell: +39 347 266 56 18






_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org <mailto:consulting at freeswitch.org> 
http://www.freeswitchsolutions.com
 
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
 
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org <mailto: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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170623/b5f7487a/attachment-0001.html>


More information about the FreeSWITCH-users mailing list