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

[reSIProcate] DialogSetID is not same between onNewSession and onRefer


Hi, I want to use the DialogSetID to identifies a Dialog.
 
When I received a call, I do it:
 
void UserAgent::onNewSession(ServerInviteSessionHandle h, InviteSession::OfferAnswerType oat, const SipMessage & msg)

 DialogSetId inviteID(msg);
 long callID = (long)inviteID.hash();
}
 
After I answered this call, the remote side send a REFER to me:
 
void UserAgent::onRefer(InviteSessionHandle h, ServerSubscriptionHandle ssh, const SipMessage& msg)
{
 DialogSetId inviteID(msg);
 long callID = (long)inviteID.hash();
}
 
but these two callID do not same, the callID of onNewSession != callID of the onRefer, did I missed something?
 
thanks