[reSIProcate] A question about the WIKI

John Draper lists at webcrunchers.com
Mon Jan 30 02:07:11 CST 2006


Re this URL:  
http://warsaw.sjc.purplecomm.com/wiki/index.php?title=DUM_Associating_Application_Data_with_DialogSets_and_Dialogs

The "Handler sample code" is as follows...

virtual void onNewSession(ServerInviteSessionHandle sis, 
InviteSession::OfferAnswerType oat, const SipMessage& msg) 
  {
     int portID = ((TestAppDialog*)sis->getAppDialog().get())->m_portID;
     InfoLog( << "[" << portID << "] 
TestUAS::onNewSession(ServerInviteSessionHandle): " << name << " "  << 
endl << msg);
     mSis = sis; 
     sis->send(sis->provisional(180));
  }

This last function "send" appears to be passing whatever the 
"sis->provisional(180)" returns.

But the method in "ServerInviteSession" is defined as follows...

void
ServerInviteSession::provisional(int code)
{
     < the code>
}

Note,  it returns void.   So,  does this imply that "sis->send(....)" is 
getting passed a void?
What am I missing here....   Is the WIKI in error here?    Or is my 
"grep" so brain damaged
that it couldn't find some other object that has a "provisional" method 
that does return
something?

John




More information about the resiprocate-devel mailing list