Skip to content

A fork and modified version of ts-agi which will see if the Asterisk channel is still open, or if the caller dropped the call. This will resolve Auto-Destruct issue on ts-agi.

Ouri028/touched-agi

Repository files navigation

touched-agi

A simple and easy to use FastAGI.

This is was based of TS-AGI.

Install

npm install touched-agi

or

yarn add touched-agi

import { Agi } from "touched-agi";

const agi = new Agi();

agi.use(async (ctx: any) => {
    await ctx.getData("beep", 13000, 13);
});

agi.listen(3000, () => {
    console.log("Running on port 3000");
});

Add to Asterisk extensions.conf

[default]
exten = > 1000,1,AGI(agi://localhost:3000)

Links

Asterisk AGI


About

A fork and modified version of ts-agi which will see if the Asterisk channel is still open, or if the caller dropped the call. This will resolve Auto-Destruct issue on ts-agi.

Resources

Stars

Watchers

Forks

Packages

No packages published