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

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon Nov 19 11:45:46 CET 2007


Hi Iñaki,

Not all the attribute values are checked at load time (like here the 
dtstart and dtend values).
In your case, these values are broken - see the CPL rfc about the proper 
values.

Regards,
Bogdan

Iñaki Baz Castillo wrote:
> 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.
>
>
>
>   





More information about the Users mailing list