Hi,everyone!
I have installed openser 1.2 via aptitude from
openser.org,
and then I config openser follow the install manual(
http://www.openser.org/index.php?option=com_content&task=view&id=26…
with mysql was be installed and databases and tables was create by
openser_mysql.sh. I add new user successfully like this:openserctl add fzh
fzh fzh(a)myserver.com.but i can't login user fzh with window messenger or
x-lite.I got an error 478---unresolvable destination(478/TM). i think there
may some error in my openser.cfg.
but i can't find it.
i post my openser.cfg here:
alias="myserver.com"
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database
loadmodule "/usr/lib/openser/modules/mysql.so"
loadmodule "/usr/lib/openser/modules/sl.so"
loadmodule "/usr/lib/openser/modules/tm.so"
loadmodule "/usr/lib/openser/modules/rr.so"
loadmodule "/usr/lib/openser/modules/maxfwd.so"
loadmodule "/usr/lib/openser/modules/usrloc.so"
loadmodule "/usr/lib/openser/modules/registrar.so"
loadmodule "/usr/lib/openser/modules/textops.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/usr/lib/openser/modules/auth.so"
loadmodule "/usr/lib/openser/modules/auth_db.so"
# ----------------- setting module-specific parameters ---------------
# -- usrloc params --
#modparam("usrloc", "db_mode", 0)
modparam("usrloc", "db_url",
"mysql://openser:openserrw@localhost/openser")
# Uncomment this if you want to use SQL database
# for persistent storage and comment the previous line
modparam("usrloc", "db_mode", 2)
# -- auth params --
# Uncomment if you are using auth module
#
modparam("auth_db", "calculate_ha1", yes)
#
# If you set "calculate_ha1" parameter to yes (which true in this config),
# uncomment also the following parameter)
#
modparam("auth_db", "password_column", "password")
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
# ------------------------- request routing logic -------------------
# we record-route all messages -- to make sure that
# subsequent messages will go through our proxy; that's
# particularly good if upstream and downstream entities
# use different transport protocol
if (!method=="REGISTER")
record_route();
# subsequent messages withing a dialog should take the
# path determined by record-routing
if (loose_route()) {
# mark routing logic in request
append_hf("P-hint: rr-enforced\r\n");
route(1);
};
if (!uri==myself) {
# mark routing logic in request
append_hf("P-hint: outbound\r\n");
# if you have some interdomain connections via TLS
#if(uri=~"(a)tls_domain1.net") {
# t_relay("tls:domain1.net");
# exit;
#} else if(uri=~"(a)tls_domain2.net") {
# t_relay("tls:domain2.net");
# exit;
#}
route(1);
};
# 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=="myself") {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
if (!www_authorize("myserver.com", "subscriber")) {
www_challenge("myserver.com", "0");
exit;
};
save("location");
exit;
};
lookup("aliases");
if (!uri==myself) {
append_hf("P-hint: outbound alias\r\n");
route(1);
};
ngrep -qt port 5060 :
U 2006/07/31 16:31:30.359879 59.64.183.197:5060 -> 64.233.161.83:5060
REGISTER
sip:gmail.com SIP/2.0..Via: SIP/2.0/UDP 59.64.183.197;branch=
z9hG4bK099e.a821a853.0..
Via: SIP/2.0/UDP 59.64.183.247:11955..Max-Forwards: 69..From: <
sip:fzh@gmail.com>;tag=5ca47f5d
15c24791bb6dbfdc11aace96;epid=e655b5ac9b..To: <sip:fzh@gmail.com>..Call-ID:
135b746590ae485c93
70134a3a1400c8..CSeq: 1 REGISTER..Contact:
<sip:59.64.183.247:11955>;methods="INVITE,
MESSAGE,
INFO, SUBSCRIBE, OPTIONS, BYE, CANCEL, NOTIFY, ACK, REFER,
BENOTIFY"..User-Agent: RTC/1.3.536
9 (Messenger 5.1.0639)..Event: registration..Allow-Events:
presence..Content-Length: 0..P-hint
: outbound....
U 2006/07/31 16:31:30.993136 59.64.183.247:1704 -> 59.64.183.197:5060
REGISTER
sip:gmail.com SIP/2.0..Via: SIP/2.0/UDP
59.64.183.247:11955..Max-Forwards:
70..From:
<sip:fzh@gmail.com>;tag=5ca47f5d15c24791bb6dbfdc11aace96;epid=e655b5ac9b..To:
<sip:fzh@gmail.c
om>..Call-ID: 135b746590ae485c9370134a3a1400c8..CSeq: 1 REGISTER..Contact:
<sip:59.64.183.247:
11955>;methods="INVITE, MESSAGE, INFO, SUBSCRIBE, OPTIONS, BYE, CANCEL,
NOTIFY, ACK, REFER, BE
NOTIFY"..User-Agent: RTC/1.3.5369 (Messenger 5.1.0639)..Event:
registration..Allow-Events: pre
sence..Content-Length: 0....
what can i do ? appreciate for your help
fzh