[Users] method INVITE and module ACC

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Apr 7 18:34:47 CEST 2006


Hi,

set the db_flag param instead of log_flag. First is DB specific, second 
syslog specific - see the docs.

regards,
bogdan

buxalex at libero.it wrote:

>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
>
>
>
>
>_______________________________________________
>Users mailing list
>Users at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/users
>
>  
>





More information about the sr-users mailing list