Module: sems Branch: rco/offer_answer Commit: 63c76d4d8bb3a51fc0becbba1bfb0e5baf52e8b9 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=63c76d4d8bb3a51fc0becbba1bfb0e5baf52e8b9
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Mon Jan 24 17:55:15 2011 +0100 reject INVITEs when running offer/answer transaction. --- core/AmSipDialog.cpp | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/core/AmSipDialog.cpp b/core/AmSipDialog.cpp index 34a3817..29f7aec 100644 --- a/core/AmSipDialog.cpp +++ b/core/AmSipDialog.cpp @@ -131,18 +131,15 @@ void AmSipDialog::onRxRequest(const AmSipRequest& req) } if (req.method == SIP_METH_INVITE) { - if(pending_invites) { + if(pending_invites || ((oa_state != OA_None) && (oa_state != OA_Completed))) { reply_error(req,500, SIP_REPLY_SERVER_INTERNAL_ERROR, "Retry-After: " + int2str(get_random() % 10) + CRLF); return; } pending_invites++; - if((oa_state != OA_None) && (oa_state != OA_Completed)) { - - // Reset Offer/Answer state - oa_state = OA_None; - } + // Reset Offer/Answer state + oa_state = OA_None; } r_cseq = req.cseq; _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
