Hi everybody,
It seems that i'm having a problem with my user authentication. I did the following. Added two users at ser
# serctl add 1234 1234 1234@192.168.4.10 # serctl add 4321 1234 4321@192.168.4.10
I've checked my ser databases at subscriber table and the users were there the way I did.
I've configured my ser.cfg with mysql.so (which I use for my users database), so as the auth modules auth.so and auth_db.so. MySQL is running, without errors, i've already created ser tables with ser_mysql.sh, the database and the tables were created without further problems. When I try to run ser with the default ser.cfg, my users get authenticated but when I use my ser.cfg configured with auth modules and mysql.so, they don't.
When my equipament is trying to auth at ser, it gives me first a "401 Unauthorized" because the fist clear text password sent, and then it gives me "500 Server Internal Error" the Erros are attached below
------------ Errors ------------------- Sending SIP PDU to ( 192.168.4.10:5060 ) from 5060 REGISTER sip:192.168.4.10 SIP/2.0 Via: SIP/2.0/UDP 192.168.14.30:5060;branch=z9hG4bK9307c100a43 From: sip:1234@192.168.4.10;tag=9307c100a4 To: sip:1234@192.168.4.10 Call-ID: 93526c07-ec2e-c1aa-8000-0002a40052bc@192.168.14.30 CSeq: 3 REGISTER Date: Thu, 01 Jan 1970 00:00:00 GMT User-Agent: AddPac SIP Gateway Contact: sip:1234@192.168.14.30 Expires: 3600 Content-Length: 0 Max-Forwards: 70
AP160(config-sip-ua)# Received SIP PDU from ( 192.168.4.10:5060 ) SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 192.168.14.30:5060;branch=z9hG4bK9307c100a43 From: sip:1234@192.168.4.10;tag=9307c100a4 To: sip:1234@192.168.4.10;tag=f967824f7e9189ff49a9fc75e4ea4f1c.cb2a Call-ID: 93526c07-ec2e-c1aa-8000-0002a40052bc@192.168.14.30 CSeq: 3 REGISTER WWW-Authenticate: Digest realm="192.168.4.10", nonce="3ee75c005bedc1108e8c7db3c737 4b74140e97c4" Server: Sip EXpress router (0.8.14 (i386/linux)) Content-Length: 0 Warning: 392 192.168.4.10:5060 "Noisy feedback tells: pid=3788 req_src_ip=192.168 .14.30 req_src_port=5060 in_uri=sip:192.168.4.10 out_uri=sip:192.168.4.10 via_cnt==1"
Sending SIP PDU to ( 192.168.4.10:5060 ) from 5060 REGISTER sip:192.168.4.10 SIP/2.0 Via: SIP/2.0/UDP 192.168.14.30:5060;branch=z9hG4bK9307c100a44 From: sip:1234@192.168.4.10;tag=9307c100a4 To: sip:1234@192.168.4.10 Call-ID: 93526c07-ec2e-c1aa-8000-0002a40052bc@192.168.14.30 CSeq: 4 REGISTER Date: Thu, 01 Jan 1970 00:00:00 GMT User-Agent: AddPac SIP Gateway Authorization: Digest username="1234", realm="192.168.4.10", nonce="3ee75c005bedc1 108e8c7db3c7374b74140e97c4", uri="sip:192.168.4.10", response="33ef4638b299ca839d5 d03240822aeca", algorithm=MD5 Contact: sip:1234@192.168.14.30 Expires: 3600 Content-Length: 0 Max-Forwards: 70
Received SIP PDU from ( 192.168.4.10:5060 ) SIP/2.0 500 Server Internal Error Via: SIP/2.0/UDP 192.168.14.30:5060;branch=z9hG4bK9307c100a44 From: sip:1234@192.168.4.10;tag=9307c100a4 To: sip:1234@192.168.4.10;tag=f967824f7e9189ff49a9fc75e4ea4f1c.306d Call-ID: 93526c07-ec2e-c1aa-8000-0002a40052bc@192.168.14.30 CSeq: 4 REGISTER Server: Sip EXpress router (0.8.14 (i386/linux)) Content-Length: 0 Warning: 392 192.168.4.10:5060 "Noisy feedback tells: pid=3789 req_src_ip=192.168 .14.30 req_src_port=5060 in_uri=sip:192.168.4.10 out_uri=sip:192.168.4.10 via_cnt==1"
------------------------------------------------------------------
At the moment I'm just testing the authentication features, before the routing ones, so my main problem is with it.
What am I doing wrong ? I've attached my current ser.cfg configuration for more information.
Thanks in advance.