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
1
vote
1 answer

asterisk send event to a web app when the phone ring

I have a hardphone that register to asterisk 11.8. When someone call this phone, information about user input ivr and user phone number is inside asterisk, is it possible to expose these information to the outside app. For example, I have a webapp,…
Thang Pham
  • 38,125
  • 75
  • 201
  • 285
1
vote
2 answers

How to cancel call created with AMI originate

I am wondering if there is an easy way to hangup a channel created with Originate? What I do is following: Call in dialplan triggers Agi; Agi starts AMI: Originate with Channel "SIP/201". Now the extension rings. At answer I can bridge the…
user3497518
  • 11
  • 1
  • 3
1
vote
4 answers

Is there a way to get the ${DEVICE_STATE(SIP/${EXTEN})} output on asterisk AMI before making originate call

I want to create e outbound dialer which will check if a user is available to take call or not before initiating a call from the extension
1
vote
1 answer

Detect connection status to Asterisk via Asterisk Java

Is there a way in Asterisk, how to detect proper status of the manager's connection to the Asterisk? (my point is the notification about failed connection to asterisk) I'm implementing visual indication to our java application (using Asterisk Java…
gurbi
  • 163
  • 2
  • 14
1
vote
1 answer

Char encode in node.js ChildProcess.fork()

I had to move the code from app.js file inside another one and I use childProcess.fork(). Now I have to catch messages from ami-asterisk inside the child process, but I noticed that special char like "à,è,ò,.." are converted into other char like…
Andrea
  • 31
  • 1
  • 4
1
vote
1 answer

How to make inbound calls in asterisk java

I have done outbound calls successfully using asterisk java with XLite software. This time I would like to make inbound calls without XLIte. public class HelloManager { private ManagerConnection managerConnection; public HelloManager()…
SULFIKAR A N
  • 436
  • 4
  • 13
1
vote
2 answers

How to make outbound calls in AsteriskNow using Asterisk AMI with Java

I would like to initiate a call from extension number to another in LAN network. I have done this task through FreePBX GUI. Now I am trying to execute this task by using Asterisk AMI with Java code. Below Java code shows some exception while in…
SULFIKAR A N
  • 436
  • 4
  • 13
1
vote
2 answers

Asterisk - To reduce extension repitition in extensions.conf in a context

I have a very basic extensions.conf with the following context: [LocalPhones] exten => 1001,1,noop(Dialing ${PEX_ONE}) same => n,Macro(DialStartMonitor,${PEX_ONE}) same => n,Dial(SIP/${PEX_ONE},30,mTt) same =>…
rahuL
  • 3,330
  • 11
  • 54
  • 79
1
vote
1 answer

Asterisk - Record calls using MixMonitor for outbound calls

I have a macro set up to record inbound calls on an extension: [macro-DialStartMonitor] ; Calculate the time of the call from "epoch time", format it into yyyy-mm-dd and add the PhoneExt. at the end exten =>…
rahuL
  • 3,330
  • 11
  • 54
  • 79
1
vote
2 answers

Asterisk - Call monitoring for queues

I have set up basic call monitoring for individual extensions in my Asterisk setup. This is what I have done for recording individual calls: [macro-automon] exten => s,1,Set(MONITOR_FILENAME=${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${CALLERID(num)}) …
rahuL
  • 3,330
  • 11
  • 54
  • 79
1
vote
1 answer

compilation error link dyld Symbol

I am back in c++, but i am using a macosx maverick for a project i have to use an external library which is https://github.com/augcampos/asterisk-cpp So, I have compiled the library and got my .dylib Then I have compiled like this a main test: g++…
1
vote
1 answer

AGI on Queue Ringing an Agent in Asterisk?

We can trigger an AGI if an agent attends a call in Queue.Is it possible to trigger an AGI when an agent rings in a Queue?
hks1233
  • 196
  • 1
  • 2
  • 8
1
vote
1 answer

Send Data to Asterisk Manager Interface from Android

I need to authenticate the User, just like whatsApp and RedPhone, before letting them use the Application. For that I need to send the phone number and few other details to the asterisk server so that it could generate a code and send it via GSM SMS…
Harsh Vardhan
  • 675
  • 1
  • 11
  • 24
1
vote
1 answer

Communicating between AMI and AGI

Hii I am making a call from Manager AMI and in my dialPlan the caller will be connected to AGI.I want to send a variable var from AMI to AGI through channel…
user2511713
  • 555
  • 3
  • 7
  • 18
1
vote
2 answers

Asterisk-java for AMI not working correctly

I am an absolute newbee in asterisk. I am trying to use asterisk-java for event listening through AMI. I am currently using the version 11.2.1 asterisk. When I tries to compiles the code as javac -cp asterisk-java-0.3.jar HelloEvents.java it…