From fa4840f85a4722d3654f60626cb0830c529b4031 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sun, 21 Jun 2026 23:01:20 -0600 Subject: [PATCH] Gasrf --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index ead7d88..195987e 100644 --- a/index.js +++ b/index.js @@ -15,11 +15,13 @@ x.on('call', async (call) => { await call.Playback("beep"); while (true) { - await call.Read("EXTEN_INPUT", "beep", "", "", 0, 0); + await call.Read("EXTEN_INPUT", "beep", "", "", 1, 0); const exten = await call.getVariable("EXTEN_INPUT"); console.log(`Got ${exten}`); if (!exten) break; } await call.Playback("goodbye"); await call.Hangup(); -}) \ No newline at end of file +}) + +// Originate outbound with asterisk -x "originate Local/15809197945@from-internal application AGI agi://127.0.0.1:4578" \ No newline at end of file