[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:28:06 UTC 2010


branch "master" has been updated
       via  5d0fdae7f906f499dcc729a4a21f28bf9f51c06c (commit)
      from  33ada269b15d47a1f4cb54b88175be1741074a89 (commit)

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


- Log -----------------------------------------------------------------
commit 5d0fdae7f906f499dcc729a4a21f28bf9f51c06c
Author: Mark Michelson <mmichelson at digium.com>
Date:   Thu Dec 16 11:33:45 2010 -0600

    Use proper method of retrieving From URI.
    
    We were getting less-than-uncorrupted results before.

diff --git a/src/PJSipSessionModule.cpp b/src/PJSipSessionModule.cpp
index 3f64de1..011549e 100644
--- a/src/PJSipSessionModule.cpp
+++ b/src/PJSipSessionModule.cpp
@@ -406,7 +406,7 @@ void PJSipSessionModule::handleNewInvite(pjsip_rx_data *rdata)
     std::string callerName("");
     if (PJSIP_URI_SCHEME_IS_SIP(from) || PJSIP_URI_SCHEME_IS_SIPS(from))
     {
-        pjsip_sip_uri *sipFrom = (pjsip_sip_uri *)from;
+        pjsip_sip_uri *sipFrom = (pjsip_sip_uri *)pjsip_uri_get_uri(from);
         callerName = std::string(pj_strbuf(&sipFrom->user), pj_strlen(&sipFrom->user));
         lg(Debug) << "Got caller name " << callerName;
     }

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


-- 
asterisk-scf/release/sip.git



More information about the asterisk-scf-commits mailing list