[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
Sun Oct 17 16:04:35 CDT 2010


branch "master" has been updated
       via  a96d82f739db22704e33899ea88dce862297ef8e (commit)
       via  fbf0bcdf6dc3a09dc51d34952148958acbeae33a (commit)
       via  d0740e4591b49e6bcdd5981124979c8173469cdb (commit)
       via  fdcd702ca9960992a9d3a328de6426230b780d87 (commit)
       via  f15eed2c102ebc6895da3a391cc8888bd86c6470 (commit)
      from  08e8e938ea5d7a3ebff21f1b685149896ff700dc (commit)

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


- Log -----------------------------------------------------------------
commit a96d82f739db22704e33899ea88dce862297ef8e
Author: Mark Michelson <mmichelson at digium.com>
Date:   Sun Oct 17 16:06:04 2010 -0500

    Fix substring calculation in REFER handling code.
    
    The assumption appeared to be that the Replaces parameter was given
    to us in full, including "Replaces=" but this is not the case. We
    are only given the value of the parameter and so we need to create
    the substring from the beginning up until the to-tag value. This
    prevents an assertion that would trigger in PJSIP when attempting
    to search for a matching dialog.

diff --git a/cmake b/cmake
index cd39ae8..17066de 160000
--- a/cmake
+++ b/cmake
@@ -1 +1 @@
-Subproject commit cd39ae824f03a19dc934709caee21e930f3b9988
+Subproject commit 17066de364794f3befcdcca030ca31d349e83eea
diff --git a/slice b/slice
index bdfc399..0c62939 160000
--- a/slice
+++ b/slice
@@ -1 +1 @@
-Subproject commit bdfc399d5876152d46be8b47cd4122abca1d2ed3
+Subproject commit 0c629393e2f05dc0ed43bcc6305880949df36289
diff --git a/src/PJSipSessionModule.cpp b/src/PJSipSessionModule.cpp
index 913e0d8..69a1983 100644
--- a/src/PJSipSessionModule.cpp
+++ b/src/PJSipSessionModule.cpp
@@ -466,7 +466,7 @@ void PJSipSessionModule::handleRefer(pjsip_inv_session *inv, pjsip_rx_data *rdat
 
 	 std::string to_tag_value = replaces_value_tmp.substr(to_tag_pos + 8, from_tag_pos - to_tag_pos - 8);
 	 std::string from_tag_value = replaces_value_tmp.substr(from_tag_pos + 10);
-	 std::string replaces_value = replaces_value_tmp.substr(9, to_tag_pos - 9);
+	 std::string replaces_value = replaces_value_tmp.substr(0, to_tag_pos);
 
 	 pj_str_t to_tag_str = pj_str((char*)to_tag_value.c_str());
 	 pj_str_t from_tag_str = pj_str((char*)from_tag_value.c_str());

commit fbf0bcdf6dc3a09dc51d34952148958acbeae33a
Merge: d0740e4 08e8e93
Author: Mark Michelson <mmichelson at digium.com>
Date:   Sun Oct 17 15:30:18 2010 -0500

    Merge branch 'master' of git.asterisk.org:asterisk-scf/integration/sip


commit d0740e4591b49e6bcdd5981124979c8173469cdb
Merge: fdcd702 5ffae4e
Author: Mark Michelson <mmichelson at digium.com>
Date:   Fri Oct 15 15:42:12 2010 -0500

    Merge branch 'master' of git.asterisk.org:asterisk-scf/integration/sip


commit fdcd702ca9960992a9d3a328de6426230b780d87
Merge: f15eed2 8f9a2d4
Author: Mark Michelson <mmichelson at digium.com>
Date:   Fri Oct 15 11:10:01 2010 -0500

    Merge branch 'master' of git.asterisk.org:asterisk-scf/integration/sip


commit f15eed2c102ebc6895da3a391cc8888bd86c6470
Author: Mark Michelson <mmichelson at digium.com>
Date:   Fri Oct 15 09:56:18 2010 -0500

    Change response code from 404 to 403 when an unknown caller calls us.

diff --git a/src/PJSipSessionModule.cpp b/src/PJSipSessionModule.cpp
index 4b8137d..b1bb9fa 100644
--- a/src/PJSipSessionModule.cpp
+++ b/src/PJSipSessionModule.cpp
@@ -336,7 +336,7 @@ void PJSipSessionModule::handleNewInvite(pjsip_rx_data *rdata)
    if (caller == 0)
    {
       lg(Warning) << "Unknown calling endpoint " << callerName;
-      pjsip_inv_end_session(inv_session, 404, NULL, &tdata);
+      pjsip_inv_end_session(inv_session, 403, NULL, &tdata);
       pjsip_inv_send_msg(inv_session, tdata);
       return;
    }

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


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list