npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-asterisk-ami

v0.1.0

Published

n8n community node for Asterisk/FreePBX AMI actions such as Originate and Hangup.

Readme

n8n-nodes-asterisk-ami

Module n8n sans worker SIP. Il utilise directement l'interface Asterisk Manager Interface (AMI) de FreePBX/Asterisk.

Avec AMI, n8n ne fait pas SIP/RTP. Asterisk lance les appels, gère les trunks, l'audio, les codecs et l'authentification SIP.

Fonctions

  • Originate Call
  • Hangup Channel
  • AMI Command
  • Custom AMI Action

Installation locale

cd n8n-nodes-asterisk-ami
npm install
npm run build
npm link

# Dans ton environnement n8n
npm link n8n-nodes-asterisk-ami
n8n start

Ou copie le dossier dans un environnement n8n custom Docker et installe-le comme package npm local.

Activer AMI dans FreePBX

Dans FreePBX :

Settings > Asterisk Manager Users
Add Manager

Exemple :

Username: n8nami
Secret: mot-de-passe-fort
Permit: IP_DE_N8N/255.255.255.255
Read: system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate
Write: system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate

Vérifie que le port AMI est ouvert seulement pour l'IP de n8n :

ufw allow from IP_DE_N8N to any port 5038 proto tcp

Ne pas exposer AMI publiquement sans restriction IP.

Credentials n8n

Crée un credential Asterisk AMI API :

Host: 178.105.206.0
Port: 5038
Username: n8nami
Password: ton secret AMI
TLS: false

Exemple : appeler une extension interne

Operation: Originate Call

Channel: PJSIP/4000
Context: from-internal
Extension: 6000
Priority: 1
Caller ID: "Exaland" <4000>
Async: true

Ce scénario fait sonner l'extension 4000, puis l'envoie vers 6000.

Exemple : appeler un numéro externe via le dialplan FreePBX

Méthode recommandée : originate depuis une extension autorisée, puis composer le numéro dans from-internal.

Channel: Local/00442037692699@from-internal
Context: from-internal
Extension: 6000
Priority: 1
Caller ID: "Exaland" <4000>
Async: true

Alternative selon ton trunk :

Channel: PJSIP/00442037692699@NOM_DU_TRUNK
Context: from-internal
Extension: s
Priority: 1
Async: true

Le format exact dépend de tes trunks FreePBX.

Voir les appels actifs

Operation: AMI Command

core show channels concise

Raccrocher

Operation: Hangup Channel

Channel: PJSIP/4000-00000012

Tu peux obtenir le nom du channel avec core show channels concise.

Notes importantes

  • Ce module ne diffuse pas directement un fichier audio. Pour jouer un message, fais-le côté Asterisk : dialplan, IVR, announcement, AGI/ARI, ou Local/...@context.
  • Pour de l'audio dynamique/IA, la bonne suite est AMI pour origination + ARI/ExternalMedia côté Asterisk.
  • AMI est beaucoup plus stable que réimplémenter SIP dans Node.