< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate] REGISTER and authentication


Hello all,

With help from posters for my previous post(s), I managed to send out a
REGISTER message properly. However, I have come up with a problem with
authenticating the REGISTER message.
I send the REGISTER message, and I get a 401 Unauthorized from my SIP server
(SER). This, I believe, is to challenge the client (UAC). 
I have set the digest information using setDigestCredential (under DUM), but
I don't see any reply from the DUM to the 401 challenge. My application just
'hangs', with the last few debug messages of:

=========== start of debug snippet ======================

DEBUG | 20051206-181533.222 | c:\Test.exe | RESIP:TRANSPORT | 3660 |
Transport.cxx:209 |   
  incoming from: [ V4 192.168.200.1:5060 UDP received on:
  DP connectionId=0 ] connectionId=0 ]
DEBUG | 20051206-181533.242 | c:\Test.exe | RESIP:TRANSACTION | 3660 |  
  TransactionState.cxx:1535 | Send to TU: TU: DialogUsageManager size=0 SI
  To: <sip:user@xxxxxxxxx>;tag=a546667ff0304408d6cbea9f94abe364.bf9c
  From: <sip:user@xxxxxxxxx>;tag=4f403032
  Via: SIP/2.0/UDP
192.168.200.5:5060;branch=z9hG4bK-d87543-8451c1677735d827-1--
  d87543-;rport=5060
  Call-ID: fa6b8c1243056f5d@xxxxxxxxxxxx
  CSeq: 1 REGISTER
  Server: Sip EXpress router (0.10.99-dev0 (i386/linux))
  Warning: 392 192.168.200.1:5060 "Noisy feedback tells:  pid=6048
req_src_ip=192.168.200.5 
    req_src_port=5060 in_uri=sip:192.168.200.1 out_uri=sip:192.168.200.1
via_cnt==1"
  WWW-Authenticate: Digest realm="mylab.com",  
    nonce="4395d5390c9d4c91b0b724bfb102a2e4befa956f"
  Content-Length: 0

DEBUG | 20051206-181533.262 | c:\Test.exe | RESIP:TRANSACTION | 3660 |
TimerQueue.cxx:85 | 
  Adding timer: Timer K tid=8451c1677735d827 ms=5000

=========== end of debug snippet ======================

Hope someone can help. Thanks!
Chee