# ----------- global configuration parameters ------------------------ debug=9 # debug level (cmd line: -dddddddddd) #fork=yes log_stderror=yes # (cmd line: -E) /* Uncomment these lines to enter debugging mode fork=no 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" # ------------------ module loading ---------------------------------- 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/textops.so" loadmodule "/usr/local/lib/ser/modules/dbtext.so" # ----------------- setting module-specific parameters --------------- # -- usrloc params -- modparam("usrloc", "db_mode",0) modparam("usrloc", "db_url", "dbtext:///home/vtaf/appl/ser-0.9.6/dbtext/") # main routing logic --- for Re-direct server route{ # for testing purposes, simply okay all REGISTERs if (method=="REGISTER") { #log("REGISTER"); save("location_server.txt"); sl_send_reply("200", "OK"); break; }; # rewrite current URI, which is always part of destination ser #rewriteuri("sip:5555@10.0.60.52:5060"); # append one more URI to the destination ser #append_branch("sip:67890@10.0.60.52:5060"); # redirect now #sl_send_reply("300", "REDIRECT"); }