Module: sems Branch: rco/offer_answer Commit: 727a487c46bedfd61edb4359cd30ac90e63dcfc1 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=727a487c46bedfd61edb4359cd30ac90e63dcfc1
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Fri Apr 15 17:26:15 2011 +0200 do not call bye() if an error reply was received. --- core/AmSipDialog.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/AmSipDialog.cpp b/core/AmSipDialog.cpp index b421c84..5da5f20 100644 --- a/core/AmSipDialog.cpp +++ b/core/AmSipDialog.cpp @@ -592,11 +592,11 @@ void AmSipDialog::onRxReply(const AmSipReply& reply) remote_tag = reply.to_tag; } } - else { // error reply + + if(reply.code >= 300) {// error reply status = Disconnected; } - - if(cancel_pending){ + else if(cancel_pending){ cancel_pending = false; bye(); } _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
