debug=2 fork=yes log_stderror=yes check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r) rev_dns=no # (cmd. line: -R) port=5060 children=4 fifo="/tmp/ser_fifo" #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/rr.so" loadmodule "/usr/local/lib/ser/modules/maxfwd.so" loadmodule "/usr/local/lib/ser/modules/usrloc.so" loadmodule "/usr/local/lib/ser/modules/registrar.so" #loadmodule "/usr/local/lib/ser/modules/uri_radius.so" #loadmodule "/usr/local/lib/ser/modules/uri.so" loadmodule "/usr/local/lib/ser/modules/auth.so" #loadmodule "/usr/local/lib/ser/modules/auth_db.so" loadmodule "/usr/local/lib/ser/modules/auth_radius.so" loadmodule "/usr/local/lib/ser/modules/acc.so" loadmodule "/usr/local/lib/ser/modules/xlog.so" modparam("usrloc", "db_mode", 0) #modparam("uri_radius", "service_type", 11) modparam("rr", "enable_full_lr", 1) modparam("auth_radius", "radius_config", "/altroot/client/etc/radiusclient/radiusclient.conf") modparam("acc", "radius_config", "/altroot/client/etc/radiusclient/radiusclient.conf") modparam("xlog", "buf_size", 8192) ### modparam("acc", "log_level", 1) modparam("acc", "log_flag", 1) modparam("acc", "radius_flag", 1) modparam("tm", "fr_inv_timer", 15 ) modparam("tm", "fr_timer", 10 ) modparam("auth", "secret", "testing123") modparam("auth_radius", "service_type", 15) ### route{ if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); break; }; if ( msg:len > max_len ) { sl_send_reply("513", "Message too big"); break; }; record_route(); if (loose_route()) { t_relay(); break; }; if (uri=~"evgeniy.riscom.net") { xlog("L_ERR", " method <%rm> <%fu> <%tu>\n"); if (method=="REGISTER") { # if (!www_authorize("mydomain", "subscriber")) { if (!radius_www_authorize("evgeniy.riscom.net")) { www_challenge("evgeniy.riscom.net", "1"); break; }; save("location"); break; }; setflag(1); if (method=="INVITE") record_route(); if (method=="REGISTER") { log(1, "REGISTER received\n"); } else { log(1, "non-REGISTER received\n"); }; if (uri=~"sip:.*[@:]evgeniy.riscom.net") { log(1, "request for evgeniy.riscom.net\n"); } else { log(1, "request for other domain received\n"); }; if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; }; #}; if (!t_relay()) { sl_reply_error(); }; }; }