Questions tagged [asterisk-ari]

46 questions
5
votes
1 answer

Node ARI Client | Connect method not firing callback?

So, I've started playing with the Asterisk Restful Interface (ARI). I have created a separate express app to do this. I have a correctly configured instance of Asterisk 13 running. I know this because When I go to…
An0nC0d3r
  • 1,265
  • 12
  • 29
4
votes
1 answer

Asterisk ARI - Pass channel to Stasis before Ringing

My goal Pass an incoming call directly to Stasis and allow the app to decide whether to play a ringing or busy tone to the caller. The problem With my ARI app, if I omit the same => n,Ringing line from my dialplan, the Stasis app returns an error if…
Jason Berryman
  • 3,765
  • 1
  • 18
  • 30
2
votes
1 answer

Asterisk Event Device Registration

I am trying to retrieve an event when a device registers an application using ARI. This can be assumed by changing the endpoint state from offline to online. The implementation that I have done in python is: self.client.on_event…
Devkil39
  • 41
  • 5
1
vote
2 answers

Enable TALK_DETECT for channel originated via ARI

I'm trying to figure out a way to enable TALK_DETECT for an outgoing channel, but this does not seem possible for channel which his originated via ARI. I thought about using a pre-dial handler for this, but it only seems possible when using the…
Nicolas
  • 1,007
  • 1
  • 9
  • 21
1
vote
1 answer

Create outbound channel without ringing

I need to create a channel using ARI and put it into stasis before dialling the extension, which according to the documentation is what should be happening. But as soon as I create the channel it starts ringing and goes into stasis only after being…
Nicolas
  • 1,007
  • 1
  • 9
  • 21
1
vote
2 answers

How to get SIP user status with ARI?

I'm trying to make a realtime application with Asterisk 15 ARI, and I need to get all agents/users (sip) status in queue... I need to know if the user has logged in queue, is on pause, in a call... I'm reading the Asterisk ARI docs but not found…
1
vote
2 answers

Increasing timeout on channel originate

Using ARI (C#, AsterNET), I'm creating a channel via the Originate command: var channel = client.Channels.Originate($"SIP/{number}@{destination}", app: appName, callerId: CLI, timeout: timeout); This works fine; however,timeout starts from when…
KenD
  • 4,529
  • 7
  • 43
  • 77
1
vote
1 answer

Asterisk stasis application

I'm a little new on Asterisk ARI (and I love it...), so where ever I look I see the ARI Status application, but I couldn't find the path where the Stasis application should actually be on the server. Can anyone help me with that?
1
vote
1 answer

How to play music during call use Asterisk?

I have a problem: in Asterisk script, i execute a call from A to B by command Dial(SIP/xxx). I want play music during A talking with B. Fuction Dial only support music begin call OR end…
langiac
  • 197
  • 1
  • 2
  • 13
1
vote
1 answer

How can I run a dialplan in Asterisk through AMI?

Our php website always creates conference calls with writing following command in the specific path for Asterisk. /var/spool/asterisk/outgoing/ index.php exec('sudo echo "Channel: SIP/si/'.$_POST['number1'].' Context: DialOut Callerid:…
hassan abdi
  • 316
  • 2
  • 11
1
vote
1 answer

Create, redirect... calls using AsterNET.ARI

I have installed AsteriskNOW distribution with freePBX. I'm trying to implement autodialer to our existing software. I am monitoring calls wihtout any problems. Only thing that works is to hang up call. When i try to originate, redirect, hold or…
palkhin
  • 13
  • 4
1
vote
1 answer

Creating a conference on Asterisk using ARI with Node.js

I was given a task to create a conference in Asterisk using ARI with Node.js. The objective is create a conference room and send email invitations so people can click and enter de conference room. I also need a admin web interface to show who's…
Nelson Teixeira
  • 5,856
  • 4
  • 31
  • 60
1
vote
2 answers

Asterisk. I'm using ARI to collect events, how do I group events into single customer interactions from start to finish?

I'm subscribed to events listed here under Event using ARI https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+REST+Data+Models#Asterisk13RESTDataModels-Event I have multiple calls at the same time and because of this getting a lot of different…
userqwerty1
  • 807
  • 8
  • 22
1
vote
1 answer

Using WebSockets to monitor calls on Asterisk 13

I've recently upgraded our PBX to Asterisk 13, in the hope that the new REST API and WebSockets support would solve some problems we were having with tracking calls via the AMI. We're building a C# application that will sit in the Windows tool tray…
iam
  • 137
  • 4
  • 12
1
vote
0 answers

Are there any restrictions on Azure web sockets?

On azure I have a website with a service (webjob) that runs continuously, connecting to a web socket that's hosted by a linux VM, also on Azure. (for reference, the service is Asterisk ARI). Most of the time it runs fine, but periodically…
Paul
  • 8,821
  • 11
  • 56
  • 103
1
2 3 4