[asterisk-scf-commits] asterisk-scf/integration/sip.git branch "media" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Sun Jun 26 15:33:13 CDT 2011


branch "media" has been updated
       via  89794f5660e5549858755e86395378f0d7801870 (commit)
      from  3af1b9d76864b48c2025445677a7c930fa05f0b8 (commit)

Summary of changes:
 src/SipSession.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


- Log -----------------------------------------------------------------
commit 89794f5660e5549858755e86395378f0d7801870
Author: Joshua Colp <jcolp at digium.com>
Date:   Sun Jun 26 17:33:30 2011 -0300

    Automatically place an fmtp line with the proper payload and contents.

diff --git a/src/SipSession.cpp b/src/SipSession.cpp
index 62c8465..6210963 100644
--- a/src/SipSession.cpp
+++ b/src/SipSession.cpp
@@ -1168,7 +1168,8 @@ void SipSession::addFormatstoSDP(const FormatSeq& formats, pjmedia_sdp_media *me
              ++parameter)
         {
             attr = allocate_from_pool<pjmedia_sdp_attr>(mImplPriv->mDialog->pool);
-            pj_strdup2(mImplPriv->mDialog->pool, &attr->name, (*parameter).c_str());
+            std::string parameters = "fmtp:" + boost::lexical_cast<std::string>(payload) + " " + (*parameter);
+            pj_strdup2(mImplPriv->mDialog->pool, &attr->name, parameters.c_str());
             media->attr[media->attr_count++] = attr;
         }
 

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list