summaryrefslogtreecommitdiff
path: root/orkaudio
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2007-09-05 01:18:42 +0000
committerHenri Herscher <henri@oreka.org>2007-09-05 01:18:42 +0000
commit3aeac353ac9ecfdbbb29c80fa683628af070b019 (patch)
tree234d922b546505d38b8dc740a179f050980ea6ca /orkaudio
parent13d24d7f97fe6e739c47388279c63b961a7b8bc3 (diff)
SIP 407 "authentication needed" does not trigger session stop anymore.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@480 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio')
-rw-r--r--orkaudio/audiocaptureplugins/voip/RtpSession.cpp19
1 files changed, 14 insertions, 5 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp
index b5bda14..efb43a8 100644
--- a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp
+++ b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp
@@ -899,12 +899,21 @@ void RtpSessions::ReportSipErrorPacket(SipFailureMessageInfoRef& info)
if (pair != m_byCallId.end())
{
RtpSessionRef session = pair->second;
- session->ReportSipErrorPacket(info);
- CStdString InviteInfoString;
- session->m_invite->ToString(InviteInfoString);
- LOG4CXX_INFO(m_log, "[" + session->m_trackingId + "] stopped by SIP \"" + info->m_errorCode + " " + info->m_errorString + "\" " + InviteInfoString);
- Stop(session);
+ if(info->m_errorCode == "407")
+ {
+ // authentication needed
+ }
+ else
+ {
+ // Other error, stop the session
+ session->ReportSipErrorPacket(info);
+
+ CStdString InviteInfoString;
+ session->m_invite->ToString(InviteInfoString);
+ LOG4CXX_INFO(m_log, "[" + session->m_trackingId + "] stopped by SIP \"" + info->m_errorCode + " " + info->m_errorString + "\" " + InviteInfoString);
+ Stop(session);
+ }
}
else
{