[Users] method INVITE and module ACC

buxalex at libero.it buxalex at libero.it
Fri Apr 7 18:22:40 CEST 2006


Hello,

me again.. :o)

I set up the openser.cfg as follow:

loadmodule "/usr/local/lib/openser/modules/acc.so"

#-----------------------------------
#     ACC parameters
#-----------------------------------
modparam("acc",  "db_url", "mysql://openser:openser@localhost/openser")
modparam("acc", "failed_transaction_flag", 4)
modparam("acc", "report_cancels", 1)
modparam("acc", "log_flag", 1)
modparam("acc", "log_level", 1)
modparam("acc", "log_fmt", "miocfs")
.....

if (method=="REGISTER") {
  if (!www_authorize("161.27.53.93", "subscriber")) {
       www_challenge("161.27.53.93", "0");
exit;
};
save("location");
exit;
};
if (method=="INVITE") {
   setflag(1);
   record_route();
};
lookup("aliases");
if (!uri==myself) {
append_hf("P-hint: outbound alias\r\n");
route(1);
};
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
exit;
};
append_hf("P-hint: usrloc applied\r\n");
};
route(1);
}
route[1] {
if (!t_relay()) {
sl_reply_error();
};
exit;
}

my question is:

It is enough to have the ACC module loaded and configured, the setup of the INVITE method as above, to have the db updated? Or I completely misunderstood the manual?
This because with this configuration I can perform a call between two softphones, but I dont have any table filled into the database.

Thanks a lot
Alessandro







More information about the Users mailing list