-
Notifications
You must be signed in to change notification settings - Fork 50
/
Kamailio Bytes - ENUM
56 lines (44 loc) · 972 Bytes
/
Kamailio Bytes - ENUM
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
50
51
52
53
54
55
56
#!KAMAILIO
####### Global Parameters #########
debug=3
log_stderror=yes
fork=yes
children=2
memdbg=9
memlog=9
auto_aliases=no
listen=udp:0.0.0.0:5060
listen=tcp:0.0.0.0:5060
listen=tcp:127.0.0.10:5080
loadmodule "jsonrpcs.so"
loadmodule "kex.so"
loadmodule "tm.so"
loadmodule "tmx.so"
loadmodule "sl.so"
loadmodule "pv.so"
loadmodule "maxfwd.so"
loadmodule "textops.so"
loadmodule "xlog.so"
loadmodule "ctl.so"
loadmodule "debugger.so"
loadmodule "pike.so"
loadmodule "corex.so"
loadmodule "sanity.so"
loadmodule "enum.so"
# ----------------- setting module-specific parameters ---------------
# ----- debugger params -----
modparam("debugger", "cfgtrace", 1)
modparam("tm", "retr_timer1", 1000)
tcp_accept_no_cl=yes
modparam("enum", "domain_suffix", "e164.arpa.")
request_route{
if(is_method("INVITE")){
enum_query();
xlog("Ran ENUM query");
xlog("To URI $tU");
forward();
}
if(is_method("REGISTER")){
sl_reply("200", "Sure, whatever man");
}
}