I am running 1.12.3 and I'm having trouble with nua_unsubscribe().
It appears the proxy has a bug where it always replies with 401 to my 
subscribe after the unregistration.
But my issue is I am not getting an error status for this handle, and 
therefor don't clean it up.
Here is the trace:
I send nua_unsubscribe() on the handle with a successful subscription.
I then get:
nua_r_unsubscribe, status 100, phrase Request Authorized by Cache
nua_r_unsubscribe, status 100, phrase Request Authorized by Cache
nua_r_unsubscribe, status 100, phrase Request Authorized by Cache
nua_r_unsubscribe, status 401, phrase Unauthorized
Then I send:
nua_authenticate() with the same info as the original.
and I never get any more events for that handle. This leads to handle 
leaking.
Shouldn't there be some kind of error instead of the 401 on the last 
callback that indicates the authentication has failed ?

Colin..

Here is the SIP trace:

=================================================================================
11:15:44.309219 10.1.1.101.5060 > 10.3.10.2.5060:  udp 752 (DF) [tos 0x48]
SUBSCRIBE sip:[EMAIL PROTECTED];transport=udp SIP/2.0
Via: SIP/2.0/UDP 10.1.1.101;rport;branch=z9hG4bKg7F26U93tX8gr
Max-Forwards: 70
From: <sip:10.1.1.101;transport=udp>;tag=0aSj8y599ZSee
To: <sip:[EMAIL PROTECTED];user=phone>;tag=metaswitch+1+381494+971ea0f1
Call-ID: a4630976-da40-1229-2ba4-ebbf57cd9adb
CSeq: 302432003 SUBSCRIBE
Contact: <sip:[EMAIL PROTECTED];transport=udp>
Expires: 0
User-Agent: sofia-sip/1.12.3
Supported: timer
Event: message-summary
Authorization: Digest username="3014241125", realm="10.3.10.2", 
nonce="813250d99e9b", cnonce="pGQHwtpAEimkK+u/V82a2w==", algorithm=MD5, 
uri="sip:[EMAIL PROTECTED];transport=udp", 
response="1a83af149a5445a4fbb872ade40dff0f", qop=auth, nc=00000002
Content-Length: 0

=================================================================================
11:15:44.311808 10.3.10.2.5060 > 10.1.1.101.5060:  udp 528 (DF)
SIP/2.0 401 Unauthorized
WWW-Authenticate: Digest 
realm="10.3.10.2",nonce="813250db9e9d",stale=false,algorithm=MD5,qop="auth"
Call-ID: a4630976-da40-1229-2ba4-ebbf57cd9adb
CSeq: 302432003 SUBSCRIBE
From: "" <sip:[EMAIL PROTECTED]>;tag=0aSj8y599ZSee
To: <sip:[EMAIL PROTECTED];user=phone>;tag=metaswitch+1+381494+971ea0f1
Via: SIP/2.0/UDP 10.1.1.101;rport=5060;branch=z9hG4bKg7F26U93tX8gr
Server: DC-SIP/2.0
Organization:
Supported: 100rel
Contact: <sip:[EMAIL PROTECTED];transport=udp>
Content-Length: 0

=================================================================================
11:15:44.337885 10.1.1.101.5060 > 10.3.10.2.5060:  udp 716 (DF) [tos 0x48]
SUBSCRIBE sip:[EMAIL PROTECTED];transport=udp SIP/2.0
Via: SIP/2.0/UDP 10.1.1.101;rport;branch=z9hG4bK9c6yrayape2Ka
Max-Forwards: 70
From: <sip:10.1.1.101;transport=udp>;tag=0aSj8y599ZSee
To: <sip:[EMAIL PROTECTED];user=phone>;tag=metaswitch+1+381494+971ea0f1
Call-ID: a4630976-da40-1229-2ba4-ebbf57cd9adb
CSeq: 302432004 SUBSCRIBE
Contact: <sip:[EMAIL PROTECTED];transport=udp>
User-Agent: sofia-sip/1.12.3
Supported: timer
Authorization: Digest username="3014241125", realm="10.3.10.2", 
nonce="813250db9e9d", cnonce="pGQHwtpAEimkK+u/V82a2w==", algorithm=MD5, 
uri="sip:[EMAIL PROTECTED];transport=udp", 
response="597bd4558580aafd07f4420bde98bc3e", qop=auth, nc=00000004
Content-Length: 0

=================================================================================
11:15:44.339896 10.3.10.2.5060 > 10.1.1.101.5060:  udp 528 (DF)
SIP/2.0 401 Unauthorized
WWW-Authenticate: Digest 
realm="10.3.10.2",nonce="813250dc9e9e",stale=false,algorithm=MD5,qop="auth"
Call-ID: a4630976-da40-1229-2ba4-ebbf57cd9adb
CSeq: 302432004 SUBSCRIBE
From: "" <sip:[EMAIL PROTECTED]>;tag=0aSj8y599ZSee
To: <sip:[EMAIL PROTECTED];user=phone>;tag=metaswitch+1+381494+971ea0f1
Via: SIP/2.0/UDP 10.1.1.101;rport=5060;branch=z9hG4bK9c6yrayape2Ka
Server: DC-SIP/2.0
Organization:
Supported: 100rel
Contact: <sip:[EMAIL PROTECTED];transport=udp>
Content-Length: 0

