[reSIProcate] Best way to handle ServerSubscriptions?

Matthias Moetje moetje at terasens.com
Mon Oct 8 08:16:38 CDT 2007


Hi,

 

I am currently trying to find the best way to track and update ServerSubscriptions. In order to perform updates I need to be able to find all subscriptions which are matching a certain key (AOR).

I am thinking about the following two concepts:

 

1.       Keep my own map of ServerSubscriptions. Add to the map on createAppDialogSet and remove from the map when the dialogset is destroyed

2.       Rely on the list that is kept by dum (mServerSubscriptions) and use mDum.mServerSubscriptions.equal_range(key) to retrieve all subscriptions matching a certain AOR

 

The problem with 1 is that it creates additional overhead. The problem with 2 is that mServerSubscriptions is a private member of DialogUsageManager. There is a function findServerSubscription but is takes a DialogId as a parameter, so this doesn't help much.

 

What should I do? Should I add a function  findServerSubscriptions(Data key) to DialogUsageManager?

 

 

Best regards,

Freundliche Grüße,

 

Matthias Moetje 



 

TERASENS GmbH
Augustenstraße 24
80333 Munich
GERMANY

 

Phone:
Fax:
e-mail:
Web:

	+49.89.143370-0
+49.89.143370-22
info at terasens.com <mailto:info at terasens.com> 
www.terasens.com <http://www.terasens.com/> 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20071008/42092989/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2937 bytes
Desc: image001.jpg
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20071008/42092989/attachment.jpg>


More information about the resiprocate-devel mailing list