[reSIProcate] Another Keep Alive question...

John Draper lists at webcrunchers.com
Wed May 3 04:56:27 CDT 2006


Hi,

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.

Thanx
John





More information about the resiprocate-devel mailing list