You have to check username, password, realm. Also - whether password is plaintext or not.
If this do not work, you can put debug=4 or even more. Then you will receive plenty of messages, but may be you will see what is wrong.

On Tue, Apr 17, 2012 at 9:16 PM, Saul Waizer <saulwaizer@gmail.com> wrote:
Hello List,

I have a fresh install kamailio 3.2.0 running on ubuntu. Everything seems to work fine according to the logs, I have enabled support for the following:

  • enabled support to connect to MySQL server
  • enabled user authentication
  • enabled persistent user location service
  • enabled NAT traversal and updated RTPProxy control socket parameter

    I added a few users with kamctl add user pass but when I try to register with my client I get the following:

  8.257745 x.x.x.x -> 10.62.99.103 SIP Request: REGISTER sip:x.x.x.x
  8.258462 10.62.99.103 -> x.x.x.x SIP Status: 401 Unauthorized    (0 bindings)

Here are some detailed logs for the reg process:

T x.x.x.x:63171 -> 10.62.99.103:5060 [AP]

REGISTER sip:x.x.x.x SIP/2.0.

Via: SIP/2.0/TCP 192.168.126.19:4369;rport;branch=z9hG4bK239028812.

From: <sip:daniel@x.x.x.x>;tag=303867081.

To: <sip:daniel@x.x.x.x>.

Call-ID: 1300614569.

CSeq: 7 REGISTER.

Contact: <sip:daniel@x.x.x.x:63171;transport=tcp;line=5a9552052fb65c8>.

Max-Forwards: 70.

User-Agent: Linphone/3.5.0 (eXosip2/3.6.0).

Expires: 600.

Content-Length: 0.

.



T 10.62.99.103:5060 -> x.x.x.x:63171 [AP]

SIP/2.0 401 Unauthorized.

Via: SIP/2.0/TCP 192.168.126.19:4369;rport=63171;branch=z9hG4bK239028812;received=x.x.x.x.

From: <sip:daniel@x.x.x.x>;tag=303867081.

To: <sip:daniel@x.x.x.x>;tag=b27e1a1d33761e85846fc98f5f3a7e58.b260.

Call-ID: 1300614569.

CSeq: 7 REGISTER.

WWW-Authenticate: Digest realm="x.x.x.x", nonce="T42z9U+NssnZP82+sdkwPgl1nRk61QDm".

Server: kamailio (3.2.0 (i386/linux)).

Content-Length: 0.


Any help is greatly appreciated.




_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users