=================================================================================
11:15:44.351211 10.1.1.101.5060 > 10.3.10.2.5060:  udp 716 (DF) [tos 0x48]
SUBSCRIBE sip:[EMAIL PROTECTED];transport=udp SIP/2.0
Via: SIP/2.0/UDP 10.1.1.101;rport;branch=z9hG4bK2tvSarpHKQUmc
Max-Forwards: 70
From: <sip:10.1.1.101;transport=udp>;tag=0aSj8y599ZSee
To: <sip:[EMAIL PROTECTED];user=phone>;tag=metaswitch+1+381494+971ea0f1
Call-ID: a4630976-da40-1229-2ba4-ebbf57cd9adb
CSeq: 302432005 SUBSCRIBE
Contact: <sip:[EMAIL PROTECTED];transport=udp>
User-Agent: sofia-sip/1.12.3
Supported: timer
Authorization: Digest username="3014241125", realm="10.3.10.2", 
nonce="813250dc9e9e", cnonce="pGQHwtpAEimkK+u/V82a2w==", algorithm=MD5, 
uri="sip:[EMAIL PROTECTED];transport=udp", 
response="6b9a547aead287edd233b60fd9950911", qop=auth, nc=00000006
Content-Length: 0

=================================================================================
11:15:44.352929 10.3.10.2.5060 > 10.1.1.101.5060:  udp 528 (DF)
SIP/2.0 401 Unauthorized
WWW-Authenticate: Digest 
realm="10.3.10.2",nonce="813250dd9e9f",stale=false,algorithm=MD5,qop="auth"
Call-ID: a4630976-da40-1229-2ba4-ebbf57cd9adb
CSeq: 302432005 SUBSCRIBE
From: "" <sip:[EMAIL PROTECTED]>;tag=0aSj8y599ZSee
To: <sip:[EMAIL PROTECTED];user=phone>;tag=metaswitch+1+381494+971ea0f1
Via: SIP/2.0/UDP 10.1.1.101;rport=5060;branch=z9hG4bK2tvSarpHKQUmc
Server: DC-SIP/2.0
Organization:
Supported: 100rel
Contact: <sip:[EMAIL PROTECTED];transport=udp>
Content-Length: 0

=================================================================================
11:15:44.367681 10.1.1.101.5060 > 10.3.10.2.5060:  udp 716 (DF) [tos 0x48]
SUBSCRIBE sip:[EMAIL PROTECTED];transport=udp SIP/2.0
Via: SIP/2.0/UDP 10.1.1.101;rport;branch=z9hG4bKv8jjc6erF0mQe
Max-Forwards: 70
From: <sip:10.1.1.101;transport=udp>;tag=0aSj8y599ZSee
To: <sip:[EMAIL PROTECTED];user=phone>;tag=metaswitch+1+381494+971ea0f1
Call-ID: a4630976-da40-1229-2ba4-ebbf57cd9adb
CSeq: 302432006 SUBSCRIBE
Contact: <sip:[EMAIL PROTECTED];transport=udp>
User-Agent: sofia-sip/1.12.3
Supported: timer
Authorization: Digest username="3014241125", realm="10.3.10.2", 
nonce="813250dd9e9f", cnonce="pGQHwtpAEimkK+u/V82a2w==", algorithm=MD5, 
uri="sip:[EMAIL PROTECTED];transport=udp", 
response="e2a6a37b9dc52b38e7a93d95c69cc21a", qop=auth, nc=00000008
Content-Length: 0

=================================================================================
11:15:44.369978 10.3.10.2.5060 > 10.1.1.101.5060:  udp 528 (DF)
SIP/2.0 401 Unauthorized
WWW-Authenticate: Digest 
realm="10.3.10.2",nonce="813250de9ea0",stale=false,algorithm=MD5,qop="auth"
Call-ID: a4630976-da40-1229-2ba4-ebbf57cd9adb
CSeq: 302432006 SUBSCRIBE
From: "" <sip:[EMAIL PROTECTED]>;tag=0aSj8y599ZSee
To: <sip:[EMAIL PROTECTED];user=phone>;tag=metaswitch+1+381494+971ea0f1
Via: SIP/2.0/UDP 10.1.1.101;rport=5060;branch=z9hG4bKv8jjc6erF0mQe
Server: DC-SIP/2.0
Organization:
Supported: 100rel
Contact: <sip:[EMAIL PROTECTED];transport=udp>
Content-Length: 0



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to