[Freeswitch-users] xml_curl xml tag error

Chris Graham chrisg.lists at gmail.com
Tue May 31 15:34:16 MSD 2011


Apologies, the error I pasted was incorrect. Corrected it should read
line 11 and not line 20 as 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

Chris



On Tue, May 31, 2011 at 1:29 PM, Chris Graham <chrisg.lists at gmail.com> wrote:
> Hi List,
>
> I am getting the malformed XML errror below:
>
> 2011-05-31 13:24:05.161809 [INFO] mod_dialplan_xml.c:331 Processing
> 1000 <1000>->0112341111 in context lcr_trunks
> 2011-05-31 13:24:05.182614 [ERR] switch_xml.c:1611 Error[[error near
> line 20]: unexpected closing tag </document>]
> 2011-05-31 13:24:05.182614 [WARNING] mod_dialplan_xml.c:361 Context
> lcr_trunks not found
> 2011-05-31 13:24:05.182614 [INFO] switch_core_state_machine.c:142 No
> Route, Aborting
>
>
> My static XML file being called:
> <?xml version="1.0" encoding="utf-8"?>
> <include>
>        <context name="default" />
> </include>
>
> My dynamic XML being served up by xml_curl:
> <?xml version="1.0" encoding="UTF-8" standalone="no"?><document
> type="freeswitch/xml">
>  <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}"/>
>        </condition>
>      </extension>
>    </context>
>  </section>
> </document>
>
> Why is the dynamic XML having an issue with "</document>" tag? Looks
> legal to me?
>
> Thanks in advance,
> Chris
>



More information about the FreeSWITCH-users mailing list