[Opalvoip-svn] SF.net SVN: opalvoip:[24837] opal/trunk/src/sip/sipcon.cxx
Brought to you by:
csoutheren,
rjongbloed
From: <rjo...@us...> - 2010-10-28 05:23:20
|
Revision: 24837 http://opalvoip.svn.sourceforge.net/opalvoip/?rev=24837&view=rev Author: rjongbloed Date: 2010-10-28 05:23:14 +0000 (Thu, 28 Oct 2010) Log Message: ----------- Fixed being able to do a second transfer (SIP REFER) if the first fails, e.g. was busy. Modified Paths: -------------- opal/trunk/src/sip/sipcon.cxx Modified: opal/trunk/src/sip/sipcon.cxx =================================================================== --- opal/trunk/src/sip/sipcon.cxx 2010-10-28 03:15:17 UTC (rev 24836) +++ opal/trunk/src/sip/sipcon.cxx 2010-10-28 05:23:14 UTC (rev 24837) @@ -2487,17 +2487,15 @@ PStringToString info; PCaselessString state = mime.GetSubscriptionState(info); + m_referInProgress = state != "terminated"; info.SetAt("party", "B"); // We are B party in consultation transfer info.SetAt("state", state); info.SetAt("code", psprintf("%u", code)); - info.SetAt("result", state != "terminated" || code < 200 - ? "progress" : (code < 300 ? "success" : "failed")); + info.SetAt("result", m_referInProgress ? "progress" : (code < 300 ? "success" : "failed")); if (OnTransferNotify(info)) return; - m_referInProgress = false; - // Release the connection if (IsReleased()) return; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |