[reSIProcate] Receiving REFER INVITE with replace

Karlsson boost.regex at gmail.com
Sun Apr 13 08:11:07 CDT 2008


I read the WIKI: http://www.resiprocate.org/?title=Dealing_with_REFERs

in the onNewSession, I wrote these:

 if (msg.exists(h_Replaces) == true)
 {
  pair<InviteSessionHandle, int> replaceSession;
  replaceSession = mDum.findInviteSession(msg.header(h_Replaces));
  if(replaceSession.first != InviteSessionHandle::NotValid())
  {
   replaceSession.first->end(); // end original session
 }

but when I complie it, complier says this line is error:
if(replaceSession.first != InviteSessionHandle::NotValid())

I try: if(replaceSession != InviteSessionHandle::NotValid())
but still have error, how to do now ?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20080413/ab105f8b/attachment.htm>


More information about the resiprocate-devel mailing list