mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
send dtmf from keyboard strokes
This commit is contained in:
parent
004c5ab2b0
commit
acffa7961b
@ -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);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user