[OpenSER-Users] [CPL] ERROR:cpl-c:run_priority_switch: error parsing attr [0][9]

Iñaki Baz Castillo ibc at aliax.net
Sun Nov 18 02:14:26 CET 2007


Hi, I'm just starting with CPL and I don't know if this 
mail should go to devel list or users list.

I load a very simple CPL script sucessfully:

  $ openserctl fifo LOAD_CPL sip:ibc at domain /etc/openser/cpl/ibc at domain.xml
  200 OK


The XML is this one:

  <?xml version="1.0" encoding="UTF-8"?>
  <cpl>
	<incoming>
		<time-switch>
			<time dtstart="9" dtend="5" wkst="MO|TU|WE|TH|FR">
				<lookup source="registration">
					<success>
						<proxy />
					</success>
				</lookup>
			</time>
			<otherwise>
				<location url="sip:angel at domain">
					<proxy />
				</location>
			</otherwise>
		</time-switch>
	</incoming>
  </cpl>


But when OpenSer runs:

  cpl_run_script("incoming","force_stateful");

I get in the logs:

  ERROR:cpl-c:run_priority_switch: error parsing attr [0][9]
  ERROR:cpl_c:cpl_run_script: script error


I can't understand. I suppose that that XML check is done when 
loading the file with FIFO command. Why then I get a "error parsing"
during OpenSer script? is it normal?

Thanks for any explanation. Best regards.



-- 
Iñaki Baz Castillo




More information about the Users mailing list