Module: sems Branch: master Commit: 9bd2a5f0bd2674e2b5b11737aa5a7e7dd09ae7e2 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=9bd2a5f0bd2674e2b5b11737aa5a7e7dd09ae7e2
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Wed Jul 13 00:20:11 2011 +0200 b/f: call onRinging also on 180 and no dlg status change e.g. when already in Early state before --- core/AmSession.cpp | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/core/AmSession.cpp b/core/AmSession.cpp index 98d1976..753ac35 100644 --- a/core/AmSession.cpp +++ b/core/AmSession.cpp @@ -840,15 +840,16 @@ void AmSession::onSipReply(const AmSipReply& reply, updateRefreshMethod(reply.hdrs); + if (dlg.getStatus() < AmSipDialog::Connected && + reply.code == 180) { + onRinging(reply); + } + if (old_dlg_status != dlg.getStatus()) { DBG("Dialog status changed %s -> %s (stopped=%s) \n", dlgStatusStr(old_dlg_status), dlgStatusStr(dlg.getStatus()), sess_stopped.get() ? "true" : "false"); - if (dlg.getStatus() < AmSipDialog::Connected && - reply.code == 180) { - onRinging(reply); - } } else { DBG("Dialog status stays %s (stopped=%s)\n", dlgStatusStr(old_dlg_status), _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
