RE: [reSIProcate] A question about the WIKI
That line of code doesn't really have anything to do with what is being
explained on the page - but you are correct - in latest version of DUM
it should instead read:
sis->provisional(180);
I've corrected the Wiki.
> -----Original Message-----
> From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:resiprocate-
> devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of John Draper
> Sent: Monday, January 30, 2006 3:07 AM
> To: Resip Devel
> Subject: [reSIProcate] A question about the WIKI
>
> Re this URL:
>
http://warsaw.sjc.purplecomm.com/wiki/index.php?title=DUM_Associating_Ap
pl
> ication_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
>
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel@xxxxxxxxxxxxxxxxxxx
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel