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
Am currently using Astbill/Astrisk for my billing and user management. Astbill is running on mysql 5. I would like to have SER authenticate users on Astbill database so that I dont have to manage to duplicate accounts. I did some reading on getting started and was wondering if this config below is possible.
modparam("auth_db", "db_url", "mysql://astbill:astpassword@astbill_IP/astbillDB")
modparam("permissions|uri_db|usrloc", "db_url", "mysql://ser:heslo@localhost/ser") modparam("auth_db", "calculate_ha1", 1) modparam("auth_db", "password_column", "secret")
replace every instance of (!www_authorize("","subscriber")) to (!www_authorize("","astaccount"))
my astbill database info is as follows:
ASTBILL databse = astbillDB password column on astbill is = secret Astbill table = astaccount
Please let me know if this is posible or if there is something esle I need to do..
Thanks.
Mohamed.
--------------------------------- Find your next car at Yahoo! Canada Autos
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@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@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers