Questions tagged [asterisk-java]

The Asterisk-Java package consists of a set of Java classes that allow you to easily build Java applications that interact with an Asterisk PBX Server.

Asterisk is a free and open source framework for building communications applications and is sponsored by Digium.

24 questions
2
votes
1 answer

Asterisk-Java can't find fastagi-mapping.properties

I'm using Asterisk and I'd like to emit a call from my Java app and then use an AGI script to control what happens. So I've got a first class that contacts the Asterisk server and uses an OriginateAction to start the call (this works well) and an…
Thomas Kowalski
  • 1,995
  • 4
  • 20
  • 42
2
votes
1 answer

Asterisk-Java AGI. DefaultAgiServer freez while startup method is running

Trying use agi to listen asterisk. But after startup method is running, my application is freezing. There is no error appears... My spring bean: @Bean(name = "agi") public DefaultAgiServer getAsteriskAgi() throws Exception { DefaultAgiServer…
Aleksei
  • 165
  • 8
2
votes
2 answers

Entity save() Method Hangs with No Error

I am facing an issue where my Simple AGI Application hangs when saving/updating an entity and no errors are thrown. Select query / methods from Repository work as expected without any errors. I am using Spring Boot with the Spring Data JPA which…
1
vote
1 answer

Is there any way to do conference call with dial option using java OriginateAction

This is happening right now step1: A party Calling using OriginateAction and not passing dialoptions like tTG so that channel do not have transfer functionality. step2: B party Calling using dail() method where I am passing dailoptions like…
1
vote
1 answer

Android SIP DTMF

I have set up my asterisk sip server in such a way where I would transfer a call by first dialling "*2",then the server would prompt me asking for the number to which I want to transfer the call and then I could dial the number. I want to make a…
1
vote
1 answer

Asterisk DIALSTATUS returns null

I'm using Asterisk-Java to work with my Asterisk server. In my AGI script, I'd like to wait for the call to be answered to answer on the AGI side. To do this, I'd like to use the DIALSTATUS channel variable. Though System.out.println("DIALSTATUS…
Thomas Kowalski
  • 1,995
  • 4
  • 20
  • 42
1
vote
1 answer

How long Asterisk wait for an AGI call?

I have a simple dialplan in Asterisk 13 exten => 800,1,Answer() ;AGI do something and return AUDIO_FILE tobe played same => n,Agi(agi://localhost:1000/doAlotOfThing.agi) same => n,Playback(${AUDIO_FILE} same => n,Hangup() I was expect Asterisk…
duccom
  • 134
  • 2
  • 16
1
vote
0 answers

Asterisk-Java shutdown after connect

I am using Asterisk with asterisk-java library to detect events. The follwoing code excerpt shows my usage. The connection should stay open, but it just closes after initializing when i am not using a endless loop. How can i keep the connection till…
alex
  • 5,516
  • 2
  • 36
  • 60
0
votes
1 answer

Asterisk-Java Unable to load Properties file

I'm developing a very simple Asterisk-Java IVR based program that greets the caller, retrieves some information from a web service, reads up the retrieved data to the caller, and finally hangs up. What steps I followed: Added the following line is…
Felipe La Rotta
  • 343
  • 3
  • 13
0
votes
1 answer

How to run FreePBX for the first time?

I'm new to FreePBX, I followed info here : https://github.com/asterisk-java/asterisk-java/wiki/Getting-Started And my settings class looks like this : package org.asteriskjava.examples.activities; import…
Frank
  • 30,590
  • 58
  • 161
  • 244
0
votes
1 answer

Asterisk SIP - Dial in parallel

I've searched the documentations of asterisk and could not find any info of the limit of parallel destinations when dialing in parallel. exten => n,Dial(number1&number2&number3&...],other-options) Does anyone know what is the limitation in the…
dinoooze
  • 5
  • 2
0
votes
0 answers

Getting error when sending command action

In latest snap-shot of asterisk-java lib (ver-3.0.2) when sending wrapper action of CommandAction through AsteriskPBX i get an error of "invalid command" no matter what command is passed. In a particular case, I send "queue show".It works with…
0
votes
1 answer

RTP Traffic access via any Asterisk API

I am new to VOIP - please excuse. I am trying to get access to both the actual VOIP SIP header AND RTP traffic using the "asterisk-java" library. I can get access to the SIP header via the FAST AGI, so that is OK and great. Now I want to get access…
0
votes
1 answer

Asterisk-Java define Asterisk version programmatically

I'm using Asterisk Java v 2.0.4. I'm using ManagerConnection to connect to a Grandstream UCM6202 that is based on a Asterisk 13 version. When I run my application I get this log: main] o.a.m.internal.ManagerConnectionImpl :…
drenda
  • 5,846
  • 11
  • 68
  • 141
0
votes
1 answer

How to get list of ongoing calls in Asterisk Java?

I was wondering, how can one get the list of ongoing calls in Asterisk when using Asterisk-Java? It is needed when e.g. restarting ManagerAPI and I would like to display all the calls, which are currently running on Asterisk. Previously it was done…
gurbi
  • 163
  • 2
  • 14
1
2