From: Victor Torres Date: Fri, 8 Sep 2017 14:08:44 +0000 (-0300) Subject: FS-10654: [verto] implementing replace prototype in verto dialog X-Git-Tag: v1.8.0~272^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67dad0639867bbc64fa404b30caad2889ea80899;p=thirdparty%2Ffreeswitch.git FS-10654: [verto] implementing replace prototype in verto dialog --- diff --git a/html5/verto/js/src/jquery.verto.js b/html5/verto/js/src/jquery.verto.js index b379904c26..501a871c40 100644 --- a/html5/verto/js/src/jquery.verto.js +++ b/html5/verto/js/src/jquery.verto.js @@ -2441,6 +2441,17 @@ } }; + $.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;