Re: [Asterisk-java-users] How can i use this library to make a call and run an audio file on it

2018-11-23 Thread Brandon Haugen
Hey Adriano, I have within the last few months started using Asterisk-Java for a project and you can certainly playback an audio file. There are a couple of things that you will have to think about to determine the best approach for your situation, here is what I can tell you though - If you d

Re: [Asterisk-java-users] How can i use this library to make a call and run an audio file on it

2018-11-23 Thread adriano santos
Hi Brandon! Thank you for your response. Is the example you sent to receive a call and respond with correct audio? What I need to do is originate a call to cell phone and play audio. For now no need for DTMF. Regards, Adriano Santos Em sex, 23 de nov de 2018 às 18:34, Brandon Haugen escreveu:

Re: [Asterisk-java-users] How can i use this library to make a call and run an audio file on it

2018-11-23 Thread Brandon Haugen
Hey Adriano, Yes, the code I shared is showing how to receive a call and respond with audio. I have a scenario where we allow users to initiate a call to themselves (by pressing a button in a Web App) and when they pick up the call, we stream a couple of audio files (one after the other) to give

Re: [Asterisk-java-users] How can i use this library to make a call and run an audio file on it

2018-11-23 Thread adriano santos
Hi! I'm trying to use the management interface to originate a call, but in the moment I can not do play an audio file. The code is something like this: @Slf4j public class OriginateCall { private static final int PORT = 5038; private static final String HOSTNAME = "*.*.*.*"; private static final