[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
Thu Oct 21 10:28:11 CDT 2010


branch "master" has been updated
       via  44058534d36001e9c805c774f640151d166c68cb (commit)
      from  4010cb2f417c51a0f9d26bb14cba08b2306bed98 (commit)

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


- Log -----------------------------------------------------------------
commit 44058534d36001e9c805c774f640151d166c68cb
Author: Mark Michelson <mmichelson at digium.com>
Date:   Thu Oct 21 10:30:34 2010 -0500

    Remove annoying debugging that would print on every transaction state change not dealing with a REFER.

diff --git a/src/PJSipSessionModule.cpp b/src/PJSipSessionModule.cpp
index 6abd174..8221e75 100644
--- a/src/PJSipSessionModule.cpp
+++ b/src/PJSipSessionModule.cpp
@@ -790,17 +790,10 @@ void PJSipSessionModule::invOnNewSession(pjsip_inv_session *inv, pjsip_event *ev
 
 void PJSipSessionModule::invOnTsxStateChanged(pjsip_inv_session *inv, pjsip_transaction *tsx, pjsip_event *e)
 {
-	lg(Debug) << "invOnStateChanged called for method " << std::string(pj_strbuf(&tsx->method.name), pj_strlen(&tsx->method.name)) << std::endl;;
    if (tsx->role == PJSIP_ROLE_UAS && tsx->state == PJSIP_TSX_STATE_TRYING && !pjsip_method_cmp(&tsx->method, pjsip_get_refer_method()))
    {
       handleRefer(inv, e->body.tsx_state.src.rdata);
    }
-   else
-   {
-	   lg(Debug) << "Not handling REFER" << std::endl;
-	   lg(Debug) << "Tsx role is " << tsx->role << " and we would handle REFER if tsx role was " << PJSIP_ROLE_UAS << std::endl;
-	   lg(Debug) << "Tsx state is " << tsx->state << " and we would handle REFER if tsx state was " << PJSIP_TSX_STATE_TRYING << std::endl;
-   }
    //This will be our key point for updating transaction state.
    //This function will not be called until after a module has registered
    //itself as the transaction user, so this won't be called on the initial

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


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list