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

Re: [reSIProcate] Another Keep Alive question...


Hmm... I think you should just create KeepAliveManager and send it to
dum by setKeepAliveManager method:

std::auto_ptr<KeepAliveManager> keepalive( new KeepAliveManager() );
clientDum->setKeepAliveManager( keepalive );

Don't use neither "setDialogUsageManager" method nor "add" method (IMHO)
- this is internal KeepAliveManager methods, DUM uses they itself.
> As far as I can tell from reading the code,  I think I have to do
> something
> like this,  but I still don't understand where to get certain arguments..
>
>  KeepAliveManager *myKeepAlive = new KeepAliveManager;
>  myKeepAlive->setDialogUsageManager(clientDum);
>
>  myKeepAlive->add(target, 5);   <--- This would cause me to send the
> keep alive every 5 secs.
>
> Ok,  but what is "target"?   It's defined as a Tuple which it
> references.  Where do I
> get this tuple,  would I get it from the Transport?   I don't see any
> accessor methods in
> either the SipStack or DialogUsageManager that will give me the
> transport.  I know
> the transport has a "getTuple" method, but I'm at a loss as to how to
> find a reference
> to the transport so I can get the Tuple.  Or is this tuple for
> something else?  Or do
> I just instantiate a new tuple and pass it to myKeepAlive->Add method
> for it to use?
> Please help me here!
>
> I did find an object that has a transport accessor method called a
> Connection,
> do I use that?   If so,  how do I get a Connection?
>
> I'm just stabbing in the dark here - sure can use some help.
>