[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
Wed Apr 13 12:37:38 CDT 2011


branch "master" has been updated
       via  929982dac23f77950f2b7ff18ec85b51a42de558 (commit)
      from  95c838e77ca99e63a13721981e2aa07867c4bea1 (commit)

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


- Log -----------------------------------------------------------------
commit 929982dac23f77950f2b7ff18ec85b51a42de558
Author: Joshua Colp <jcolp at digium.com>
Date:   Wed Apr 13 14:41:00 2011 -0300

    Respond with a 405 Method Not Allowed response for requests that we do not support.

diff --git a/src/PJSipSessionModule.cpp b/src/PJSipSessionModule.cpp
index 165f35b..7bfa199 100644
--- a/src/PJSipSessionModule.cpp
+++ b/src/PJSipSessionModule.cpp
@@ -779,7 +779,8 @@ pj_bool_t PJSipSessionModule::on_rx_request(pjsip_rx_data *rdata)
             break;
         }
     default:
-        return PJ_FALSE;
+	pjsip_endpt_respond_stateless(mEndpoint, rdata, 405, NULL, NULL, NULL);
+	break;
     }
 
     return PJ_TRUE;

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


-- 
asterisk-scf/release/sip.git



More information about the asterisk-scf-commits mailing list