[asterisk-scf-commits] asterisk-scf/integration/sip.git branch "t38udptl" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Tue Sep 20 10:47:54 CDT 2011
branch "t38udptl" has been updated
via 5dcb2757c2cf0498bf1f8d15543f8d48d8641c7e (commit)
from d34a15b62902bf2b3d2596b25860be896ff9598e (commit)
Summary of changes:
src/SipSession.cpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 5dcb2757c2cf0498bf1f8d15543f8d48d8641c7e
Author: Joshua Colp <jcolp at digium.com>
Date: Tue Sep 20 12:54:20 2011 -0300
Remove the old stream we are replacing.
diff --git a/src/SipSession.cpp b/src/SipSession.cpp
index cf9e250..5131573 100755
--- a/src/SipSession.cpp
+++ b/src/SipSession.cpp
@@ -2193,6 +2193,9 @@ pjmedia_sdp_session *SipSession::createSDPOffer(const AsteriskSCF::Media::V1::St
// Add the stream to the SDP
mImplPriv->mSDP->media_count = 0;
+ // Since we may be replacing an existing stream go ahead and remove it
+ mImplPriv->mStreams.erase(boost::lexical_cast<std::string>(mImplPriv->mSDP->media_count));
+
pjmedia_sdp_media *media = allocate_from_pool<pjmedia_sdp_media>(mImplPriv->mDialog->pool);
// The media count is purposely not incremented here since it is done when the stream is added to the sequence
// of streams
@@ -2758,6 +2761,8 @@ pjmedia_sdp_session *SipSession::createSDPAnswer(const pjmedia_sdp_session* offe
sink->setFarMaxDatagram(t38->maxDatagram);
sink->setErrorCorrectionScheme(t38->errorCorrection);
+
+ break;
}
else
{
-----------------------------------------------------------------------
--
asterisk-scf/integration/sip.git
More information about the asterisk-scf-commits
mailing list