< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index | Next in Thread > |
I'm sure I found a bug with the v1.7,
I'm implemented the hold and unhold feature with resip as below code:
void UserAgent::hold(long callID, const SdpContents & sdpContent)
{
try
{
ServerInviteSessionMap::iterator iter = mServerInviteSessionMap.find(callID);
if (iter != mServerInviteSessionMap.end())
{
iter->second->provideOffer(sdpContent);
return;
}
ClientInviteSessionMap::iterator iter2 = mClientInviteSessionMap.find(callID);
if (iter2 != mClientInviteSessionMap.end())
{
iter2->second->provideOffer(sdpContent);
}
}
catch (...)
{
}
}
void UserAgent::unHold(long callID, const resip::SdpContents & sdpContent)
{
try
{
ServerInviteSessionMap::iterator iter = mServerInviteSessionMap.find(callID);
if (iter != mServerInviteSessionMap.end())
{
iter->second->provideOffer(sdpContent);
return;
}
ClientInviteSessionMap::iterator iter2 = mClientInviteSessionMap.find(callID);
if (iter2 != mClientInviteSessionMap.end())
{
iter2->second->provideOffer(sdpContent);
}
}
catch (...)
{
}
}
in my APP it has a button to switch two sessions:
CPhoneAppDlg::OnButton1()
{
hold(line1);
unhold(line2);
}
These code are works fine with the resip 1.6 and early versions, but with the 1.7, in the wireshark, I can't found the INVITE message of the "unhold(line2);", seems the resip does not sent out INVITE message of "unhold(line2);
All other codes are same, just if use the DLL and header files with 1.6 then all are works if use the 1.7 then got this bug, please check.
Thanks
--
havesoftware, Inc.Jakson KalssonSenior Programmer
Attachment:
logs.zip
Description: Zip archive