Module: sems Branch: 1.4 Commit: a9f665799cc688efc58ebeafcd342c9b58c02244 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=a9f665799cc688efc58ebeafcd342c9b58c02244
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Mon Apr 11 13:50:53 2011 +0200 b/f: accept any 4xx reply after CANCEL. No BYE after 3xx. --- core/AmSipDialog.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/AmSipDialog.cpp b/core/AmSipDialog.cpp index c868f19..c50c019 100644 --- a/core/AmSipDialog.cpp +++ b/core/AmSipDialog.cpp @@ -346,12 +346,12 @@ void AmSipDialog::updateStatus(const AmSipReply& reply) if (reply.code < 200) break; - if(reply.code == 487){ + if(reply.code >= 400){ // CANCEL accepted DBG("CANCEL accepted, status -> Disconnected\n"); status = Disconnected; } - else { + else if(reply.code < 300){ // CANCEL rejected DBG("CANCEL rejected/too late - bye()\n"); bye(); _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
