[Freeswitch-dev] bad REGISTER processing
kokoska rokoska
kokoska.rokoska at post.cz
Tue Apr 8 11:03:19 EDT 2008
Michael Jerris napsal(a):
> Please re-test this with current trunk. A patch just went in to
> address this issue.
>
> Mike
>
Hi Michael,
I'm afraid I find another trouble in REGISTER handling:
From time to time FreeSWITCH responds to the first REGISTER with 401
including some nonce and to the second REGISTER responds with 401 too,
but with another nonce.
I'm not sure if it conforms to RFCs or not, but some UAC stops sending
another REGISTER.
And, even thou, I thing it is not good practice to change nonce between
two consequential requests.
Could you, please, tell me if it is a bug (and at what side) or feature?
:-) Thank you.
Best regards,
kokoska.rokoska
----------------------
2008-04-08 14:31:13.390 UDP LOCAL->192.168.1.128:5065
REGISTER sip:192.168.1.128:5065 SIP/2.0
Via: SIP/2.0/UDP
192.168.1.101;branch=z9hG4bKc0a801650000034947fb81b10000690e0000027b;rport
From: "unknown" <sip:0002*23 at 192.168.1.128:5065>;tag=2afd1b80090
To: <sip:0002*23 at 192.168.1.128:5065>
Contact: <sip:0002*23 at 192.168.1.101>;expires=150
Call-ID: 456C47312F944D908DF93F42CD6D7F2A0xc0a80165
CSeq: 257 REGISTER
Expires: 150
Max-Forwards: 70
User-Agent: SJphone/1.65.377a (SJ Labs)
Content-Length: 0
2008-04-08 14:31:13.390 UDP 192.168.1.128:5065->LOCAL
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
192.168.1.101;branch=z9hG4bKc0a801650000034947fb81b10000690e0000027b;rport=5060
From: "unknown" <sip:0002*23 at 192.168.1.128:5065>;tag=2afd1b80090
To: <sip:0002*23 at 192.168.1.128:5065>;tag=mF1e5j94t93BD
Call-ID: 456C47312F944D908DF93F42CD6D7F2A0xc0a80165
CSeq: 257 REGISTER
User-Agent: FreeSWITCH-mod_sofia/1.0.pre4-8045
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE,
NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH
Supported: 100rel, precondition, timer
WWW-Authenticate: Digest realm="192.168.1.128",
nonce="51065d76-34b9-49cc-ba37-74cf3975b420", algorithm=MD5, qop="auth"
Content-Length: 0
2008-04-08 14:31:13.390 UDP LOCAL->192.168.1.128:5065
REGISTER sip:192.168.1.128:5065 SIP/2.0
Via: SIP/2.0/UDP
192.168.1.101;branch=z9hG4bKc0a801650000034a47fb81b1000011ce0000027d;rport
From: "unknown" <sip:0002*23 at 192.168.1.128:5065>;tag=2afd1b80090
To: <sip:0002*23 at 192.168.1.128:5065>
Contact: <sip:0002*23 at 192.168.1.101>;expires=150
Call-ID: 456C47312F944D908DF93F42CD6D7F2A0xc0a80165
CSeq: 258 REGISTER
Expires: 150
Max-Forwards: 70
User-Agent: SJphone/1.65.377a (SJ Labs)
Content-Length: 0
Authorization: Digest
username="0002*23",realm="192.168.1.128",nonce="51065d76-34b9-49cc-ba37-74cf3975b420",uri="sip:192.168.1.128:5065",response="6c07a79b8cd54c9092f65e01637ba90a",algorithm=MD5,cnonce="1b791b80090",qop=auth,nc=00000001
2008-04-08 14:31:13.406 UDP 192.168.1.128:5065->LOCAL
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
192.168.1.101;branch=z9hG4bKc0a801650000034a47fb81b1000011ce0000027d;rport=5060
From: "unknown" <sip:0002*23 at 192.168.1.128:5065>;tag=2afd1b80090
To: <sip:0002*23 at 192.168.1.128:5065>;tag=Nrt76Dt8Qjtyr
Call-ID: 456C47312F944D908DF93F42CD6D7F2A0xc0a80165
CSeq: 258 REGISTER
User-Agent: FreeSWITCH-mod_sofia/1.0.pre4-8045
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE,
NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH
Supported: 100rel, precondition, timer
WWW-Authenticate: Digest realm="192.168.1.128",
nonce="dfddd004-d0df-4a8c-9686-b76d12f5f42b", stale="true",
algorithm=MD5, qop="auth"
Content-Length: 0
More information about the Freeswitch-dev
mailing list