[reSIProcate] Receiving REFER INVITE with replace
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