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:[EMAIL PROTECTED] /etc/openser/cpl/[EMAIL 
PROTECTED]
  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:[EMAIL PROTECTED]">
                                        <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

_______________________________________________
Users mailing list
Users@lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users

Reply via email to