[Serusers] cpl_init: mandatory parameter

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Apr 14 21:33:04 CEST 2005


the function prototype for cpl_run_script() has modified (see the README 
- there is one extra parameter now).
i'm not familiar with the structure of the script you mentioned, so I 
cannot give any hints...
I will try to put tougher an update doc for cpl-c...but no time-frame so 
far...

bogdan

Aisling O'Driscoll wrote:

>Thanks Bogdan,
>
>I checked the readme and discovered modparam("cpl-c", "cpl_dtd_file",
>"/tmp/ser-0.9.0/modules/cpl-c/cpl-06.dtd") worked for me. My ser.cfg
>is identical to the one on the ONSIP site. I was wondering if I could
>confirm something?...Should the cpl prcoessing be dealt with in the
>route[X] sections or before?? 
>
>i.e. eg:Currently I have:
>
>if (uri==myself){
>    if (method=="INVITE"){
>        route(3);
>        break;
>    } else if (method == "REGISTER"){
>        route(2);
>        break;
>    };
>    .....
>
>Would it be appropriate to change this to??:
>
>if (uri==myself){
>    if (method=="INVITE"){
>        if (!t_newtran()){
>           break;
>        }
>        if (!cpl_run_script("incoming")){
>           t_reply("500", "CPL execution failed");
>        }
>
>        route(3);
>        break;
>    } else if (method == "REGISTER"){
>        cpl_process_register();
>        route(2);
>        break;
>    };
>    .....
>
>Or should it be dealt with in the route[X] sections?...Also is there
>example ser.cfg cpl script information or guidelines anywhere that
>you know of?? I'd appreciate any information.
>
>Kindest regards,
>Aisling.
>  
>




More information about the sr-users mailing list