]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10654: [verto] implementing replace prototype in verto dialog
authorVictor Torres <vpaivatorres@gmail.com>
Fri, 8 Sep 2017 14:08:44 +0000 (11:08 -0300)
committerVictor Torres <vpaivatorres@gmail.com>
Fri, 8 Sep 2017 17:12:31 +0000 (14:12 -0300)
html5/verto/js/src/jquery.verto.js

index b379904c2616f13e7e4927c41f902b6df53889f6..501a871c405ef969ca2aa5ea99d513dfb45d4417 100644 (file)
         }
     };
 
+    $.verto.dialog.prototype.replace = function(replaceCallID, params) {
+        var dialog = this;
+        if (replaceCallID) {
+            dialog.sendMethod("verto.modify", {
+                action: "replace",
+                replaceCallID: replaceCallID,
+                params: params
+            });
+        }
+    };
+
     $.verto.dialog.prototype.hold = function(params) {
         var dialog = this;