[Freeswitch-users] XML error with static and dynamic XML

Chris Graham chrisg.lists at gmail.com
Wed Jun 1 13:45:45 MSD 2011

Hi List,

Apologies if this is received twice..

I am getting the malformed XML error below:

2011-05-31 13:32:09.392074 [INFO] mod_dialplan_xml.c:331 Processing
1000 <1000>->0112341111 in context lcr_trunks
2011-05-31 13:32:09.432080 [ERR] switch_xml.c:1611 Error[[error near
line 11]: unexpected closing tag </document>]
2011-05-31 13:32:09.432080 [WARNING] mod_dialplan_xml.c:361 Context
lcr_trunks not found
2011-05-31 13:32:09.432080 [INFO] switch_core_state_machine.c:142 No
Route, Aborting

My static XML file being called:
<?xml version="1.0" encoding="utf-8"?>
       <context name="default" />

My dynamic XML being served up by xml_curl:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><document
 <section name="dialplan" description="RE Dial Plan For FreeSwitch">
   <context name="lcr_trunks">
     <extension name="Catch carrier test">
       <condition field="destination_number" expression="^(.*)$">
         <action application="lcr" data="$1 peak"/>
         <action application="bridge" data="${lcr_auto_route}"/>

Why is the dynamic XML having an issue with "</document>" tag? Looks
legal to me?

Thanks in advance,

More information about the FreeSWITCH-users mailing list