Module: sems Branch: rco/offer_answer Commit: 74b671faf48c45d2b7d688329a5a2fe74e3bc96a URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=74b671faf48c45d2b7d688329a5a2fe74e3bc96a
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Wed May 18 10:51:54 2011 +0200 do not accept provisional replies in Cancelling state. --- core/AmSipDialog.cpp | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/core/AmSipDialog.cpp b/core/AmSipDialog.cpp index 1bf7345..387b5e4 100644 --- a/core/AmSipDialog.cpp +++ b/core/AmSipDialog.cpp @@ -457,6 +457,14 @@ int AmSipDialog::onTxReply(AmSipReply& reply) break; case Cancelling: + if( (reply.cseq_method == "INVITE") && + (reply.code < 200) ) { + // refuse local provisional replies + // when state is Cancelling + return -1; + } + // else continue with final + // reply processing case Proceeding: case Trying: case Early: _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
