Re: [Asterisk-java-users] Run a jar file
Brought to you by:
srt
From: Shanavaz E A <sha...@ya...> - 2012-07-17 13:29:24
|
When i run single class script, I am first starting asterisk-java using the command : java -jar asterisk-java.jar Then I am putting the class file in the same folder and its working. Then I replace the class file with the jar file and also update the mapping file. Then stop the asterisk-java process and starts it again. This is the scenario i use to test. But in this case its not calling the main class in the jar file. Any clue ? --- On Tue, 7/17/12, Albert Bonomo <ape...@gm...> wrote: From: Albert Bonomo <ape...@gm...> Subject: Re: [Asterisk-java-users] Run a jar file To: ast...@li... Date: Tuesday, July 17, 2012, 6:53 PM When you use your single class script, there must be some service running listening at port 4573. Probably you have run asterisk-java and left it running before your AGI script runs. asterisk-java reads the mapping file and takes care of everything. When you are working with jar project, your project must listen on this port to get and manage events and AGI script calls. There are many examples of ear projects with NetBeans on the internet. 2012/7/17 Shanavaz E A <sha...@ya...> Dear friends, I have successfully installed asterisk-java, and I am able to run agi scripts using that. I am running asterisk-java and I have put a single class file in the folder and mapped as hello.agi = MyClassFileName and this is working. Now I have added few more class files and used package naming and build a single jar file for this package. I use netbeans to build the proect and the jar file. I have now added mapping as hello.agi = com.mysite.mypackagename.MyClassFileName But this is not working. I am getting this error : agi://127.0.0.1/hello.agi: No script configured for URL 'agi://127.0.0.1/hello.agi' Can somebody please help & guide me to configure properly. Thanks in advance. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users -- (@_@) There are only 10 types of people in the world: Those who understand binary and those who don't @apetob at Twitter -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -----Inline Attachment Follows----- _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |