Module: sems
Branch: master
Commit: 11a76ee759acc24eaec5eb809e44b0350ffc2b91
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=11a76ee759acc24eaec5eb809e44b0350ffc2b91

Author: Stefan Sayer <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Tue Jul 12 16:04:44 2011 +0200

brought back onRinging

---

 core/AmSession.cpp |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/core/AmSession.cpp b/core/AmSession.cpp
index 7f53f6d..98d1976 100644
--- a/core/AmSession.cpp
+++ b/core/AmSession.cpp
@@ -840,15 +840,20 @@ void AmSession::onSipReply(const AmSipReply& reply,
 
   updateRefreshMethod(reply.hdrs);
 
-  if (old_dlg_status != dlg.getStatus())
+  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");
-  else 
+    if (dlg.getStatus() < AmSipDialog::Connected &&
+       reply.code == 180) {
+      onRinging(reply);
+    }
+  } else {
     DBG("Dialog status stays %s (stopped=%s)\n", 
        dlgStatusStr(old_dlg_status), 
        sess_stopped.get() ? "true" : "false");
+  }
 }
 
 

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to