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

[reSIProcate-users] Can't find session when received a refer call with replace header.


Hi, I'm test my UA with sip.iptel.org and opensips.org for attended transfer feature.

I'm follow the code that in the basicclientcall.cxx:

=================
void
BasicClientCall::onNewSession(ServerInviteSessionHandle h, InviteSession::OfferAnswerType oat, const SipMessage& msg)
{
   InfoLog(<< "onNewSession(ServerInviteSessionHandle):  msg=" << msg.brief());
   mInviteSessionHandle = h->getSessionHandle();

   // First check if this INVITE is to replace an existing session
   if(msg.exists(h_Replaces))
   {
      pair<InviteSessionHandle, int> presult;
      presult = mDum.findInviteSession(msg.header(h_Replaces));
      if(!(presult.first == InviteSessionHandle::NotValid())) 
      {         

===================
Here always fail to  mDum.findInviteSession, the presult.first is equals to InviteSessionHandle::NotValid().

But when I test with sip2sip.info it works fine.


Best regards,