Re: [Asterisk-java-users] Is it possible to send a custom action ?
Brought to you by:
srt
From: Yves A. <yv...@gm...> - 2014-07-10 09:52:22
|
Hi, sure you can... as usual... several options apply, depending on your skills, objective and environment: 1.) take a look at the sources and learn, how other Actions are designed, and write your own Action-Class... 2.) Use CommandAction Class to execute any CLI Command 3.) If you want to fire your Action from "inside a" Java-AGI-Call, you can use channel.exec() to execute a CLI command. yves Am 10.07.2014 11:14, schrieb przeqpiciel: > Hi everyone, > > Im new here :) Im asking you is it possible to send custom action with > asterisk-java. > In PHP i send like this: > $komenda = "Action: smscommand\r\n"; > $komenda .= "command: gsm send sms 3 $odbiorca \"$tresc\" $id\r\n\r\n"; > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |