$.verto.dialog.prototype.transfer = function(dest, params) {
var dialog = this;
if (dest) {
- cur_call.sendMethod("verto.modify", {
+ dialog.sendMethod("verto.modify", {
action: "transfer",
destination: dest,
params: params
$.verto.dialog.prototype.hold = function(params) {
var dialog = this;
- cur_call.sendMethod("verto.modify", {
+ dialog.sendMethod("verto.modify", {
action: "hold",
params: params
});
$.verto.dialog.prototype.unhold = function(params) {
var dialog = this;
- cur_call.sendMethod("verto.modify", {
+ dialog.sendMethod("verto.modify", {
action: "unhold",
params: params
});
$.verto.dialog.prototype.toggleHold = function(params) {
var dialog = this;
- cur_call.sendMethod("verto.modify", {
+ dialog.sendMethod("verto.modify", {
action: "toggleHold",
params: params
});