Username and domain seems to be correct, so you have probably incorrect
password.
Jan.
On 24-07 15:19, David Lee wrote:
Hello,
Can anyone tell me why my softphone cannot login to the SER?
You can see that the user 84000 is created in the mysql database (sql.txt.)
WE've also turned on all the necessary auth_db lines in the ser.cfg
Also attached is the ngrep capture of the register, 404 fail, register w/ digest, and 404
fail again... (notworking.txt).
Any ideas would be much appreciated.
Dave
#
# $Id: ser.cfg,v 1.21.4.1 2003/11/10 15:35:15 andrei Exp $
#
# simple quick-start config script
#
# ----------- global configuration parameters ------------------------
#debug=3 # debug level (cmd line: -dddddddddd)
#fork=yes
#log_stderror=no # (cmd line: -E)
/* Uncomment these lines to enter debugging mode
debug=7
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"
listen=10.0.0.150
alias="zone1.sip"
# ------------------ module loading ----------------------------------
# Uncomment mysql.so this if you want to use SQL database
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/mysql.so"
loadmodule "/usr/lib/ser/modules/group.so"
loadmodule "/usr/lib/ser/modules/usrloc.so"
loadmodule "/usr/lib/ser/modules/registrar.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/usr/lib/ser/modules/auth.so"
loadmodule "/usr/lib/ser/modules/auth_db.so"
# ----------------- setting module-specific parameters ---------------
# -- usrloc params --
#modparam("usrloc", "db_mode", 0)
# Uncomment this if you want to use SQL database
# for persistent storage and comment the previous line
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "db_url",
"sql://ser:heslo@localhost/ser")
# -- 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")
modparam("auth_db", "db_url",
"sql://ser:heslo@localhost/ser")
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
# ------------------------- request routing logic -------------------
# main routing logic
route{
# initial sanity checks -- messages with
# max_forwards==0, or excessively long requests
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if ( msg:len > max_len ) {
sl_send_reply("513", "Message too big");
break;
};
# 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
record_route();
# loose-route processing
if (loose_route()) {
t_relay();
break;
};
# 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("p3t1.zone1.sip", "subscriber")) {
www_challenge("p3t1.zone1.sip", "0");
break;
};
save("location");
break;
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
# forward to current uri now; use stateful forwarding; that
# works reliably even if we forward from TCP to UDP
if (!t_relay()) {
sl_reply_error();
};
}
mysql> use ser
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> select * from subscribe;
ERROR 1146: Table 'ser.subscribe' doesn't exist
mysql> select * from subscriber;
+----------------------------------+----------+----------------+----------+------------+-----------+-------+--------------------+---------------------+---------------------+------------------------------------------+------+------------------+----------+----------------------------------+----------------------------------+-------+------------+----------+
| phplib_id | username | domain | password | first_name |
last_name | phone |
email_address
| datetime_created | datetime_modified | confirmation
| flag | sendnotification |
greeting | ha1 | ha1b | perms |
allow_find | timezone |
+----------------------------------+----------+----------------+----------+------------+-----------+-------+--------------------+---------------------+---------------------+------------------------------------------+------+------------------+----------+----------------------------------+----------------------------------+-------+------------+----------+
| 65e397cda0aa8e3202ea22cbd350e4e9 | admin | zone1.sip | heslo | Initial |
Admin | 123 |
root@localhost
| 2002-09-04 19:37:45 | 0000-00-00 00:00:00 | 57DaSIPuCm52UNe54LF545750cfdL48OMZfroM53
| o | |
| d0b057f7d3ee997c3d47eae76bfb0da1 | fe31bfbb3e89826120badf15c3e6d353 | admin | 0
| NULL |
| ad08114b72c81d1d70c70a7ef34b2477 | 84000 | p3t1.zone1.sip | valor | |
| |
sip84000(a)zone1.sip | 2004-07-24 12:27:45 | 0000-00-00 00:00:00 |
| o |
|
| ad08114b72c81d1d70c70a7ef34b2477 | ed575bfedd9d2e007e309f39fd1c445e | NULL | 0
| NULL |
| 3b36cddccc551d31227082db7fad5e61 | 85000 | p3t1.zone1.sip | valor | |
| |
sip85000(a)zone1.sip | 2004-07-24 12:58:57 | 0000-00-00 00:00:00 |
| o |
|
| 3b36cddccc551d31227082db7fad5e61 | bbd19c658746e3e6a0e59f8c88ae3a23 | NULL | 0
| NULL |
+----------------------------------+----------+----------------+----------+------------+-----------+-------+--------------------+---------------------+---------------------+------------------------------------------+------+------------------+----------+----------------------------------+----------------------------------+-------+------------+----------+
3 rows in set (0.00 sec)
interface: eth1 (10.0.0.0/255.255.255.0)
filter: ip and ( port 5060 )
#
U 10.0.0.4:5060 -> 10.0.0.150:5060
REGISTER sip:zone1.sip SIP/2.0..Via: SIP/2.0/UDP 10.0.0.4:5060;rport;b
ranch=z9hG4bK26D8840A1859469CA414C06DFD73DB39..From: p1t4 <sip:84000@z
one1.sip>;tag=3645927150..To: p1t4 <sip:84000@zone1.sip>..Contact: "p1
t4" <sip:84000@10.0.0.4:5060>..Call-ID: 94082DF2599B4D1BA6F371EBD7BA9D
BA@zone1.sip..CSeq: 21730 REGISTER..Expires: 1800..Max-Forwards: 70..U
ser-Agent: X-Lite release 1103m..Content-Length: 0....
#
U 10.0.0.150:5060 -> 10.0.0.4:5060
SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP 10.0.0.4:5060;rport=5060;br
anch=z9hG4bK26D8840A1859469CA414C06DFD73DB39..From: p1t4 <sip:84000@zo
ne1.sip>;tag=3645927150..To: p1t4 <sip:84000@zone1.sip>;tag=4c5f4add7e
565703332b4c15d6777e5b.c4bf..Call-ID: 94082DF2599B4D1BA6F371EBD7BA9DBA
@zone1.sip..CSeq: 21730 REGISTER..WWW-Authenticate: Digest realm="p3t1
.zone1.sip", nonce="41029d79154eec9967a1fa365616ac489968c2f3"..Server:
Sip EXpress router (0.8.12 (i386/linux))..Content-Length: 0..Warning:
392 10.0.0.150:5060 "Noisy feedback tells: pid=9629 req_src_ip=10.0.
0.4 req_src_port=5060 in_uri=sip:zone1.sip out_uri=sip:zone1.sip via_c
nt==1"....
#
U 10.0.0.4:5060 -> 10.0.0.150:5060
REGISTER sip:zone1.sip SIP/2.0..Via: SIP/2.0/UDP 10.0.0.4:5060;rport;b
ranch=z9hG4bK45696F5565DB4B70AE1D7DA17FCFE1E0..From: p1t4 <sip:84000@z
one1.sip>;tag=3645927150..To: p1t4 <sip:84000@zone1.sip>..Contact: "p1
t4" <sip:84000@10.0.0.4:5060>..Call-ID: 94082DF2599B4D1BA6F371EBD7BA9D
BA@zone1.sip..CSeq: 21731 REGISTER..Expires: 1800..Authorization: Dige
st
username="84000",realm="p3t1.zone1.sip",nonce="41029d79154eec9967a1
fa365616ac489968c2f3",response="ce07241f96cb2cb62121c5ef07c2e14a",uri=
"sip:zone1.sip"..Max-Forwards: 70..User-Agent: X-Lite release 1103m..C
ontent-Length: 0....
#
U 10.0.0.150:5060 -> 10.0.0.4:5060
SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP 10.0.0.4:5060;rport=5060;br
anch=z9hG4bK45696F5565DB4B70AE1D7DA17FCFE1E0..From: p1t4 <sip:84000@zo
ne1.sip>;tag=3645927150..To: p1t4 <sip:84000@zone1.sip>;tag=4c5f4add7e
565703332b4c15d6777e5b.4b58..Call-ID: 94082DF2599B4D1BA6F371EBD7BA9DBA
@zone1.sip..CSeq: 21731 REGISTER..WWW-Authenticate: Digest realm="p3t1
.zone1.sip", nonce="41029d79154eec9967a1fa365616ac489968c2f3"..Server:
Sip EXpress router (0.8.12 (i386/linux))..Content-Length: 0..Warning:
392 10.0.0.150:5060 "Noisy feedback tells: pid=9637 req_src_ip=10.0.
0.4 req_src_port=5060 in_uri=sip:zone1.sip out_uri=sip:zone1.sip via_c
nt==1"....
#
U 10.0.0.4:5060 -> 10.0.0.150:5060
..
#
U 10.0.0.4:5060 -> 10.0.0.150:5060
..
#
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers