Module: sems Branch: sayer/offer_answer Commit: 659e87293b7befa4ee88f2d1a960f45e05f8ce11 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=659e87293b7befa4ee88f2d1a960f45e05f8ce11
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Tue Oct 19 21:59:23 2010 +0200 fix B2B for reinvite caller --- core/AmB2BSession.cpp | 2 +- core/AmSipDialog.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/AmB2BSession.cpp b/core/AmB2BSession.cpp index 513d02b..b341728 100644 --- a/core/AmB2BSession.cpp +++ b/core/AmB2BSession.cpp @@ -559,7 +559,7 @@ int AmB2BCallerSession::reinviteCaller(const AmSipReply& callee_reply) { return dlg.sendRequest(SIP_METH_INVITE, callee_reply.content_type, callee_reply.body, - "" /* hdrs */, SIP_FLAGS_VERBATIM); + "" /* hdrs */, SIP_FLAGS_VERBATIM, false); } void AmB2BCallerSession::createCalleeSession() { diff --git a/core/AmSipDialog.cpp b/core/AmSipDialog.cpp index 0f1d8c5..a16e196 100644 --- a/core/AmSipDialog.cpp +++ b/core/AmSipDialog.cpp @@ -399,14 +399,14 @@ int AmSipDialog::onTxRequest(AmSipRequest& req, bool do_offeranswer) status = Disconnecting; } + if (!do_offeranswer) + return 0; + if((req.method == "INVITE") || (req.method == "UPDATE")){ if(triggerOfferAnswer(req.content_type, req.body)) return -1; } - if (!do_offeranswer) - return 0; - if(req.content_type == "application/sdp") { if(onTxSdp(req.body)){ _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
