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
0
votes
1 answer

What is the meaning of "Presentation Allowed, Not Screened" prompt from Asterisk AMI event?

When I listen to events from Asterisk AMI (port 5038), I receive the following event: Events: NewCallerid Privilege: call,all Channel: DAHDI/9-1 CallerIDNum: 12345678 CallerIDName: Uniqueid: 1303743360.356 CID-CallingPres: 0 (Presentation Allowed,…
Chau Chee Yang
  • 18,422
  • 16
  • 68
  • 132
0
votes
1 answer

Asterisk - Make a call inside a conference with ringtone

I'm trying to make a call inside a running conference and hear the ringtone. *Note: the conference is already running I have only the admin inside. I already tried different approaches to make the call without success 1) Originate: channel originate…
Fraga
  • 1,361
  • 2
  • 15
  • 47
0
votes
1 answer

Asterisk AMI returning incorrect data

When running: asterisk*CLI>queue show from the terminal I get the expected output (in this case I am expecting to get A:2 within the returned information. But when I connect to AMI via a PHP socket on the same server I get A:0 (the…
MemUya
  • 347
  • 3
  • 13
0
votes
1 answer

Can not Connected to Asterisk AMI from Laravel Controller

I have code like this $asm = new AGI_AsteriskManager; if(!($asm->connect('192.168.1.14','admin','123'))){ echo "can not connect to AMI"; exit; }else { echo 'AMI connected'; } When I use this code on native PHP, It's show me AMI…
paranoid
  • 6,799
  • 19
  • 49
  • 86
0
votes
1 answer

Asterisk-java. Queues action

Help me please with the question: I need to get information about the queue (the best option would be for a particular queue and all queues). I use the asterisk-Java 2.0.3 library. For information about a particular queue, I can send the action -…
titaniche
  • 197
  • 1
  • 1
  • 10
0
votes
1 answer

Asterisk and Java : Park action don't return parking slot

I have a Java application that interacts with an Elastix server. I'm using asterisk-java library. I can park someone and get the Asterisk Manager Interface's response but it is incomplete. This response give me those info…
Gabriel
  • 163
  • 1
  • 1
  • 15
0
votes
1 answer

Call an outgoing number using asterisk

I have an ATA connected to my hardline. I am trying to setup an API that will use AMI to allow my user to press a button, and make a call to a given cellphone number, and then play an audio to it. I have been able to place calls to my cellphone by…
Amit
  • 3,952
  • 7
  • 46
  • 80
0
votes
1 answer

Ask a phone to do one outgoing call

I am trying to get a solution to ask one my connected phone (SIP) to call an another one. I can easily do this with an originate via one AMI request, but I have one problem : The display on my sip phone always show "incomming call". There is one…
Manticore
  • 441
  • 5
  • 24
0
votes
1 answer

Device_state function return the status inuse instead of onhold in AMI

I am getting SIP/Peer status using getvar action in AMI. It return INUSE status once the call answered and it also return INUSE when the call in hold. How to get the ONHOLD status.
vaishali
  • 325
  • 2
  • 11
0
votes
1 answer

Asterisk call recording in single file for both channels

Currently asterisk is recording call in two separate wav files for both in and out channels and then merging them into one file. This merging is taking some time so we want to eliminate it. Is there any way in which Asterisk by default create only…
0
votes
1 answer

Asterisk AMI set DND ON and OFF programatically

I am trying to send an AMI command to asterisk and set the specific extension DND status on and off. Action: DBPut Family: DND Key: SIP/xxx Val: "YES" When I use the command above I get response: success, but the extension is still normally…
threesixnine
  • 1,733
  • 7
  • 30
  • 56
0
votes
1 answer

Asterisk run script on Phone Answer and Outgoing Call

I'm trying to make my Asterisk run a script whenever a certain phone (Sip Phone) answers or makes an outgoing call and when it ends that call. The purpose of that is to automatically mute my TV when a call is done with the phone in the same…
Flole
  • 55
  • 8
0
votes
1 answer

Error connecting to ami: Connection refused

I am trying to connect remotely on my Free PBX AMI manager but I always receive an error of "Error connecting to ami: Connection refused" I already configured my manager.conf [general] enabled = yes webenabled = yes port = 5038 httptimeout =…
0
votes
1 answer

Recording ChanSpy in Asterisk

One call-center needs to play music during phone calls on demand and it should be recorded. So the auto dialing program makes a call through local channel: [dialout] exten => _XXXXXXXXXXX,1,Dial(SIP/${provider}/${EXTEN}) Then when answered it…
Dr. Chu
  • 1
  • 2
0
votes
1 answer

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 can i playback the last call? for example: I…