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

[reSIProcate] Receiving REFER INVITE with replace


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