dev
This commit is contained in:
parent
971f24482c
commit
cfdf0017fa
2
index.js
2
index.js
|
|
@ -15,7 +15,7 @@ x.on('call', async (call) => {
|
||||||
|
|
||||||
await call.Playback("beep");
|
await call.Playback("beep");
|
||||||
while (true) {
|
while (true) {
|
||||||
await call.Read("EXTEN_INPUT", "beep", 3, 10000);
|
await call.Read("EXTEN_INPUT, beep, 3, 10000");
|
||||||
const exten = await call.getVariable("EXTEN_INPUT");
|
const exten = await call.getVariable("EXTEN_INPUT");
|
||||||
console.log(`Got ${exten}`);
|
console.log(`Got ${exten}`);
|
||||||
if (!exten) break;
|
if (!exten) break;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue