|
@@ -18,18 +18,19 @@ fifo="/tmp/ser_fifo"
|
|
|
|
|
|
# ------------------ module loading ----------------------------------
|
|
|
|
|
|
-loadmodule "../sip_router/modules/sl/sl.so"
|
|
|
-loadmodule "../sip_router/modules/print/print.so"
|
|
|
-loadmodule "../sip_router/modules/tm/tm_mod.so"
|
|
|
-loadmodule "../sip_router/modules/rr/rr.so"
|
|
|
-loadmodule "../sip_router/modules/maxfwd/maxfwd.so"
|
|
|
-loadmodule "../sip_router/modules/usrloc/usrloc.so"
|
|
|
+loadmodule "/usr/lib/ser/module/sl.so"
|
|
|
+loadmodule "/usr/lib/ser/module/print.so"
|
|
|
+loadmodule "/usr/lib/ser/module/tm.so"
|
|
|
+loadmodule "/usr/lib/ser/module/rr.so"
|
|
|
+loadmodule "/usr/lib/ser/module/maxfwd.so"
|
|
|
+loadmodule "/usr/lib/ser/module/usrloc.so"
|
|
|
+loadmodule "/usr/lib/ser/module/registrar.so"
|
|
|
|
|
|
# ----------------- setting module-specific parameters ---------------
|
|
|
|
|
|
# -- usrloc params --
|
|
|
|
|
|
-modparam("usrloc", "use_database", 0)
|
|
|
+modparam("usrloc", "db_mode", 0)
|
|
|
|
|
|
# ------------------------- request routing logic -------------------
|
|
|
|
|
@@ -55,16 +56,15 @@ route{
|
|
|
# if the request is for other domain use UsrLoc
|
|
|
# (in case, it does not work, use the following command
|
|
|
# with proper names and addresses in it)
|
|
|
- #if (uri=~"[@:]hood\.fokus\.gmd\.de" | uri=~"[@:]193\.175\.135\.185" ) {
|
|
|
if (uri==myself) {
|
|
|
|
|
|
if (method=="REGISTER") {
|
|
|
- save_contact("location");
|
|
|
+ save("location");
|
|
|
break;
|
|
|
};
|
|
|
|
|
|
# native SIP destinations are handled using our USRLOC DB
|
|
|
- if (!lookup_contact("location")) {
|
|
|
+ if (!lookup("location")) {
|
|
|
sl_send_reply("404", "Not Found");
|
|
|
break;
|
|
|
};
|