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

Re: [reSIProcate-users] When / how to clean up an AppDialogSet


Hi

Application is responsible to appDialogSet lifecycle.
In my application I usually destroy it not early onTerminated()
callback.

AppDialogSetFactory is just pure virtual interface.
It may be a real container of appDialogSet(s) and may be not, depends
from your application logic.
So dum will not provide you with used AppDialogSetFactory, you have to
get it (if need) yourself.
You set it before, so you know what is it and where is it.

Hope it will help you.
Alexander

-----Original Message-----
From: resiprocate-users-bounces@xxxxxxxxxxxxxxx
[mailto:resiprocate-users-bounces@xxxxxxxxxxxxxxx] On Behalf Of SCG2
Sent: Thursday, December 03, 2009 9:59 PM
To: resiprocate-users@xxxxxxxxxxxxxxx
Subject: [reSIProcate-users] When / how to clean up an AppDialogSet

Hi,

As a UAC, I create an AppDialogSet which I pass to makeInviteSession()
in a similar way to:

     // Build a custom AppDialogSet for the call
     AppDialogSet* uacAppDialogSet = new appDialogSet(*pClientDum,
"MyPrivateCookie");

     // Make the INVITE
     SharedPtr<SipMessage> invMessage =
pClientDum->makeInviteSession(uasAor, pLineProfile, sdp,
uacAppDialogSet);

     :


When do I have to clear this up? Is it in onTerminated() ?

If so, how do I get a handle to the AppDialogSetFactory to ask it to
clean up?

Many thanks.