Re: [Asterisk-java-users] Help on how to play a audio file in Asterisk(static, located on server si
Brought to you by:
srt
From: Zoumana T. <zou...@gm...> - 2015-01-27 21:26:44
|
Hello, You can achieve this through AMI OriginateAction which will trigger an outgoing call that fall back inside your extension in your code: OriginateAction originateAction = new OriginateAction(); originateAction.setChannel("SIP/trunk/01.....");originateAction.setContext("outgoing");originateAction.setExten(11111);originateAction.setVariable("AUDIO_TO_PLAY_VARIABLE", welcome-audio); in your diaplan: [outgoing]exten => 11111,1,Answer exten => 11111,2,Playback(${AUDIO_TO_PLAY_VARIABLE}) Regards, Zoumana *---* *Zoumana TRAORE* 2015-01-27 19:18 GMT+01:00 Blagoja Chavkoski <ba...@gm...>: > Hi all, > > I want to place a call where I just play one playback file and hangup. > Meaning to use the java api from where I make a action to tell Asterisk to > place call, and to playback some file which already exists on Asterisk > server. > > Is this possible to be done? Do I have to use the agi protocol for this or > can be done with the manager api? > > Tnx for any help! > > Regards > Blaze > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |