Hi,
In SER, i think it is :
0 ... true
= 0 ... error, automatic stop
processing of ser.cfg
< 0 ... false
in openser, the value of the function return can be tested (like in
C), 0 still meaning ERROR. You can even use switch()
ret = yourFunc();
switch( $ret) {
case 2:
case 1:
case -1:
case -2:
}
Regards,
Cesc
On 11/17/05, Ramin Nikaeen <rnikaeen(a)goldline.net> wrote:
Valued Colleagues,
Can someone tell me how ser.cfg interprets the integer code returned by
module functions?
I want to be able to distinguish, in ser.cfg, between success and failure
of a module function's execution when invoked from ser.cfg.
As long as I return "1" from the module function to signalize success,
things work fine but when I try returning "0" or "-1" to indicate
failure
of the function, ser can not complete the call and in a way appears
to stop processing. My UA continuously retransmits INVITES to SER
but nothing happens.
I would appreciate your help
ramin
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers