]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8839 - [verto_communicator] Fix screenshare when caller is transferred to another...
authorItalo Rossi <italorossib@gmail.com>
Wed, 17 Feb 2016 14:14:35 +0000 (11:14 -0300)
committerItalo Rossi <italorossib@gmail.com>
Wed, 17 Feb 2016 14:14:35 +0000 (11:14 -0300)
html5/verto/verto_communicator/src/vertoControllers/controllers/InCallController.js

index f030b5d611d4ffa6d2b193939444af63afc8263d..d5e5484fa665a8f6ca183902289ba631cd2cccc5 100644 (file)
             verto.screenshareHangup();
             return false;
           }
-          verto.screenshare(storage.data.called_number);
+          if (verto.data.conf) {
+            console.log('Screenshare inside conferece: ', verto.data.conf);
+            // Setting the destination of the screenshare call as the conference
+            // number we last joined
+            verto.screenshare(verto.data.conf.params.laData.laName);
+          }
+          else {
+            verto.screenshare(storage.data.called_number);
+          }
         };
 
         function buildCanvasesData() {