[Serusers] calling a module
Andrei Pelinescu-Onciul
pelinescu-onciul at fokus.fraunhofer.de
Sat Feb 15 09:55:45 CET 2003
On Feb 14, 2003 at 15:00, Mario Kolberg <mko at cs.stir.ac.uk> wrote:
> Hi,
>
> > simply use fi_check() in the configuration script. That will call your
> > function.
>
> Thats what I thought also, but unfortunately, SER does not run when. If
> I run it with a call fi_check() in the ser.cfg file it logs a parse error:
>
> Feb 14 14:15:00 DISCUS ser: parse error (39,1-9): parse error
> Feb 14 14:15:00 DISCUS ser: parse error (39,1-9):
>
> I have attached the complete cfg file. But if I remove that fi_check()
> call, ser runs fine. Have I messed something up with parameters????
>
As Jiri said it must be in a route block, e.g.:
route{
if (method=="INVITE"){
fi_check();
}
/* ... */
}
Andrei
More information about the sr-users
mailing list