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.

219 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
  • 95
  • 1
  • 1
  • 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
  • 12
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
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,178
  • 1
  • 13
  • 23
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
  • 523
  • 5
  • 12
  • 30
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
  • 2,826
  • 10
  • 46
  • 75
3
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,562
  • 3
  • 22
  • 39
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,231
  • 1
  • 20
  • 37
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,…
zigg
  • 17,690
  • 6
  • 34
  • 52
3
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
  • 5,852
  • 7
  • 28
  • 50
2
votes
1 answer

Originate a call with text to speech message

I use the Asterisk-Manager package for NodeJs https://www.npmjs.com/package/asterisk-manager and have a tape announcement as a text which must be translated via text to speech. When I try to call an outgoing phone number how can I setup the text to…
hrp8sfH4xQ4
  • 2,951
  • 1
  • 18
  • 59
2
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
  • 57
  • 1
  • 7
2
votes
2 answers

How to set AGI variable in Python?

I have next agi script test_agi.py: This script make checking is called number is Really number or not using HLR request (API) import urllib.request import json from pyagi.pyagi import AGI agi = AGI() dst = agi.env["agi_dnid"] url =…
SergeyMoroz
  • 61
  • 1
  • 7
2
votes
1 answer

How to make outgoing call via JAIN-SIP to asterisk

I try to migrate my project from asterisk-ami to SIP protocol. However, I couldn't find any examples to create outgoing call via jain sip. Some documentation mentions project sip-communicator but he is outdated. About project: it's notification…
Vladislav Kysliy
  • 2,668
  • 3
  • 24
  • 37
2
votes
2 answers

Execute Asterisk client command with PHP

I'm trying to execute an Asterisk client command with PHP, to display with html. I used to do it normally. When the server was rebooted, I used to give 777 permissions to the file "/var/run/asterisk/asterisk.ctl" and then I could run a command and…
leirbag
  • 73
  • 1
  • 7
1
2 3
14 15