Questions tagged [asteriskami]

The Asterisk Manager Interface (AMI) is a socket-based protocol for controlling the Asterisk telephony engine.

The Asterisk Manager Interface (AMI) is a socket-based protocol for controlling the Asterisk telephony engine.

218 questions
0
votes
1 answer

asterisk mute all channels on a confbridge by single command

I am working on a solution with asterisk, that needs to enter all caller channels in a confbridge and then there is admin user that can mute and unmute any channel at runtime by it's choice. All of this is working. But now I am stuck at a scenario…
0
votes
1 answer

multiple asterisk ami connections with pami and react-php

I'm using PAMI with react-php and ratchet to connect with asterisk ami, I have 3 freepbx servers and want to connect with all of them in one dashboard and receive all the events from all the freepbx servers. Here is the code that I wrote in…
abdullah
  • 3
  • 1
0
votes
1 answer

Problems with ConnectionState in AsterNet

I have next code: using AsterNET.Manager; using AsterNET.Manager.Event; private ManagerConnection manager; private bool StartManager() { manager = new( Properties.Resources.amiAddress, …
Dmitriy G
  • 171
  • 1
  • 1
  • 4
0
votes
2 answers

Asterisk AMI Originate - add hangup_handler for first leg

We use Asterisk AMI Originate for outbound calls (our software), so after successfully connecting to the first leg (external), we can use dialplan to Dial the second leg (internal) and handle the hangup. Now we are using AMI in our software to pick…
0
votes
0 answers

Asterisk SIP channel format

At some point I found this format for the channel in the AMI Originate command: SIP/user::::tcp@host:port I need the request URI to be user@host:port, but I need to send it out a specific SIP peer. I can't seem to find that format again by…
0
votes
0 answers

Does Asterisk (v13.30.0) ignore allowed_origins

We are attempting to use AMI in Asterisk 13.30.0 (yes I know its old). It seems that regardless of the allowed_origins setting any calls from a browser result in a CORS error - though intrestingly enough it does get a 200 back (see below). I would…
Marc Teichtahl
  • 211
  • 1
  • 2
  • 5
0
votes
2 answers

Connect attempt from '192.168.xxx.xxx' unable to authenticate?

I'm trying to implement an AMI service, actually it works pretty good, I can add members, remove members etc etc, but every 1-5 minutes I get an exception. Looking in the asterisk manager I find this error. Does anybody knows how to solve this…
omarGlez
  • 33
  • 4
0
votes
1 answer

Laravel - listening for specific Asterisk events using Marcelog Pami

I'm building application in Laravel 8. In application I need to receive event from Asterisk. To do that I downloaded Pami package. In app\Listeners folder I created file AmiTestListener.php for listener (code I copied from Marcelog Pami…
Aleg
  • 1
  • 1
0
votes
2 answers

Start call using Originate with a custom callerid on Asterisk

Try to making a simple dialer with NodeJS. Want to start a call with originate command using AMI, then move this call to a queue. Asterisk takes care of the rest. With the following command, i can do what i want but problem is CallerID parameter is…
Tysre
  • 1
  • 1
0
votes
2 answers

Asterisk/PHP - How to get list of call recordings

I want to use AMI(Asterisk Manager Interface) to get the list of calls recorded and then get/fetch one of them to be played in my site. What I expect for listing recordings is like this: asterisk-site-example.com/recordings and for each one like…
kodfire
  • 1,612
  • 3
  • 18
  • 57
0
votes
2 answers

OriginateAction Variables joining issue

I am trying to use C# AsterNET OriginateAction method to dial out calls with the Asterisk AMI. Calls are working fine But I am having issue on setting variables on this action. I set 2 variables as following: oc.SetVariables( new Dictionary
0
votes
1 answer

Block the operator from receiving calls without being paused

In my company we are using Asterisk 15, and would like to know if it is possible without the operator to pause, he only receive calls after a command. To explain further, we use a dialer system, and the operator can only receive another call after…
0
votes
2 answers

Retrieve the status of a PSTN trunk from Asterisk AMI

I am trying to use ExtensionState action to retrieve the status of a PSTN trunk via Asterisk AMI: Action: ExtensionState Context: trunks-hintcontext Exten: pstn1 And the response I got is: Response: Success Message: Extension Status Exten:…
Chau Chee Yang
  • 18,422
  • 16
  • 68
  • 132
0
votes
2 answers

Asterisk cannot hang up after longer 2 minutes

I am using Asterisk AGI to control incoming call from Twilio After STREAM FILE command is executed (to play some audio file), I want to Hangup channel. I tried execute HANGUP command and It worked if call duration < 2 minutes. HANGUP command not…
nguoitotkhomaisao
  • 1,247
  • 1
  • 13
  • 24
0
votes
2 answers

Asterisk 11 Who Hanged Up?

I do have an Asterisk 11 PBX and I'm developing an Windows Service application using the github AsterNET.AMI Library to connect my PBX. Till here everything is working fine, I can send commands and read incoming event messages. But now I need to…
Andrew Paes
  • 1,940
  • 1
  • 15
  • 20