]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8088 [verto_communicator] Call conference destroy upon hangup and on event destroy...
authorJoao Mesquita <jmesquita@indicium.com.ar>
Fri, 28 Aug 2015 22:57:30 +0000 (19:57 -0300)
committerJoao Mesquita <jmesquita@indicium.com.ar>
Fri, 28 Aug 2015 22:58:46 +0000 (19:58 -0300)
html5/verto/verto_communicator/src/vertoService/services/vertoService.js

index 71bd3457215a470cf3c808e9a16fd135b4271c67..555627abb64bed1d49fedf21692f0e81af106a0d 100644 (file)
@@ -416,6 +416,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
             console.log('Has data.liveArray.');
             $rootScope.$emit('members.clear');
             data.liveArray = null;
+            
           } else {
             console.log('Doesn\'t found data.liveArray.');
           }
@@ -502,6 +503,9 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
                 if (d.params.screenShare) {
                   cleanShareCall(that);
                 } else {
+                  if (data.conf) {
+                    data.conf.destroy();
+                  }
                   cleanCall();
                 }
                 break;
@@ -690,6 +694,11 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
 
         data.call.hangup();
 
+        if (data.conf) {
+          data.conf.destroy();
+          data.conf = null;
+        }
+
         console.debug('The call was hangup.');
 
         if (angular.isFunction(callback)) {