Hi Ivan,
the problem with WM is that the address of the server have to be the same as the domain part of the URI (which is not RFC conform). For example you have to add ivan@192.168.11.237 to the subscriber table and also use this account within your WM to get authentication working.
Regards Nils Ohlmeier
On Friday 31 January 2003 13:30, Ivan Vignola wrote:
Hi, I have successfully (I think that) installed SER server with ser-mysql package. I have set the environment variable 'SIP_DOMAIN="192.168.11.237"' (that is server IP address). I have succesfully added a user to subscriber table: 'serctl add ivan ivanpswd ivan@hotmail.com', but registering WM to server fails: URI = 'ivan@192.168.11.237' Passwowd = 'ivanpswd' User = 'ivan'
This is my ser.cfg file:
# ----------- global configuration parameters ------------------------
debug=3 # debug level (cmd line: -dddddddddd) fork=yes log_stderror=yes # (cmd line: -E) 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/lib/ser/modules/mysql.so" loadmodule "//usr/lib/ser/modules/sl.so" loadmodule "//usr/lib/ser/modules/tm.so" loadmodule "//usr/lib/ser/modules/rr.so" loadmodule "//usr/lib/ser/modules/maxfwd.so" loadmodule "//usr/lib/ser/modules/usrloc.so" loadmodule "//usr/lib/ser/modules/registrar.so" loadmodule "//usr/lib/ser/modules/auth.so"
# ----------------- setting module-specific parameters ---------------
modparam("usrloc", "db_mode", 2) modparam("auth", "db_url", "sql://ser:heslo@localhost/ser") modparam("auth", "calculate_ha1", yes) modparam("auth", "password_column", "password")
# ------------------------- request routing logic -------------------
alias="engiweb.com" alias="sip.engiweb.com"
route{ if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); break; }; if (len_gt( max_len )) { sl_send_reply("513", "Message too big"); break; };
rewriteFromRoute();
if (uri=~"^sip:(.+@)?(192.168.11.237|(sip.)?engiweb.com)([:;?].*)?$") {
if (method=="REGISTER") { if (!www_authorize("192.168.11.237", "subscriber")) { if (!proxy_authorize("192.168.11.237", "subscriber")) { www_challenge("engiweb.org", "0"); break; }; save("location"); break; }; lookup("aliases"); if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; };
};
if (!t_relay()) { sl_reply_error(); };
}
What could be the problem?
Best regards.
Ivan Vignola.
MSN Extra Storage: piena libertà di esprimersi e comunicare http://www.msn.it/msnservizi/es/extra_storage_tag/
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers