mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
send dtmf from keyboard strokes
This commit is contained in:
@@ -429,6 +429,16 @@ function init() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).keypress(function(event) {
|
||||||
|
if (!cur_call) return;
|
||||||
|
var key = String.fromCharCode(event.keyCode);
|
||||||
|
var i = parseInt(key);
|
||||||
|
|
||||||
|
if (key === "#" || key === "*" || key === "0" || (i > 0 && i <= 9)) {
|
||||||
|
cur_call.dtmf(key);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user