Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
298 views

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 ...
syed kumail abbas's user avatar
0 votes
0 answers
205 views

Add PJSIP header on inbound channel

I am trying to add PJSIP header in asterisk in node.js but headers are not setting. await new Promise((resolve, reject) => { incoming.setChannelVar( {variable: 'PJSIP_HEADER(add,X-...
Manik's user avatar
  • 264
0 votes
0 answers
2k views

How to stream back audio using External Media Channel using ARI in asterisk

Working with AsterNET.ARI I am able to expose audio stream from asterisk, using ExternalMedia. Scenario: Call is started and Stasis App is invoked Create ExternalMediaChannel that sends stream to a ...
Flamur Dervishi's user avatar
1 vote
1 answer
850 views

Asterisk ARI Caller id is always Anonymous

I'm trying to make a outgoing call using asterisk and stasis. From my app, i send a simple post to /ari/channels/create, like this: params = { endpoint: `PJSIP/${trunkPrefix}${numberOriginal}@${...
lHumanizado's user avatar
0 votes
1 answer
277 views

Google-speech-api throws EOF error instead of performing audio transcription

In my project I am developing a websocket server in golang which is controlling asterisk channel via ARI and performing live audio transcription on the same channel with google-speech-api. On ...
camilos's user avatar
  • 11
-1 votes
1 answer
886 views

Stasis app not active - Asterisk error when dialing extension

Getting this error. asterisk stasis app not active Dialplan: same => n,Stasis(example) My app name is example.js, I checked to make sure it's calling the app: ari.start('example');
live-love's user avatar
  • 52.2k
0 votes
2 answers
2k views

How to get the dialed number in Stasis app

I am trying to wrap my head around ARI and Asterisk, my goal is to dial from an extension to another. I dialed 5001 from extension 5002. Now in the stasisStart function, I want to create a new channel,...
live-love's user avatar
  • 52.2k
0 votes
1 answer
1k views

Executing Asterisk speech recognition application using AsterNET.ARI

I have a sample dialplan: exten => 1,1,Wait(1) exten => 1,n,SpeechCreate exten => 1,n,SpeechBackground(beep) exten => 1,n,Verbose(0, ${SPEECH_TEXT(0)}) exten => 1,n,Hangup() And I ...
shda's user avatar
  • 734
0 votes
2 answers
251 views

Asterisk integration with custom ERP

One of our customers has an Asterisk phone center and want to integrate it with our ERP. The idea is that Asterisk calls an Oracle database procedure when a phone call is transferred to an extension. ...
Alex Bibiano's user avatar
0 votes
1 answer
755 views

Hang up the call after x seconds after the called party has answered the call using ARI in Asterisk

We've been using Asterisk's Dial plans for quite some time and now we've decided to switch to ARI. I'm wondering is there a way to hang up the call after x seconds after the called party has answered ...
mehrdadep's user avatar
  • 1,019
0 votes
1 answer
1k views

How to get list of sip peers from endpoints with ari-py

It is not clear how to get list of sip peers from ari/endpoints with this library. Examples in repository show actions with channels and bridges but not with endpoints. The JSON response is ...
Kosmo's user avatar
  • 23
0 votes
1 answer
2k views

SignalR, Push notification to connected clients based on event happening makes Hub disposed

I'm trying to push notifications to clients who have connected to SignalR Hub based on related events are happening in Asterisk PBX VOIP server using AsterNet ARI. I can get events using ...
Mehdi's user avatar
  • 598
-1 votes
2 answers
648 views

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 ...
nguoitotkhomaisao's user avatar
0 votes
1 answer
332 views

which event get fired when call does not get picked up?

In case of incoming call, call does not get picked then what will happen to ari channel and what event will get fired that call is disconnected?
sirvisuresh's user avatar
2 votes
1 answer
589 views

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 ...
Devkil39's user avatar
1 vote
3 answers
826 views

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 ...
Nicolas's user avatar
  • 1,276
1 vote
1 answer
850 views

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 ...
Nicolas's user avatar
  • 1,276
2 votes
2 answers
2k views

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'...
Rodrigo Roberto de Almeida's user avatar
2 votes
2 answers
2k views

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); ...
KenD's user avatar
  • 5,308
0 votes
1 answer
1k views

Using Asterisk ARI to determine if agent in queue pause or not

Is it possible to use ARI to determine if a queue member is paused or not? I can't seem to find any documentation stating that its possible. The only way I can see anything related to a pause is by ...
Yamaha32088's user avatar
  • 4,153
0 votes
1 answer
455 views

Event listeners don't seem to be triggering

I am working with the Asterisk ARI Node.js client and would like to listen for certain events and then perform an action. From my understanding after connecting to the server you can setup several ...
Yamaha32088's user avatar
  • 4,153
1 vote
1 answer
5k views

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. ...
Yitzchok Dancziger's user avatar
0 votes
1 answer
1k views

Replacing dialplan with ARI for "dynamic" inbound extensions

I'm experimenting with the ARI interface in Asterisk (v15.5). I've managed to placing and manage outbound calls relatively well, and I'm now trying to tackle inbound calls. I don't have any dialplan ...
KenD's user avatar
  • 5,308
-1 votes
2 answers
1k views

How can I pause/unpause a live recording programmatically on asterisk?

First of all I need to get a list of current live calls and then I need to pause and unpause the live recording pragmatically using asterisk ARI,AMI , anything that can achieve what I need anyone ...
haythamforever's user avatar
5 votes
1 answer
5k views

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 ...
Jason Berryman's user avatar
0 votes
1 answer
257 views

Xamarin Forms and Asterisk integration

I need to develop an application with Xamarin Forms. The application must connect to Asterisk Server. I tried to use AsterNet.ARI library but I have some compatibility error on Droid and iOS projects. ...
Greta's user avatar
  • 121
0 votes
1 answer
2k views

Asterisk ARI initiating a call

I am trying to initiate a call between two local endpoints, a softphone(PJSIP/100) and a harphone(PJSIP/102). Using ARI I have created two channels, with app parameters and put them both into the same ...
user3640553's user avatar
0 votes
1 answer
486 views

How to snoop a channel in asterisk api node.js

I would like to be able to spy a channel with REST api. I found out there is a function for this objective. But i don't know how to implement it. Any help is apreciated
Onur Durmuş's user avatar
-1 votes
1 answer
368 views

how to the callout display number caller with Originate and asterisk?

i have a question. In asterik 11, i callout to a other phone by originate use command: exten=>s,n,Originate(SIP/voiceNetwork/,exten,callout,s,1,30) When the call to called, the call display is ...
langiac's user avatar
  • 337
0 votes
1 answer
271 views

Asterisk bridge dial javascript error

Im trying examples from asterisk ari github.Right now im at brigde-dial example but there is a problem.When i try javascript code it gives following error: usage: node bridge-dial.js endpoint but ...
Çağdaş Öksüztepe's user avatar
1 vote
1 answer
2k views

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 Call: https://...
langiac's user avatar
  • 337
1 vote
1 answer
3k views

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['...
hassan abdi's user avatar
2 votes
1 answer
3k views

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 ...
palkhin's user avatar
  • 23
1 vote
1 answer
1k views

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 ...
Nelson Teixeira's user avatar
-2 votes
1 answer
1k views

How to check and restrict concurrent calls on a number in asterisk php agi?

We have a portal where client sets maximum concurrent call forwarding on a number. First calls come to our IP, we then forward that calls to some numbers(set by client for it). We have to make sure, ...
Anup_Tripathi's user avatar
-1 votes
1 answer
216 views

Asterisk how to dynamic allocate sip account to ip phone

I am new in Asterisk field. I am facing a situation. I have 10 sip accounts and 20 clients (softphones), so how to dynamic allocate those sip account to those clients? Is there any best practices in ...
English learner's user avatar
0 votes
1 answer
698 views

Asterisk: Play the last recorded file?

As I can see, I can use Asterisk cmd monitor to record the call then use the ControlPlayback to play the recorded file. and the default basename is constructed on the channel name plus a number so How ...
English learner's user avatar
-1 votes
2 answers
652 views

Can you login an agent with Asterisk ARI

I'm trying to build an agent app that can have agent controls (login, logout, pause...etc). I now see that Asterisk 13 has an ARI. What I would like to know is how I can send agent commands using the ...
Jason's user avatar
  • 3
-1 votes
1 answer
2k views

Asterisk WebSocket ARI events

I can connect to ws://localhost:8088/ari/events?api_key=user:user&app=hello-world, but i can't connect to ws://localhost:8088/ws. Why? And how i can to control events through ws?
Nick Nick's user avatar
  • 177
1 vote
2 answers
1k views

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 ...
userqwerty1's user avatar
0 votes
2 answers
781 views

How to handle caller id when using Asterisk ARI external to external

Right now, I'm making outgoing calls using Asterisk ARI from my mobile number to another mobile number, using the below request: endpoint=PJSIP/mynumber&extension=1**other_number&...
Software Karma's user avatar
1 vote
1 answer
4k views

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# ...
iam's user avatar
  • 137
6 votes
1 answer
2k views

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 ...
An0nC0d3r's user avatar
  • 1,303