Module: sems
Branch: master
Commit: dfb13416e49b3dd30a30a05ee8b70baa63e2bbb1
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=dfb13416e49b3dd30a30a05ee8b70baa63e2bbb1

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Tue Mar 19 18:44:21 2013 +0100

sbc: small cosmetic corrections

---

 apps/sbc/CallLeg.h         |    8 +++++++-
 apps/sbc/ParamReplacer.cpp |    5 +++--
 apps/sbc/SBCCallLeg.h      |    6 ++++--
 3 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/apps/sbc/CallLeg.h b/apps/sbc/CallLeg.h
index acf219d..4ebd5e2 100644
--- a/apps/sbc/CallLeg.h
+++ b/apps/sbc/CallLeg.h
@@ -199,7 +199,13 @@ class CallLeg: public AmB2BSession
        * of B legs */
       AmB2BMedia *media_session;
 
-      void releaseMediaSession() { if (media_session) { if 
(media_session->releaseReference()) delete media_session; media_session = NULL; 
} }
+      void releaseMediaSession() {
+       if (media_session) {
+         if (media_session->releaseReference())
+           delete media_session;
+         media_session = NULL;
+       }
+      }
     };
 
     /** List of legs which can be connected to this leg, it is valid for A leg 
until first
diff --git a/apps/sbc/ParamReplacer.cpp b/apps/sbc/ParamReplacer.cpp
index 98dd628..e6f5d74 100644
--- a/apps/sbc/ParamReplacer.cpp
+++ b/apps/sbc/ParamReplacer.cpp
@@ -212,8 +212,9 @@ string replaceParameters(const string& s,
            if (req.local_if < AmConfig::SIP_Ifs.size()) {
              res += AmConfig::SIP_Ifs[req.local_if].PublicIP;
            }
-         }
-         WARN("unknown replacement $R%c\n", s[p+1]);
+         } 
+         else
+           WARN("unknown replacement $R%c\n", s[p+1]);
        }; break;
 
 
diff --git a/apps/sbc/SBCCallLeg.h b/apps/sbc/SBCCallLeg.h
index af8d092..c35c160 100644
--- a/apps/sbc/SBCCallLeg.h
+++ b/apps/sbc/SBCCallLeg.h
@@ -85,8 +85,10 @@ class SBCCallLeg : public CallLeg, public CredentialHolder
   void CCEnd();
   void CCEnd(const CCInterfaceListIteratorT& end_interface);
 
-  void connectCallee(const string& remote_party, const string& remote_uri, 
const string &from,
-      const AmSipRequest &original_invite, const AmSipRequest &invite_req);
+  void connectCallee(const string& remote_party, const string& remote_uri, 
+                    const string &from, const AmSipRequest &original_invite, 
+                    const AmSipRequest &invite_req);
+
   int filterSdp(AmMimeBody &body, const string &method);
   void appendTranscoderCodecs(AmSdp &sdp);
   void savePayloadIDs(AmSdp &sdp);

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to