From: Joao Mesquita Date: Fri, 28 Aug 2015 22:57:30 +0000 (-0300) Subject: FS-8088 [verto_communicator] Call conference destroy upon hangup and on event destroy... X-Git-Tag: v1.6.2~41^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7fa8f3347bbc1b52412db185e23ebf66e38abe6;p=thirdparty%2Ffreeswitch.git FS-8088 [verto_communicator] Call conference destroy upon hangup and on event destroy to properly unsub from events. --- diff --git a/html5/verto/verto_communicator/src/vertoService/services/vertoService.js b/html5/verto/verto_communicator/src/vertoService/services/vertoService.js index 71bd345721..555627abb6 100644 --- a/html5/verto/verto_communicator/src/vertoService/services/vertoService.js +++ b/html5/verto/verto_communicator/src/vertoService/services/vertoService.js @@ -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)) {