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

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Tue Apr 17 19:35:23 2012 +0200

mobile_push: b/f: stopping DSM already when registration there

(no need to wait until subscription is terminated, subscription handling is in 
core anyway)

---

 apps/mobile_push/mobile_push.dsm |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/apps/mobile_push/mobile_push.dsm b/apps/mobile_push/mobile_push.dsm
index 61ad783..601a500 100644
--- a/apps/mobile_push/mobile_push.dsm
+++ b/apps/mobile_push/mobile_push.dsm
@@ -152,6 +152,7 @@ transition "NOTIFY received, with body" WAITING - 
subscription(#status!="termina
   if test($active_contacts != 0) {
     replyWith300();
     subscription.remove($r.handle);
+    stop(false);
   }
 
   releaseRegEvalObjects();
@@ -169,9 +170,9 @@ transition "NOTIFY received, terminated (but with body)" 
WAITING - subscription(
     replyWith300();
   } else {
     dlg.reply(480, "Not found");
-    stop(false);
   }
   releaseRegEvalObjects();
+  stop(false);
 } -> END;
 
 transition "NOTIFY received, subscription terminated" WAITING - 
subscription(#status=="terminated") / {

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

Reply via email to