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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Sep 15 12:10:14 CDT 2010


branch "master" has been updated
       via  85e7377b38c2b6ea08fc3d47d6b13bd53f15ef36 (commit)
      from  d16eb416395e2fcf7646da8eb05cee92083a5a86 (commit)

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


- Log -----------------------------------------------------------------
commit 85e7377b38c2b6ea08fc3d47d6b13bd53f15ef36
Author: Joshua Colp <jcolp at digium.com>
Date:   Wed Sep 15 14:16:48 2010 -0300

    Fix bug with finding media formats. We were not actually getting the payload format in numerical form.

diff --git a/src/PJSipSessionModule.cpp b/src/PJSipSessionModule.cpp
index f51f1ee..d308e30 100644
--- a/src/PJSipSessionModule.cpp
+++ b/src/PJSipSessionModule.cpp
@@ -632,7 +632,7 @@ static void invOnMediaUpdate(pjsip_inv_session *inv, pj_status_t status)
       {
 	 FormatDiscoverySDPPtr params = new FormatDiscoverySDP();
 	 params->category = "media_format";
-	 params->payload = *remote_sdp->media[stream]->desc.fmt[format].ptr;
+	 params->payload = pj_strtoul(&remote_sdp->media[stream]->desc.fmt[format]);
 	 params->type = std::string(pj_strbuf(&remote_sdp->media[stream]->desc.media), pj_strlen(&remote_sdp->media[stream]->desc.media));
 
 	 // Some devices rely solely on the payload for known formats (such as PCMU) so the following format parameters are optional

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


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list