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

How to get all dialer events from Asterisk REST API (ARI)?

I'm making a web application which should be able to monitor calls on my Asterisk server. I can connect to ARI with Javascript WebSocket on URL ws://(host):8088/ari/events?app=dialer and it works. The problem is that I only get events from calls…
demian
  • 93
  • 1
  • 2
  • 6
6
votes
2 answers

Reliably identifying and tracking Asterisk calls using C# and Aster.NET

I have been building a WinForms desktop application using C# that interfaces with Asterisk using Aster.NET (formerly/forked from Asterisk.NET). We're having real trouble reliably identifying and tracking calls that are related to an individual…
iam
  • 137
  • 4
  • 13
4
votes
2 answers

Originate a call with Asterisk - without the originating extension ringing

I have a completely standard installation of Trixbox with 2 SIP extensions set up on it. Both extensions are Snom 370 SIP phones. I can originate a call from one extension to the other using the following CLI command: originate sip/101 extension…
Roland
  • 146
  • 1
  • 1
  • 6
4
votes
2 answers

Asterisk: create user with template via AMI

I need to modify sip.conf with AMI, adding a new user to it. Everything works fine, and I can create a user like this without problems: [1000] secret=pass12 But I have to create user with template like [1000](mytemp) secret=pass12 and I don't know…
JustLogin
  • 1,822
  • 5
  • 28
  • 50
4
votes
5 answers

Asterisk Server Pass Variable from Dialplan to AGI Script

My Dialplan is like this [dial-plan] exten => s,1,Answer() exten => s,n,Noop(exten = ${EXTEN} exten => s,n,Macro(dumpvars) exten => s,n,Macro(record-enable) exten => s,n,AGI(success.php) exten => i,1,Noop(REASON = ${REASON}) exten =>…
Miqdad Ali
  • 6,129
  • 7
  • 31
  • 50
4
votes
1 answer

Asterisk AMI - pickup call

I want to pickup call in Asterisk using AMI. I can originate call, but totally don't know, how to answer the phone... Script for calling: #login sock = socket.socket(af, socktype, proto) sock.connect(sockaddr) sock.send('Action:…
voy
  • 1,568
  • 2
  • 17
  • 28
3
votes
2 answers

Asterisk Dialplan: How to detect when a call has been successfully answered?

I'm having a really hard time figuring out if there is a trigger or a way to continue from the Dial action that allows you to detect if the call is answered. It seems like Dial doesn't respond until hangup, busy, or congested. What action or event…
Jb1128
  • 87
  • 2
  • 10
3
votes
3 answers

How can I work with AMI via cURL?

I have an asterisk server with AMI web enabled on port 8088, prefix asterisk. So my rawman url would be http://myserver:8088/asterisk/rawman I just tried to login and ping with 2 urls…
Loi Dang
  • 408
  • 5
  • 23
3
votes
1 answer

Originating VoIP call using AsterNET in C#

I try doing mConnection.SendAction(new OriginateAction() { Channel = "SIP/201test", Exten = "401", Context = "201", Priority = "1", …
Mike
  • 563
  • 5
  • 15
  • 32
3
votes
1 answer

Managing VoIP calls via AsterNET

I am kind of newbie in VoIP programming. Let's say I have two VoIP phones connected to the same server, and I want to detect when the call fires, caller's ID, call duration, ... etc. I learned about AsterNET, but didn't find any good example to see…
Mike
  • 563
  • 5
  • 15
  • 32
3
votes
2 answers

Call recordings in Asterisk using MixMonitor

I'm just starting out with Asterisk and following the O'Reilly Guide to set up a test Asterisk server. I have set up a VM with CentOS 6.4, which has 1GB RAM and 50 GB HDD. After installation, I set up soft phones successfully on 2 PCs which were…
rahuL
  • 3,330
  • 11
  • 54
  • 79
3
votes
1 answer

How to get a specific peer status in asterisk

Asterisk Call Manager/1.3 .After login I am able to retrieve all peer detail as a string. fwrite($socket, "Action: Command\r\n"); fwrite($socket, "Command: sip show peer ".$sip_no."\r\n\r\n"); I need to know whether the channel is busy or not. How…
Arun Unnikrishnan
  • 2,339
  • 2
  • 25
  • 39
3
votes
2 answers

Not receiving events on Asterisk 11 AMI

I'm a veteran of Asterisk 1.4 and am looking to build a new application on Asterisk 11 (which is currently beta, but is planned to be LTS release some time before I need it.) I can't get Asterisk Manager Interface on 11 to send me any events. (Now,…
Mattie
  • 20,280
  • 7
  • 36
  • 54
2
votes
1 answer

how to get variable value from asterisk with asternet

I use the asterNet for manage event IN asterisk. I need to get value of variable (result) in c# from dialplan query. exten => test,1, NoOp(************ test ****************); same => n,Answer(); same => n,Playback(hellow-world); same =>…
AminRostami
  • 2,585
  • 3
  • 29
  • 45
2
votes
2 answers

How can I get number of active calls from Asterisk Manager Interface Event

I've made connection to asterisk, and managed to get number of active and inactive peers from event PeerStatus, but now i need to get number of active calls and channels and display them. I've tried method to look for ChannelStateDesc=Up but it…
Vedo
  • 976
  • 4
  • 21
1
2 3
14 15