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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Thu Dec 16 17:46:16 UTC 2010


branch "master" has been updated
       via  88d4397327816c943d91b233d52366215277ca9e (commit)
      from  5d0fdae7f906f499dcc729a4a21f28bf9f51c06c (commit)

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


- Log -----------------------------------------------------------------
commit 88d4397327816c943d91b233d52366215277ca9e
Author: Mark Michelson <mmichelson at digium.com>
Date:   Thu Dec 16 11:52:12 2010 -0600

    Add another pjsip_uri_get_uri call for the Request URI.

diff --git a/src/PJSipSessionModule.cpp b/src/PJSipSessionModule.cpp
index 011549e..4ea6aad 100644
--- a/src/PJSipSessionModule.cpp
+++ b/src/PJSipSessionModule.cpp
@@ -432,7 +432,7 @@ void PJSipSessionModule::handleNewInvite(pjsip_rx_data *rdata)
     std::string destination("");
     if (PJSIP_URI_SCHEME_IS_SIP(ruri) || PJSIP_URI_SCHEME_IS_SIPS(ruri))
     {
-        pjsip_sip_uri *sipRuri = (pjsip_sip_uri *)ruri;
+        pjsip_sip_uri *sipRuri = (pjsip_sip_uri *)pjsip_uri_get_uri(ruri);
         //For now, we only know about destination "100" so we'll
         //grab that from the URI to pass to the locator.
         destination = std::string(pj_strbuf(&sipRuri->user), pj_strlen(&sipRuri->user));

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


-- 
asterisk-scf/release/sip.git



More information about the asterisk-scf-commits mailing list