[reSIProcate] bug of ServerSubscription

Noiile noiile at hotmail.com
Thu Dec 8 19:34:18 CST 2005


Scott Godin, Hello 

Thanks, I think it's time to release a new version.

Noiile, noiile at hotmail.com
2005-12-9 
----- Receiving the following content ----- 
Receiver: Scott Godin 
Receiver: noiile,resiprocate-devel 
Time: 2005-12-08, 21:00:49
Subject: RE: [reSIProcate] bug of ServerSubscription


Are you using the latest code from SVN? ¨C I think a recent fix to DialogSet.cxx line 363 will fix this problem.




From: resiprocate-devel-bounces at list.sipfoundry.org [mailto:resiprocate-devel-bounces at list.sipfoundry.org] On Behalf Of Noiile
Sent: Wednesday, December 07, 2005 10:41 PM
To: resiprocate-devel
Subject: [reSIProcate] bug of ServerSubscription

resiprocate-devel, Hello 

When client send two unsubscribes(expires=0) with different Cseq, it will make my program crash.
Because it will make DUM delete ServerSubscription's Dialog object twice. 

When ServerSubscription receives a unsubscribe ,it will delete itself, and post a message(DestroyUsage) to delete its Dialog object.
But Dum receives the second unsubscirbe, which call-id is the same as previous, and Cseq is larger than it. 
Dum will create a new ServerSubscription with previous ServerSubscription's dialog , because of the same dialog ID. (Two ServerSubscription share one Dialog object!!!)
And then the 2nd ServerSubscription process this unsubscribe message, it will delete itself, and post a message(DestroyUsage) to delete it's Dialog object.
Now, there are 2 DestroyUsage messages in DUM's fifo, so DUM will delete this Dialog object twice!!!

I have no ideas to fix it :(

Noiile, noiile at hotmail.com
2005-12-8 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20051209/d26d6a3d/attachment.htm>


More information about the resiprocate-devel mailing list