Module: sems Branch: sst_b2b DELETED Commit: 88cca97d676927b1ed075347601ab5a1329c9ac7 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=88cca97d676927b1ed075347601ab5a1329c9ac7
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Thu Jun 3 09:51:35 2010 +0000 use original content type instead of hardcoded application/sdp git-svn-id: http://svn.berlios.de/svnroot/repos/sems/branches/sst_...@1961 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/AmB2BSession.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/AmB2BSession.cpp b/core/AmB2BSession.cpp index 333353d..b7ca870 100644 --- a/core/AmB2BSession.cpp +++ b/core/AmB2BSession.cpp @@ -323,7 +323,7 @@ void AmB2BSession::onSipReply(const AmSipReply& reply) bool is_offer = (rel_body_it == relayed_body_req.end()); if (!is_offer) { DBG("relayed body INVITE failed\n"); - // todo (?): save last SDP and reuse it here + // send empty body - other side may use last SDP relayEvent(new B2BMsgBodyEvent("", "", is_offer, rel_body_it->second.cseq)); } @@ -447,7 +447,7 @@ void AmB2BSession::relaySip(const AmSipRequest& req) } relayed_req[dlg.cseq] = AmSipTransaction(req.method,req.cseq,req.tt); - dlg.sendRequest(req.method, "application/sdp", // todo! content_type + dlg.sendRequest(req.method, req.content_type, req.body, req.hdrs, SIP_FLAGS_VERBATIM); } else { // its a (200) ACK @@ -619,7 +619,7 @@ void AmB2BCallerSession::connectCallee(const string& remote_party, B2BConnectEvent* ev = new B2BConnectEvent(remote_party,remote_uri); - ev->content_type = "application/sdp"; // FIXME + ev->content_type = invite_req.content_type; ev->body = invite_req.body; ev->hdrs = invite_req.hdrs; ev->relayed_invite = relayed_invite; _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
