# # $Id: exec_s5.cfg,v 1.2 2003/01/25 15:04:43 janakj Exp $ # # simple quick-start config script # debug=4 # debug level (cmd line: -dddddddddd) #fork=no log_stderror=yes # (cmd line: -E) fork=no log_stderror=yes listen=172.16.50.83 fifo="/tmp/ser_fifo" # ----------- global configuration parameters ------------------------ loadmodule "/usr/local/lib/ser/modules/mysql.so" loadmodule "/usr/local/lib/ser/modules/sl.so" loadmodule "/usr/local/lib/ser/modules/tm.so" loadmodule "/usr/local/lib/ser/modules/usrloc.so" loadmodule "/usr/local/lib/ser/modules/registrar.so" loadmodule "/usr/local/lib/ser/modules/exec.so" loadmodule "/usr/local/lib/ser/modules/acc.so" #loadmodule "/usr/local/lib/ser/modules/mysql.so" loadmodule "/usr/local/lib/ser/modules/auth.so" loadmodule "/usr/local/lib/ser/modules/auth_db.so" # ----------------- setting module-specific parameters --------------- # -- acc params -- modparam("acc", "log_missed_flag", 3 ) modparam("acc", "db_url", "mysql://ser:heslo@localhost/ser") modparam("acc", "db_missed_flag", 3) modparam("acc", "db_flag", 2) # -- tm params -- modparam("tm", "fr_inv_timer", 5) # -- usrloc params -- #modparam("usrloc", "db_mode", 0) # Uncomment this if you want to use SQL database # for persistent storage and comment the previous line modparam("usrloc", "db_mode", 2) modparam("usrloc", "db_url", "mysql://ser:heslo@localhost/ser") # -- auth params -- # Uncomment if you are using auth module modparam("auth_db", "calculate_ha1", yes) # If you set "calculate_ha1" parameter to yes (which true in this config), # uncomment also the following parameter) modparam("auth_db", "password_column", "password") modparam("auth_db", "db_url", "mysql://ser:heslo@localhost/ser") # -- rr params -- # add value to ;lr param to make some broken UAs happy #modparam("rr", "enable_full_lr", 1) # ----------------- setting module-specific parameters --------------- route{ # uri for my domain ? if (uri==myself) { if (method=="REGISTER") { save("location"); break; }; if (!lookup("location")) { # call invitations to off-line users are reported using the # acc_request action; to avoid duplicate reports on request # retransmissions, request is processed statefuly (t_newtran, # t_reply) # exec_msg(“/tmp/notify.sh”); if ((method=="INVITE" || method=="ACK") && t_newtran()) { t_reply("404", "Not Found"); # acc_request("404 Not Found"); break; }; # all other requests to off-line users are simply replied # statelessly and no reports are issued sl_send_reply("404", "Not Found"); break; } else { # user on-line; report on failed transactions; mark the # transaction for reporting using the same number as # configured above; if the call is really missed, a report # will be issued setflag(3); # forward to user's current destination t_relay(); break; }; }; }