Module: sems Branch: rco/offer_answer Commit: 40db19fd803993cbfc6f945ef86df1b2967ee731 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=40db19fd803993cbfc6f945ef86df1b2967ee731
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Wed Apr 27 12:34:09 2011 +0200 b/f: ignore onSdpCompleted only if sip_relay_only. --- core/AmB2BSession.cpp | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/core/AmB2BSession.cpp b/core/AmB2BSession.cpp index 33d94df..fe85787 100644 --- a/core/AmB2BSession.cpp +++ b/core/AmB2BSession.cpp @@ -487,13 +487,11 @@ void AmB2BSession::onInvite2xx(const AmSipReply& reply) int AmB2BSession::onSdpCompleted(const AmSdp& local_sdp, const AmSdp& remote_sdp) { - string debug_str; - local_sdp.print(debug_str); - DBG("Local SDP:\n%s",debug_str.c_str()); - - remote_sdp.print(debug_str); - DBG("Remote SDP:\n%s",debug_str.c_str()); - + if(!sip_relay_only){ + return AmSession::onSdpCompleted(local_sdp,remote_sdp); + } + + DBG("sip_relay_only = true: doing nothing!\n"); return 0; } _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
