Thread: Re: [Asterisk-java-users] classpath not found error
Brought to you by:
srt
From: <dwi...@aa...> - 2008-01-23 13:38:55
|
<html><body>Hello Gopal.<br><br>I just run my HelloAgiScript in the directory with the asterisk-java-0.3.1.jar<br><br>/usr/bin/java -cp asterisk-java-0.3.1.jar:. org.asteriskjava.fastagi.DefaultAgiServer<br><br>And make sure you have the fastagi-mapping.properties file in the same directory as well,<br>And it should look like this.<br><br>hello.agi = HelloAgiScript<br><br>Hope this helps.<br><br>Best Regards,<br>Danny Williams JR<br>Act As One Technologies<br><br> <blockquote webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px;"> -------- Original Message --------<br> Subject: [Asterisk-java-users] classpath not found error<br> From: "Gopal krishnan" <gop...@pe...><br> Date: Wed, January 23, 2008 5:40 am<br> To: ast...@li...<br> <br> Hi,<br><br> I am using asteriskjava 0.3.1, when I tried the HelloAgi example in the url <a href="http://asterisk-java.org/development/tutorial.html" target="_blank">http://asterisk-java.org/development/tutorial.html</a> it was working fine, in the same page Manager API programs are there, HelloManager, HelloEvents, I tried both of them, but i am getting the following error in fastagi console, <br><br>Error:<br>SEVERE: Unable to create AgiScript instance of type HelloManager: Class<br>does not implement the AgiScript interface<br>Jan 23, 2008 4:13:24 PM org.asteriskjava.fastagi.AbstractMappingStrategy<br>createA giScriptInstance <br>SEVERE: Unable to create AgiScript instance of type hello.agi: Class not<br>found, make sure the class exists and is available on the CLASSPATH<br>Jan 23, 2008 4:13:24 PM<br>org.asteriskjava.fastagi.internal.AgiConnectionHandler r un<br>SEVERE: No script configured for URL 'agi://localhost/hello.agi?user=5101'<br>(scri pt 'hello.agi')<br><br>Can you please help me on this.<br clear="all"><br>-- <br>Thank you with regards,<br>Gopal, <br>PeopleTech Systems Private Limited<br><a href="http://www.peopletech.co.in" target="_blank">www.peopletech.co.in </a> <hr>-------------------------------------------------------------------------<br> This SF.net email is sponsored by: Microsoft<br> Defy all challenges. Microsoft(R) Visual Studio 2008.<br> <a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><hr>_______________________________________________<br> Asterisk-java-users mailing list<br> <a href="http://email.secureserver.net/pcompose.php#Compose" onclick="Popup.composeWindow('pcompose.php?sendto=Asterisk-java-users%40lists.sourceforge.net'); return false;">Asterisk-java-users<b></b>@lists.sourceforge.net</a><br> <a href="https://lists.sourceforge.net/lists/listinfo/asterisk-java-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/asterisk-java-users</a><br> </blockquote></body></html> |
From: <dwi...@aa...> - 2008-01-23 17:00:29
|
<html><body>Hello Martin.<br><br>Yeah right, should have asked him for his code right?<br><br>I'm gonna post some code.. check this Gopal.<br><br>//Example code//<br><br>import java.io.*;<br>import java.util.*;<br>import java.sql.*;<br>import org.asteriskjava.fastagi.*;<br><br>public class HelloAgiScript extends BaseAgiScript<br>{<br> option = request.getExtension();<br> if(option.equals("1350"))<br> {<br> answer();<br> streamFile("gsm/0-intro");<br> }<br> else<br> {<br> streamFile("vm-sorry");<br> }<br>}<br><br>Best Regards,<br>Danny Williams JR<br>Act As One Technologies<br><br> <blockquote webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px;"> -------- Original Message --------<br> Subject: Re: [Asterisk-java-users] classpath not found error<br> From: "Martin Smith" <ma...@be...><br> Date: Wed, January 23, 2008 9:19 am<br> To: <ast...@li...><br> <br> Does your Hello class extend the Base class or implement the correct<br> interface?<br> <br> The example has: "public class HelloAgiScript extends BaseAgiScript"<br> <br> Does yours? If yes, can we see it? Also, how do you run the Manager<br> script?<br> <br> Your error: "Error: SEVERE: Unable to create AgiScript instance of type<br> HelloManager: Class does not implement the AgiScript interface"<br> <br> Like the tutorial says, you should be using a command line for the Agi<br> script like:<br> $ java -cp asterisk-java.jar:. org.asteriskjava.fastagi.DefaultAgiServer<br> <br> AND for the Manager one, with a main method of your own design.<br> <br> Please give us more information.<br> <br> <br> Martin Smith, Systems Developer<br> <a href="http://email.secureserver.net/pcompose.php#Compose" onclick="Popup.composeWindow('pcompose.php?sendto=martins%40bebr.ufl.edu'); return false;">martins<b></b>@bebr.ufl.edu</a><br> Bureau of Economic and Business Research<br> University of Florida<br> (352) 392-0171 Ext. 221 <br> <br> <br> <br> <br> ________________________________<br> <br> From: <a href="http://email.secureserver.net/pcompose.php#Compose" onclick="Popup.composeWindow('pcompose.php?sendto=asterisk-java-users-bounces%40lists.sourceforge.net'); return false;">asterisk-java-users-bounces<b></b>@lists.sourceforge.net</a><br> [mailto:<a href="http://email.secureserver.net/pcompose.php#Compose" onclick="Popup.composeWindow('pcompose.php?sendto=asterisk-java-users-bounces%40lists.sourceforge.net'); return false;">asterisk-java-users-bounces<b></b>@lists.sourceforge.net</a>] On Behalf Of<br> Gopal krishnan<br> Sent: Wednesday, January 23, 2008 7:41 AM<br> To: <a href="http://email.secureserver.net/pcompose.php#Compose" onclick="Popup.composeWindow('pcompose.php?sendto=asterisk-java-users%40lists.sourceforge.net'); return false;">asterisk-java-users<b></b>@lists.sourceforge.net</a><br> Subject: [Asterisk-java-users] classpath not found error<br> <br> <br> Hi,<br> <br> I am using asteriskjava 0.3.1, when I tried the HelloAgi<br> example in the url <a href="http://asterisk-java.org/development/tutorial.html" target="_blank">http://asterisk-java.org/development/tutorial.html</a> it<br> was working fine, in the same page Manager API programs are there,<br> HelloManager, HelloEvents, I tried both of them, but i am getting the<br> following error in fastagi console, <br> <br> Error:<br> SEVERE: Unable to create AgiScript instance of type<br> HelloManager: Class<br> does not implement the AgiScript interface<br> Jan 23, 2008 4:13:24 PM<br> org.asteriskjava.fastagi.AbstractMappingStrategy<br> createA giScriptInstance <br> SEVERE: Unable to create AgiScript instance of type hello.agi:<br> Class not<br> found, make sure the class exists and is available on the<br> CLASSPATH<br> Jan 23, 2008 4:13:24 PM<br> org.asteriskjava.fastagi.internal.AgiConnectionHandler r un<br> SEVERE: No script configured for URL<br> 'agi://localhost/hello.agi?user=5101'<br> (scri pt 'hello.agi')<br> <br> Can you please help me on this.<br> <br> -- <br> Thank you with regards,<br> Gopal, <br> PeopleTech Systems Private Limited<br> <a href="http://www.peopletech.co.in" target="_blank">www.peopletech.co.in</a> <br> <br> <br> -------------------------------------------------------------------------<br> This SF.net email is sponsored by: Microsoft<br> Defy all challenges. Microsoft(R) Visual Studio 2008.<br> <a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br> _______________________________________________<br> Asterisk-java-users mailing list<br> <a href="http://email.secureserver.net/pcompose.php#Compose" onclick="Popup.composeWindow('pcompose.php?sendto=Asterisk-java-users%40lists.sourceforge.net'); return false;">Asterisk-java-users<b></b>@lists.sourceforge.net</a><br> <a href="https://lists.sourceforge.net/lists/listinfo/asterisk-java-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/asterisk-java-users</a><br> </blockquote></body></html> |
From: <dwi...@aa...> - 2008-01-24 14:43:12
|
<html><body>Hello Gopal,<br><br>Show us the code man.<br>Easier to fix if we can see what you're trying to accomplish.<br>Just remove any sensitive info (username/passwords/ip's) and post it!.<br><br>Best Regards,<br>Danny Williams JR<br>Act As One Technologies<br><br> <blockquote webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px;"> -------- Original Message --------<br> Subject: Re: [Asterisk-java-users] classpath not found error<br> From: "Gopal krishnan" <gop...@pe...><br> Date: Wed, January 23, 2008 10:31 pm<br> To: ast...@li...<br> <br> Hi Martin / William,<br><br> thanks for the reply.<br> The example "Public class HelloAgiScript extends BaseAgiScript" is working fine and we are getting the output in the command line <br>"$ java -cp asterisk-java.jar: . org.asteriskjava.fastagi.DefaultAgiServer"<br> by initiating the call with "exten => 1300,1,Agi(agi://localhost/hello.agi)"<br><br> For the manager script I am initiating the Java program like this<br> "exten => 1300,1,Agi(agi://localhost/hello.agi)" and in the command line interface we are getting the error<br><br>"Error: SEVERE: Unable to create AgiScript instance of type<br>HelloManager: Class does not implement the AgiScript interface" <br><br>Since we tested both examples given in the site <a href="http://asterisk-java.org/development/tutorial.html" target="_blank">http://asterisk-java.org/development/tutorial.html</a> HelloManager and HelloEvent<br><br> I think that I need to run the manager script in different manner, since we need to login in Asterisk console. <br><br> Please let me know how I need to run the manager script.<br><br><div class="gmail_quote">On Jan 23, 2008 9:49 PM, Martin Smith <<a href="mailto:ma...@be..." target="_blank" _onclick="Popup.composeWindow('pcompose.php?sendto=martins%40bebr.ufl.edu');; return false;">ma...@be...</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Does your Hello class extend the Base class or implement the correct<br>interface?<br><br>The example has: "public class HelloAgiScript extends BaseAgiScript"<br><br>Does yours? If yes, can we see it? Also, how do you run the Manager <br>script?<br><br>Your error: "Error: SEVERE: Unable to create AgiScript instance of type<br><div class="Ih2E3d">HelloManager: Class does not implement the AgiScript interface"<br><br></div>Like the tutorial says, you should be using a command line for the Agi <br>script like:<br>$ java -cp asterisk-java.jar:. org.asteriskjava.fastagi.DefaultAgiServer<br><br>AND for the Manager one, with a main method of your own design.<br><br>Please give us more information.<br><br><br>Martin Smith, Systems Developer <br><a href="mailto:ma...@be..." target="_blank" _onclick="Popup.composeWindow('pcompose.php?sendto=martins%40bebr.ufl.edu');; return false;">ma...@be...</a><br>Bureau of Economic and Business Research<br>University of Florida<br>(352) 392-0171 Ext. 221<br><br><br><br><br>________________________________<br><br> From: <a href="mailto:ast...@li..." target="_blank" _onclick="Popup.composeWindow('pcompose.php?sendto=asterisk-java-users-bounces%40lists.sourceforge.net');; return false;">ast...@li...</a><br>[mailto:<a href="mailto:ast...@li..." target="_blank" _onclick="Popup.composeWindow('pcompose.php?sendto=asterisk-java-users-bounces%40lists.sourceforge.net');; return false;">ast...@li... </a>] On Behalf Of<br>Gopal krishnan<br> Sent: Wednesday, January 23, 2008 7:41 AM<br><div class="Ih2E3d"> To: <a href="mailto:ast...@li..." target="_blank" _onclick="Popup.composeWindow('pcompose.php?sendto=asterisk-java-users%40lists.sourceforge.net');; return false;">ast...@li... </a><br></div><div class="Ih2E3d"> Subject: [Asterisk-java-users] classpath not found error<br><br><br></div><div><div></div><div class="Wj3C7c"> Hi,<br><br> I am using asteriskjava 0.3.1, when I tried the HelloAgi <br>example in the url <a href="http://asterisk-java.org/development/tutorial.html" target="_blank">http://asterisk-java.org/development/tutorial.html</a> it<br>was working fine, in the same page Manager API programs are there, <br>HelloManager, HelloEvents, I tried both of them, but i am getting the<br>following error in fastagi console,<br><br> Error:<br> SEVERE: Unable to create AgiScript instance of type<br>HelloManager: Class<br> does not implement the AgiScript interface<br> Jan 23, 2008 4:13:24 PM<br>org.asteriskjava.fastagi.AbstractMappingStrategy<br> createA giScriptInstance<br> SEVERE: Unable to create AgiScript instance of type hello.agi:<br>Class not<br> found, make sure the class exists and is available on the<br>CLASSPATH<br> Jan 23, 2008 4:13:24 PM<br> org.asteriskjava.fastagi.internal.AgiConnectionHandler r un<br> SEVERE: No script configured for URL <br>'agi://localhost/hello.agi?user=5101'<br> (scri pt 'hello.agi')<br><br> Can you please help me on this.<br><br> --<br> Thank you with regards,<br> Gopal,<br> PeopleTech Systems Private Limited <br> <a href="http://www.peopletech.co.in" target="_blank">www.peopletech.co.in</a><br><br><br></div></div><div><div></div><div class="Wj3C7c">------------------------------------------------------------------------- <br>This SF.net email is sponsored by: Microsoft<br>Defy all challenges. Microsoft(R) Visual Studio 2008.<br><a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ </a><br>_______________________________________________<br>Asterisk-java-users mailing list<br><a href="mailto:Ast...@li..." target="_blank" _onclick="Popup.composeWindow('pcompose.php?sendto=Asterisk-java-users%40lists.sourceforge.net');; return false;">Ast...@li...</a><br><a href="https://lists.sourceforge.net/lists/listinfo/asterisk-java-users" target="_blank"> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users</a><br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Thank you with regards,<br>Gopal,<br>PeopleTech Systems Private Limited<br><a href="http://www.peopletech.co.in" target="_blank"> www.peopletech.co.in</a> <hr>-------------------------------------------------------------------------<br> This SF.net email is sponsored by: Microsoft<br> Defy all challenges. Microsoft(R) Visual Studio 2008.<br> <a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><hr>_______________________________________________<br> Asterisk-java-users mailing list<br> <a href="http://email.secureserver.net/pcompose.php#Compose" onclick="Popup.composeWindow('pcompose.php?sendto=Asterisk-java-users%40lists.sourceforge.net'); return false;">Asterisk-java-users<b></b>@lists.sourceforge.net</a><br> <a href="https://lists.sourceforge.net/lists/listinfo/asterisk-java-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/asterisk-java-users</a><br> </blockquote></body></html> |
From: Gopal k. <gop...@pe...> - 2008-01-25 08:11:06
|
Hi William, I am just running the example only, not a customized code. On Jan 24, 2008 8:13 PM, <dwi...@aa...> wrote: > Hello Gopal, > > Show us the code man. > Easier to fix if we can see what you're trying to accomplish. > Just remove any sensitive info (username/passwords/ip's) and post it!. > > Best Regards, > Danny Williams JR > Act As One Technologies > > -------- Original Message -------- > Subject: Re: [Asterisk-java-users] classpath not found error > From: "Gopal krishnan" <gop...@pe...> > Date: Wed, January 23, 2008 10:31 pm > To: ast...@li... > > Hi Martin / William, > > thanks for the reply. > The example "Public class HelloAgiScript extends BaseAgiScript" is > working fine and we are getting the output in the command line > "$ java -cp asterisk-java.jar: . org.asteriskjava.fastagi.DefaultAgiServer > " > by initiating the call with "exten => > 1300,1,Agi(agi://localhost/hello.agi)" > > For the manager script I am initiating the Java program like this > "exten => 1300,1,Agi(agi://localhost/hello.agi)" and in the command line > interface we are getting the error > > "Error: SEVERE: Unable to create AgiScript instance of type > HelloManager: Class does not implement the AgiScript interface" > > Since we tested both examples given in the site > http://asterisk-java.org/development/tutorial.html HelloManager and > HelloEvent > > I think that I need to run the manager script in different man ner, since > we need to login in Asterisk console. > > Please let me know how I need to run the manager script. > > On Jan 23, 2008 9:49 PM, Martin Smith <ma...@be...> wrote: > > > Does your Hello class extend the Base class or implement the correct > > interface? > > > > The example has: "public class HelloAgiScript extends BaseAgiScript" > > > > Does yours? If yes, can we see it? Also, how do you run the Manager > > script? > > > > Your error: "Error: SEVERE: Unable to create AgiScript instance of type > > HelloManager: Class does not implement the AgiScript interface" > > > > Like the tutorial says, you should be using a co mmand line for the Agi > > script like: > > $ java -cp asterisk-java.jar:. org.asteriskjava.fastagi.DefaultAgiServer > > > > AND for the Manager one, with a main method of your own design. > > > > Please give us more information. > > > > > > Martin Smith, Systems Developer > > ma...@be... > > Bureau of Economic and Business Research > > University of Florida > > (352) 392-0171 Ext. 221 > > > > > > > > > > ________________________________ > > > > From: ast...@li... > > [mailto:ast...@li... ] On Behalf Of > > Gopal krishnan > > Sent: Wednesday, January 23, 2008 7:41 AM > > To: ast...@li... > > Subject: [Asterisk-java-users] classpath not found error > > > > > > Hi, > > > > I am using asteriskjava 0.3.1, when I tried the HelloAgi > > example in the url http://asterisk-jav a.org/development/tutorial.html<http://asterisk-java.org/development/tutorial.html>it > > was working fine, in the same page Manager API programs are there, > > HelloManager, HelloEvents, I tried both of them, but i am getting the > > following error in fastagi console, > > > > Error: > > SEVERE: Unable to create AgiScript instance of type > > HelloManager: Class > > does not implement the AgiScript interface > > Jan 23, 2008 4:13:24 PM > > org.asteriskjava.fastagi.AbstractMappingStrategy > > createA giScriptInstance > > SEVERE: Unable to create AgiScript instance of type hello.agi: > > Class not > > found, make sure the class exists and is available on the > > CLASSPATH > > Jan 23, 2008 4:13:24 PM > > org.asteriskjava.fastagi.internal.AgiConnectionHandler r un > > &nb sp; SEVERE: No script configured for URL > > 'agi://localhost/hello.agi?user=5101' > > (scri pt 'hello.agi') > > > > Can you please help me on this. > > > > -- > > Thank you with regards, > > Gopal, > > PeopleTech Systems Private Limited > > www.peopletech.co.in > > > > > > ------------------------------------------------------------------------- > > > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > -- > Thank you with regards, > Gopal, > PeopleTech Systems Private Limited > www.peopletech.co.in > ------------------------------ > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------ > _______________________________________________ > Asterisk-java-users mailing list > Asterisk-java-users**@lists.sourceforge.net<http://email.secureserver.net/pcompose.php#Compose> > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- Thank you with regards, Gopal, PeopleTech Systems Private Limited www.peopletech.co.in |
From: <dwi...@aa...> - 2008-01-27 01:00:10
|
<html><body>Gopal,<br><br>Look man, you'd be saving everyone alot of time and headache if you would just post the code<br>as it is in the file.<br><br>It is alot easier to fix things if we see how you have it.. not just your reference to the example on the website.<br><br>Best Regards,<br>Danny Williams JR<br>Act As One Technologies.<br><br><br> <blockquote webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px;"> -------- Original Message --------<br> Subject: Re: [Asterisk-java-users] classpath not found error<br> From: "Gopal krishnan" <gop...@pe...><br> Date: Fri, January 25, 2008 1:12 am<br> To: ast...@li...<br> <br> Hi Martin / William,<br><br> The code is working by initiating the program with the java -classpath command with the root path of the java program. So thanks for your updates. I will get back to you with customized code if any error i am facing. <br> <br> Thank you very much for your help.<br><br><div class="gmail_quote">On Jan 24, 2008 8:40 PM, Martin Smith <<a href="mailto:ma...@be..." target="_blank" _onclick="Popup.composeWindow('pcompose.php?sendto=martins%40bebr.ufl.edu');; return false;">ma...@be...</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div> <div dir="ltr" align="left"><span><font face="Arial" size="2">Manager != Agi. A manager program cannot be an agi script. They are totally distinct ways of interacting with Asterisk (right now, anyway).</font></span></div> <div dir="ltr" align="left"><span><font face="Arial" size="2"></font></span> </div> <div dir="ltr" align="left"><span><font face="Arial" size="2">You cannot call a manager script through AGI; Manager scripts are event driven, and require a main method to setup an event processing loop.</font></span></div> <div dir="ltr" align="left"><span><font face="Arial" size="2"></font></span> </div> <div dir="ltr" align="left"><span><font face="Arial" size="2">The example of a manager script clearly contains a main() method and is not initiated from AGI. Please re-check the manager example and make a main method. Manager script connections to Asterisk are initiated BY the manager script, and AGI script connections to Asterisk are initiated BY the dialplan inside Asterisk.</font></span></div> <div dir="ltr" align="left"><span><font face="Arial" size="2"></font></span> </div> <div dir="ltr" align="left"><span><font face="Arial" size="2">Let us know if you're still stuck.</font></span></div><div class="Ih2E3d"> <div> </div> <div align="left"><font size="2">Martin Smith, Systems Developer<br><a href="mailto:ma...@be..." _onclick="Popup.composeWindow('pcompose.php?sendto=martins%40bebr.ufl.edu');; return false;" target="_blank">ma...@be...</a><br>Bureau of Economic and Business Research<br>University of Florida<br>(352) 392-0171 Ext. 221</font> </div> <div> </div><br> </div><blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-left: 5px; margin-left: 5px; margin-right: 0px;"> <div dir="ltr" align="left" lang="en-us"> <hr> <font face="Tahoma" size="2"><div class="Ih2E3d"><b>From:</b> <a href="mailto:ast...@li..." _onclick="Popup.composeWindow('pcompose.php?sendto=asterisk-java-users-bounces%40lists.sourceforge.net');; return false;" target="_blank">ast...@li...</a> [mailto:<a href="mailto:ast...@li..." _onclick="Popup.composeWindow('pcompose.php?sendto=asterisk-java-users-bounces%40lists.sourceforge.net');; return false;" target="_blank">ast...@li...</a>] <b>On Behalf Of </b>Gopal krishnan<br></div><b>Sent:</b> Thursday, January 24, 2008 12:31 AM<div class="Ih2E3d"><br><b>To:</b> <a href="mailto:ast...@li..." _onclick="Popup.composeWindow('pcompose.php?sendto=asterisk-java-users%40lists.sourceforge.net');; return false;" target="_blank">ast...@li...</a><br></div><b>Subject:</b> Re: [Asterisk-java-users] classpath not found error<br></font><br></div><div><div></div><div class="Wj3C7c"> <div></div>Hi Martin / William,<br><br> thanks for the reply.<br> The example "Public class HelloAgiScript extends BaseAgiScript" is working fine and we are getting the output in the command line <br>"$ java -cp asterisk-java.jar: . org.asteriskjava.fastagi.DefaultAgiServer"<br> by initiating the call with "exten => 1300,1,Agi(agi://localhost/hello.agi)"<br><br> For the manager script I am initiating the Java program like this<br>"exten => 1300,1,Agi(agi://localhost/hello.agi)" and in the command line interface we are getting the error<br><br>"Error: SEVERE: Unable to create AgiScript instance of type<br>HelloManager: Class does not implement the AgiScript interface" <br><br>Since we tested both examples given in the site <a href="http://asterisk-java.org/development/tutorial.html" target="_blank">http://asterisk-java.org/development/tutorial.html</a> HelloManager and HelloEvent<br><br> I think that I need to run the manager script in different manner, since we need to login in Asterisk console. <br><br> Please let me know how I need to run the manager script.<br><br> <div class="gmail_quote">On Jan 23, 2008 9:49 PM, Martin Smith <<a href="mailto:ma...@be..." _onclick="Popup.composeWindow('pcompose.php?sendto=martins%40bebr.ufl.edu');; return false;" target="_blank">ma...@be...</a>> wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Does your Hello class extend the Base class or implement the correct<br>interface?<br><br>The example has: "public class HelloAgiScript extends BaseAgiScript"<br><br>Does yours? If yes, can we see it? Also, how do you run the Manager <br>script?<br><br>Your error: "Error: SEVERE: Unable to create AgiScript instance of type<br> <div>HelloManager: Class does not implement the AgiScript interface"<br><br></div>Like the tutorial says, you should be using a command line for the Agi <br>script like:<br>$ java -cp asterisk-java.jar:. org.asteriskjava.fastagi.DefaultAgiServer<br><br>AND for the Manager one, with a main method of your own design.<br><br>Please give us more information.<br><br><br>Martin Smith, Systems Developer <br><a href="mailto:ma...@be..." _onclick="Popup.composeWindow('pcompose.php?sendto=martins%40bebr.ufl.edu');; return false;" target="_blank">ma...@be...</a><br>Bureau of Economic and Business Research<br>University of Florida<br>(352) 392-0171 Ext. 221<br><br><br><br><br>________________________________<br><br> From: <a href="mailto:ast...@li..." _onclick="Popup.composeWindow('pcompose.php?sendto=asterisk-java-users-bounces%40lists.sourceforge.net');; return false;" target="_blank">ast...@li...</a><br>[mailto:<a href="mailto:ast...@li..." _onclick="Popup.composeWindow('pcompose.php?sendto=asterisk-java-users-bounces%40lists.sourceforge.net');; return false;" target="_blank">ast...@li... </a>] On Behalf Of<br>Gopal krishnan<br> Sent: Wednesday, January 23, 2008 7:41 AM<br> <div> To: <a href="mailto:ast...@li..." _onclick="Popup.composeWindow('pcompose.php?sendto=asterisk-java-users%40lists.sourceforge.net');; return false;" target="_blank">ast...@li... </a><br></div> <div> Subject: [Asterisk-java-users] classpath not found error<br><br><br></div> <div> <div></div> <div> Hi,<br><br> I am using asteriskjava 0.3.1, when I tried the HelloAgi <br>example in the url <a href="http://asterisk-java.org/development/tutorial.html" target="_blank">http://asterisk-java.org/development/tutorial.html</a> it<br>was working fine, in the same page Manager API programs are there, <br>HelloManager, HelloEvents, I tried both of them, but i am getting the<br>following error in fastagi console,<br><br> Error:<br> SEVERE: Unable to create AgiScript instance of type<br>HelloManager: Class<br> does not implement the AgiScript interface<br> Jan 23, 2008 4:13:24 PM<br>org.asteriskjava.fastagi.AbstractMappingStrategy<br> createA giScriptInstance<br> SEVERE: Unable to create AgiScript instance of type hello.agi:<br>Class not<br> found, make sure the class exists and is available on the<br>CLASSPATH<br> Jan 23, 2008 4:13:24 PM<br> org.asteriskjava.fastagi.internal.AgiConnectionHandler r un<br> SEVERE: No script configured for URL <br>'agi://localhost/hello.agi?user=5101'<br> (scri pt 'hello.agi')<br><br> Can you please help me on this.<br><br> --<br> Thank you with regards,<br> Gopal,<br> PeopleTech Systems Private Limited <br> <a href="http://www.peopletech.co.in" target="_blank">www.peopletech.co.in</a><br><br><br></div></div> <div> <div></div> <div>------------------------------------------------------------------------- <br>This SF.net email is sponsored by: Microsoft<br>Defy all challenges. Microsoft(R) Visual Studio 2008.<br><a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ </a><br>_______________________________________________<br>Asterisk-java-users mailing list<br><a href="mailto:Ast...@li..." _onclick="Popup.composeWindow('pcompose.php?sendto=Asterisk-java-users%40lists.sourceforge.net');; return false;" target="_blank">Ast...@li...</a><br><a href="https://lists.sourceforge.net/lists/listinfo/asterisk-java-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/asterisk-java-users</a><br> </div></div></blockquote></div><br><br clear="all"><br>-- <br>Thank you with regards,<br>Gopal,<br>PeopleTech Systems Private Limited<br><a href="http://www.peopletech.co.in" target="_blank">www.peopletech.co.in</a> </div></div></blockquote></div> <br>-------------------------------------------------------------------------<br>This SF.net email is sponsored by: Microsoft<br>Defy all challenges. Microsoft(R) Visual Studio 2008.<br><a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br> _______________________________________________<br>Asterisk-java-users mailing list<br><a href="mailto:Ast...@li..." target="_blank" _onclick="Popup.composeWindow('pcompose.php?sendto=Asterisk-java-users%40lists.sourceforge.net');; return false;">Ast...@li...</a><br><a href="https://lists.sourceforge.net/lists/listinfo/asterisk-java-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/asterisk-java-users</a><br> <br></blockquote></div><br><br clear="all"><br>-- <br>Thank you with regards,<br>Gopal,<br>PeopleTech Systems Private Limited<br><a href="http://www.peopletech.co.in" target="_blank">www.peopletech.co.in</a> <hr>-------------------------------------------------------------------------<br> This SF.net email is sponsored by: Microsoft<br> Defy all challenges. Microsoft(R) Visual Studio 2008.<br> <a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><hr>_______________________________________________<br> Asterisk-java-users mailing list<br> <a href="http://email.secureserver.net/pcompose.php#Compose" onclick="Popup.composeWindow('pcompose.php?sendto=Asterisk-java-users%40lists.sourceforge.net'); return false;">Asterisk-java-users<b></b>@lists.sourceforge.net</a><br> <a href="https://lists.sourceforge.net/lists/listinfo/asterisk-java-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/asterisk-java-users</a><br> </blockquote></body></html> |
From: Gopal k. <sa...@gm...> - 2008-01-28 07:03:46
Attachments:
HelloLive.java
|
Hi William, I am attaching my HelloLive.java. On Jan 27, 2008 6:30 AM, <dwi...@aa...> wrote: > Gopal, > > Look man, you'd be saving everyone alot of time and headache if you would > just post the code > as it is in the file. > > It is alot easier to fix things if we see how you have it.. not just your > reference to the example on the website. > > Best Regards, > Danny Williams JR > Act As One Technologies. > > > -------- Original Message -------- > Subject: Re: [Asterisk-java-users] classpath not found error > From: "Gopal krishnan" <gop...@pe...> > Date: Fri, January 25, 2008 1:12 am > To: ast...@li... > > Hi Martin / William, > > The code is working by initiating the program with the java -classpath > command with the root path of the java program. So thanks for your updates. > I will get back to you with customized code if any error i am facing. > > Thank you very much for your help. > > On Jan 24, 2008 8:40 PM, Martin Smith <ma...@be...> wrote: > > > Manager != Agi. A manager program cannot be an agi script. They are > > totally distinct ways of interacting with Asterisk (right now, anyway). > > < /span> > > You cannot call a manager script through AGI; Manager scripts are event > > driven, and require a main method to setup an event processing loop. > > > > The example of a manager script clearly contains a main() method and is > > not initiated from AGI. Please re-check the manager example and make a main > > method. Manager script connections to Asterisk are initiated BY the manager > > script, and AGI script connections to Asterisk are initiated BY the dialplan > > inside Asterisk. > > > > Let us know if you're still stuck. > > > > Martin Smith, Systems Developer > > ma...@be... > > Bureau of Economic and Business Research > > University of Florida > > (352) 392-0171 Ext. 221 > > > > > > ------------------------------ > > *From:* ast...@li... [mailto: > > ast...@li...] *On Behalf Of *Gopal > > krishnan > > *Sent:* Thursday, January 24, 2008 12:31 AM > > *To:* ast...@li... > > *Subject:* Re: [Asterisk-java-users] classpath not found error > > > > Hi Martin / William, > > > > thanks for the reply. > > The example "Public class HelloAgiScript extends BaseAgiScript" is > > working fine and we are getting the output in the command line > > "$ java -cp asterisk-java.jar: . > > org.asteriskjava.fastagi.DefaultAgiServer" > > by initiating the call with "exten => 1300,1,Agi(agi://localhost/hell > > o.agi)" > > > > For the manager script I am initiating the Java program like this > > "exten => 1300,1,Agi(agi://localhost/hello.agi)" and in the command line > > interface we are getting the error > > > > "Error: SEVERE: Unable to create AgiScript instance of type > > HelloManager: Class does not implement the AgiScript interface" > > > > Since we tested both examples given in the site > > http://asterisk-java.org/development/tutorial.html HelloManager and > > HelloEvent > > > > I think that I need to run the manager script in different manner, > > since we need to login in Asterisk console. > > > > Please let me know how I need to run the manager script. > > > > On Jan 23, 2008 9:49 PM, Martin Smith <martins@bebr.uf l.edu<ma...@be...>> > > wrote: > > > > > Does your Hello class extend the Base class or implement the correct > > > interface? > > > > > > The example has: "public class HelloAgiScript extends BaseAgiScript" > > > > > > Does yours? If yes, can we see it? Also, how do you run the Manager > > > script? > > > > > > Your error: "Error: SEVERE: Unable to create AgiScript instance of > > > type > > > HelloManager: Class does not implement the AgiScript interface" > > > > > > Like the tutorial says, you should be using a command line for the Agi > > > > > > script like: > > > $ java -cp asterisk-java.jar:. > > > org.asteriskjava.fastagi.DefaultAgiServer > > > > > > AND for the Manager one, with a main method of your own design. > > > > > > Please give us more information. > > > > > > > > > Martin Smith, Systems Developer > > > ma...@be... > > > Bureau of Economic and Business Research > > > University of Florida > > > (352) 392-0171 Ext. 221 > > > > > > > > > > > > > > > ________________________________ > > > > > > From: ast...@li... > > > [mailto:ast...@li... ] On Behalf > > > Of > > > Gopal krishnan > > > Sent: Wednesday, January 23, 2008 7:41 AM > > > To: ast...@li... > > > <ast...@li...urcefor%0A+ge.net> > > > Subject: [Asterisk-java-users] classpath not found error > > > > > > > > > Hi, > > > > > > I am using asteriskjava 0.3.1, when I tried the HelloAgi > > > example in the url http://asterisk-java.org/development/tutorial.htmlit > > > was working fine, in the same page Manager API programs are there, > > > HelloManager, HelloEvents, I tried both of them, but i am getting the > > > following error in fastagi console, > > > > > > Error: > > > SEVERE: Unable to create AgiScript instance of type > > > HelloManager: Class > > > does not imp lement the AgiScript interface > > > Jan 23, 2008 4:13:24 PM > > > org.asteriskjava.fastagi.AbstractMappingStrategy > > > createA giScriptInstance > > > SEVERE: Unable to create AgiScript instance of type hello.agi: > > > Class not > > > found, make sure the class exists and is available on the > > > CLASSPATH > > > Jan 23, 2008 4:13:24 PM > > > org.asteriskjava.fastagi.internal.AgiConnectionHandler r un > > > SEVERE: No script configured for URL > > > 'agi://localhost/hello.agi?user=5101' > > > (scri pt 'hello.agi') > > > > > > Can you please help me on this. > > > > > > -- > > > Thank you with regards, > > > Gopal, > > > PeopleTech Systems Private Limited > > > &n bsp; www.peopletech.co.in > > > > > > > > > ------------------------------------------------------------------------- > > > > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Asterisk-java-users mailing list > > > Ast...@li... > > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > > > > > -- > > Thank you with regards, > > Gopal, > > PeopleTech Systems Private Limited > > www.peopletech.co.in > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourcef orge.net/lists/listinfo/asterisk-java-users<https://lists.sourceforge.net/lists/listinfo/asterisk-java-users> > > > > > > > -- > Thank you with regards, > Gopal, > PeopleTech Systems Private Limited > www.peopletech.co.in > ------------------------------ > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------ > _______________________________________________ > Asterisk-java-users mailing list > Asterisk-java-users**@lists.sourceforge.net<http://email.secureserver.net/pcompose.php#Compose> > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- Thank you with regards, Gopal, PeopleTech Systems Private Limited www.peopletech.co.in |
From: Breucking P. <bre...@go...> - 2008-01-28 09:50:43
|
Hello Gopal, I compiled your code (changed login credentials for my asterisk) and executed it with command: $java -cp asterisk-java-0.3-m2.jar:. HelloLive and it works as expected. So please make sure that you set following login credentials: localhost -> replace with your asterisk server IP or DNS-Name manager -> replace with your manager account, setup in (/etc/ asterisk/) manager.conf password -> replace with your manager password/secret, setup in (/etc/ asterisk/) manager.conf, parameter secret An example, manager.conf: [manager] secret = pa55word deny=0.0.0.0/0.0.0.0 permit=0.0.0.0/0.0.0.0 read = system,call,log,verbose,command,agent,user write = system,call,log,verbose,command,agent,user (This is of course very low security and shouldn't use in productive environments) Regards Patrick Patrick Breucking <bre...@GO...> (System Engineer) * GONICUS GmbH * NL Arnsberg * Moehnestrasse 11-17 * D-59755 Arnsberg * Tel.: +49 (0) 29 32 / 9 16 - 0 * Fax: +49 (0) 29 32 / 9 16 - 278 * http://www.GONICUS.de *Sitz der Gesellschaft: Moehnestrasse 11-17 * D-59755 Arnsberg *Geschaeftsfuehrer: Rainer Luelsdorf, Alfred Schroeder *Vorsitzender des Beirats: Juergen Michels *Amtsgericht Arnsberg * HRB 1968 Am 28.01.2008 um 08:03 schrieb Gopal krishnan: > Hi William, > > I am attaching my HelloLive.java. > > On Jan 27, 2008 6:30 AM, <dwi...@aa...> wrote: > Gopal, > > Look man, you'd be saving everyone alot of time and headache if you > would just post the code > as it is in the file. > > It is alot easier to fix things if we see how you have it.. not just > your reference to the example on the website. > > > Best Regards, > Danny Williams JR > Act As One Technologies. > > > -------- Original Message -------- > Subject: Re: [Asterisk-java-users] classpath not found error > From: "Gopal krishnan" <gop...@pe...> > Date: Fri, January 25, 2008 1:12 am > To: ast...@li... > > Hi Martin / William, > > The code is working by initiating the program with the java - > classpath command with the root path of the java program. So thanks > for your updates. I will get back to you with customized code if any > error i am facing. > > Thank you very much for your help. > > On Jan 24, 2008 8:40 PM, Martin Smith <ma...@be...> wrote: > Manager != Agi. A manager program cannot be an agi script. They are > totally distinct ways of interacting with Asterisk (right now, > anyway). > < /span> > You cannot call a manager script through AGI; Manager scripts are > event driven, and require a main method to setup an event processing > loop. > > The example of a manager script clearly contains a main() method and > is not initiated from AGI. Please re-check the manager example and > make a main method. Manager script connections to Asterisk are > initiated BY the manager script, and AGI script connections to > Asterisk are initiated BY the dialplan inside Asterisk. > > Let us know if you're still stuck. > > Martin Smith, Systems Developer > ma...@be... > Bureau of Economic and Business Research > University of Florida > (352) 392-0171 Ext. 221 > > > From: ast...@li... [mailto:ast...@li... > ] On Behalf Of Gopal krishnan > Sent: Thursday, January 24, 2008 12:31 AM > > To: ast...@li... > Subject: Re: [Asterisk-java-users] classpath not found error > > Hi Martin / William, > > thanks for the reply. > The example "Public class HelloAgiScript extends BaseAgiScript" is > working fine and we are getting the output in the command line > "$ java -cp asterisk-java.jar: . > org.asteriskjava.fastagi.DefaultAgiServer" > by initiating the call with "exten => 1300,1,Agi(agi://localhost/ > hell o.agi)" > > > For the manager script I am initiating the Java program like this > "exten => 1300,1,Agi(agi://localhost/hello.agi)" and in the command > line interface we are getting the error > > "Error: SEVERE: Unable to create AgiScript instance of type > HelloManager: Class does not implement the AgiScript interface" > > Since we tested both examples given in the site http://asterisk-java.org/development/tutorial.html > HelloManager and HelloEvent > > I think that I need to run the manager script in different manner, > since we need to login in Asterisk console. > > Please let me know how I need to run the manager script. > > On Jan 23, 2008 9:49 PM, Martin Smith <martins@bebr.uf l.edu> wrote: > Does your Hello class extend the Base class or implement the correct > interface? > > The example has: "public class HelloAgiScript extends BaseAgiScript" > > Does yours? If yes, can we see it? Also, how do you run the Manager > script? > > Your error: "Error: SEVERE: Unable to create AgiScript instance of > type > HelloManager: Class does not implement the AgiScript interface" > > Like the tutorial says, you should be using a command line for the Agi > script like: > $ java -cp asterisk-java.jar:. > org.asteriskjava.fastagi.DefaultAgiServer > > AND for the Manager one, with a main method of your own design. > > Please give us more information. > > > Martin Smith, Systems Developer > ma...@be... > Bureau of Economic and Business Research > University of Florida > (352) 392-0171 Ext. 221 > > > > > ________________________________ > > From: ast...@li... > [mailto:ast...@li... ] On > Behalf Of > Gopal krishnan > Sent: Wednesday, January 23, 2008 7:41 AM > To: ast...@li... > Subject: [Asterisk-java-users] classpath not found error > > > Hi, > > I am using asteriskjava 0.3.1, when I tried the HelloAgi > example in the url http://asterisk-java.org/development/ > tutorial.html it > was working fine, in the same page Manager API programs are there, > HelloManager, HelloEvents, I tried both of them, but i am getting the > following error in fastagi console, > > Error: > SEVERE: Unable to create AgiScript instance of type > HelloManager: Class > does not imp lement the AgiScript interface > > Jan 23, 2008 4:13:24 PM > org.asteriskjava.fastagi.AbstractMappingStrategy > createA giScriptInstance > SEVERE: Unable to create AgiScript instance of type hello.agi: > Class not > found, make sure the class exists and is available on the > CLASSPATH > Jan 23, 2008 4:13:24 PM > org.asteriskjava.fastagi.internal.AgiConnectionHandler r un > SEVERE: No script configured for URL > 'agi://localhost/hello.agi?user=5101' > (scri pt 'hello.agi') > > Can you please help me on this. > > -- > Thank you with regards, > Gopal, > PeopleTech Systems Private Limited > &n bsp; www.peopletech.co.in > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > -- > Thank you with regards, > Gopal, > PeopleTech Systems Private Limited > www.peopletech.co.in > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourcef orge.net/lists/listinfo/asterisk-java-users > > > > > -- > Thank you with regards, > Gopal, > PeopleTech Systems Private Limited > www.peopletech.co.in > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > -- > Thank you with regards, > Gopal, > PeopleTech Systems Private Limited > www.peopletech.co.in > < > HelloLive > .java > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: James T. <ja...@an...> - 2008-01-28 16:59:48
|
Howdy, I'm trying to find the meaning for the response codes returned by OriginateResponseEvent.getReason(). Can anyone point me in the right direction? In my testing I've observed the following but would like to see what the codes *really* mean: 0 = Busy (I think) 1 = Call failed (purposely entered an invalid number - 1234567890) 3 = No Answer (originate timed out) 4 = Success I've browsed and googled, but can't find the information. Thanks, James |
From: Martin S. <ma...@be...> - 2008-01-28 19:10:22
|
Hi James, =20 Reason codes are from the Asterisk source. You'll find a thread on the dev list at http://lists.digium.com/pipermail/asterisk-dev/2005-September/015136.htm l. You can probably grab a copy of the latest source or the source you're currently using and just grep through it for AST_CONTROL_*. =20 Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221=20 =20 ________________________________ From: ast...@li... [mailto:ast...@li...] On Behalf Of James Taylor Sent: Monday, January 28, 2008 12:00 PM To: ast...@li... Subject: [Asterisk-java-users] OriginateResponseEvent.getReason() =09 =09 Howdy, I'm trying to find the meaning for the response codes returned by OriginateResponseEvent.getReason(). Can anyone point me in the right direction? In my testing I've observed the following but would like to see what the codes *really* mean: 0 =3D Busy (I think) 1 =3D Call failed (purposely entered an invalid number - 1234567890) 3 =3D No Answer (originate timed out) 4 =3D Success I've browsed and googled, but can't find the information. Thanks, James =09 =09 |