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
2
votes
2 answers

Put an Asterisk SIP call on hold via AMI

I'm attempting to put a call on hold via the Asterisk Management Interface (AMI), and I've worked out that in order to do this you need to effectively park the call. Where I'm running into trouble is the second channel in which you are placing into…
Mattisdada
  • 916
  • 2
  • 12
  • 19
2
votes
4 answers

How to log call (SIP) requests in asterisk?

Is it possible to log SIP requests to a database in asterisk? I am interested in these details: timestamp SIP method status code source number/extension destination number/extension I am pretty sure that it's possible to translate queue_log events…
reederz
  • 983
  • 1
  • 12
  • 29
2
votes
2 answers

Perl order of execution of asterisk callback?

I have a code as follow: 1 sub do_leave { 2 3 my ($asterisk, $event) = @_; 4 my $join_id; 5 my $id = $astman->send_action({ Action => 'Getvar', 6 Variable => 'join_id', 7 …
vahid abdi
  • 9,636
  • 4
  • 29
  • 35
2
votes
3 answers

How to check if file exists in asterisk

I am currently working on asterisk. I have to perform some action if the file exists, and if it does not, than I will have to play the message that file not exists. So how can I check the If the file exists in asterisk dialplan Thanks
Muhammad Salman Farooq
  • 1,325
  • 9
  • 26
  • 54
2
votes
1 answer

Get extensions list in Asterisk with AMI

I'm running Asterisk 11.4.0 and I've got access to it with AMI. How can I get list of all extensions (not peers or users)? For example, I've got dialplan like this: exten = _XXXX,1,Verbose(Start recording!) exten = _XXXX,2,NoOp() exten =…
JustLogin
  • 1,822
  • 5
  • 28
  • 50
2
votes
1 answer

Is it possible to Spy (ChanSpy) on a channel running on a difference Asterisk Server

We have multiple asterisk server running completely independent with agents logged on to these servers. On the other hand a supervisor logged on to a sip server A wishes to Spy on a target agent logged on Server B who may or may not be talking to a…
Christian
  • 53
  • 8
2
votes
1 answer

Retrieving/making statistics of asterisk queues using asterisk queue_log table or AMI

Using PHP asterisk manager interface I am able to query asterisk for current queue status by issuing a QueueStatusAction. This provides me with useful statistics like: Hold time Calls abandoned Calls completed Average talk time. As far as I…
reederz
  • 983
  • 1
  • 12
  • 29
2
votes
2 answers

join CDR records from 2 asterisk server

I have 2 asterisk servers (server_A and server_B), On both I store CDR records in MySql. My question: Is there any way how to join CDR records from both servers, when user from server_A call to user from server_B??
1
vote
3 answers

asterisk - which API to use for creating and managing conferences

I want to create a outbound conferencing application using asterisk in windows - the user can enter a few phone numbers and the system calls all the participants and adds them to the conference. I read a little bit about asterisk APIs, and I saw…
barisdad
  • 515
  • 7
  • 19
1
vote
2 answers

Asterisk SIPPeers Permission Denied

Am trying to use asterisk by posting via http to get the peers, and i keep getting permission denied and then the remote server is not accessible or disconnected, though the login action is working fine and the manager.conf persimission is set…
Wesam
  • 21
  • 3
1
vote
2 answers

Asterisk Manager Api events

I am using Elastix along with the Astmanproxy server to run our call center desktop app. This app gathers info such as callerid, number dialed, etc. to help our agents get customer information among other things. This app changes it's background…
ericwindham
  • 201
  • 2
  • 4
  • 9
1
vote
2 answers

PHP sockets, permanent connection to server to receive Events from Asterisk AMI?

I'm looking to write a PHP script to act as a mini "daemon" to receive data from a remote socket. The remote server is an Asterisk VoIP server and I'll be connecting to the Asterisk Management Interface (AMI) in an attempt to receive AMI Event…
batfastad
  • 1,943
  • 3
  • 27
  • 37
1
vote
1 answer

Asterisk AMI Event AgentComplete is incomplete

I'm using AMi to connect to my Asterisk box (18.6.0) and capture some events that i need to process. In particular i need to capture two events, when an agent answer a call in a queue, for this i'm using "Event: AgentConnect" which has a lot of…
Ricardo
  • 121
  • 1
  • 1
  • 6
1
vote
1 answer

can i get more granular ami events for app_fax?

When sending a fax using spandsp/asterisk/app_fax, it would really be nice to see more granular status events being fired. Right now, it just looks like AMI events are fired when the call is started and when the call finishes. I'm looking to get…
Josh Nankin
  • 2,518
  • 4
  • 28
  • 45
1
vote
2 answers

Asterisk AsterNET How to move from parking to queue?

Im using C# AsterNET to manage my Asterisk commands and events, and now I do have a new feature to work on. This is simple (I think) but I'm stucked right now. Scenario I do have two queues, 8100 and 8300, and 2 extensions being 8101 and 8301. When…
Andrew Paes
  • 1,940
  • 1
  • 15
  • 20
1 2
3
14 15