]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9607 [verto_communicator] Do not send DTMF when typing in the transfer box
authorItalo Rossi <italorossib@gmail.com>
Tue, 4 Oct 2016 21:08:32 +0000 (18:08 -0300)
committerItalo Rossi <italorossib@gmail.com>
Tue, 4 Oct 2016 21:08:32 +0000 (18:08 -0300)
html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js

index c3f25a5806553d3640233cbaafd0079f33fcc608..8ed6cac6622f5d760c397f936e29f42592606d6d 100644 (file)
 
       $scope.confTransfer = function(memberID) {
         console.log('$scope.confTransfer');
+        $rootScope.disableOnKeydownDtmf();
         prompt({
           title: $translate.instant('TITLE_TRANSFER'),
           message: $translate.instant('MESSAGE_TRANSFER'),
           label: $translate.instant('LABEL_TRANSFER'),
           value: '',
         }).then(function(exten) {
+          $rootScope.enableOnKeydownDtmf();
           if (exten) {
             verto.data.conf.transfer(memberID, exten);
           }
+        }).catch(function(){
+          $rootScope.enableOnKeydownDtmf();
         });
+
       };
 
       $scope.confToggleDeaf = function(member) {