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

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Wed Feb 19 18:51:19 2014 +0100

core: removed orphan code (B2B SDP parsing)

---

 core/AmB2BSession.cpp |   36 ------------------------------------
 1 files changed, 0 insertions(+), 36 deletions(-)

diff --git a/core/AmB2BSession.cpp b/core/AmB2BSession.cpp
index c951b29..a2f99f7 100644
--- a/core/AmB2BSession.cpp
+++ b/core/AmB2BSession.cpp
@@ -306,42 +306,6 @@ void AmB2BSession::onB2BEvent(B2BEvent* ev)
   //ERROR("unknown event caught\n");
 }
 
-static bool parseSdp(AmSdp &dst, const AmMimeBody *body)
-{
-  if (body) {
-    int res = dst.parse((const char *)body->getPayload());
-    if (res != 0) {
-      DBG("SDP parsing failed (%d)!\n", res);
-      return false;
-    }
-    return true;
-  }
-  return false;
-}
-
-static bool parseSdp(AmSdp &dst, const AmSipRequest &req)
-{
-  if (req.method == SIP_METH_INVITE || 
-      req.method == SIP_METH_UPDATE ||
-      req.method == SIP_METH_ACK || 
-      req.method == SIP_METH_PRACK) 
-  {
-    return parseSdp(dst, req.body.hasContentType(SIP_APPLICATION_SDP));
-  }
-  return false;
-}
-
-static bool parseSdp(AmSdp &dst, const AmSipReply &reply)
-{
-  if (reply.cseq_method == SIP_METH_INVITE || 
-      reply.cseq_method == SIP_METH_UPDATE ||
-      reply.cseq_method == SIP_METH_PRACK) 
-  {
-    return parseSdp(dst, reply.body.hasContentType(SIP_APPLICATION_SDP));
-  }
-  return false;
-}
-
 bool AmB2BSession::getMappedReferID(unsigned int refer_id, 
                                    unsigned int& mapped_id) const
 {

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

Reply via email to