Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[r10376]: branches / 1.8 / test / 25.cfg Maximize Restore History

Download this file

25.cfg    50 lines (40 with data), 1.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
debug=0
listen=127.0.0.1
port=5059
mpath="../modules/"
loadmodule "sl/sl.so"
loadmodule "tm/tm.so"
loadmodule "usrloc/usrloc.so"
loadmodule "registrar/registrar.so"
loadmodule "xlog/xlog.so"
loadmodule "db_mysql/db_mysql.so"
loadmodule "userblacklist/userblacklist.so"
loadmodule "maxfwd/maxfwd.so"
loadmodule "mi_fifo/mi_fifo.so"
modparam("usrloc", "db_mode", 3)
modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")
route {
#xlog("user: $rU\n");
$avp(req-username) = $rU;
$avp(req-domain) = $rd;
if(!lookup ("location")){
sl_send_reply("404", "Not Found");
exit;
}
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
exit;
}
if (!check_user_blacklist("$avp(req-username)", "$avp(req-domain)")) {
xlog("$rU user blacklisted\n");
sl_send_reply("403", "Forbidden");
exit;
}
if (!check_blacklist("globalblacklist")) {
xlog("$rU globally blacklisted\n");
sl_send_reply("403", "Forbidden");
exit;
}
xlog("$rU not blacklisted\n");
t_relay();
}