asterisk-java-users Mailing List for Asterisk-Java Library (Page 122)
Brought to you by:
srt
You can subscribe to this list here.
2005 |
Jan
|
Feb
(8) |
Mar
(33) |
Apr
(36) |
May
(19) |
Jun
(21) |
Jul
(53) |
Aug
(30) |
Sep
(36) |
Oct
(34) |
Nov
(43) |
Dec
(72) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(123) |
Feb
(75) |
Mar
(86) |
Apr
(46) |
May
(41) |
Jun
(29) |
Jul
(76) |
Aug
(38) |
Sep
(39) |
Oct
(68) |
Nov
(16) |
Dec
(17) |
2007 |
Jan
(34) |
Feb
(18) |
Mar
(39) |
Apr
(30) |
May
(20) |
Jun
(10) |
Jul
(59) |
Aug
(54) |
Sep
(60) |
Oct
(22) |
Nov
(14) |
Dec
(10) |
2008 |
Jan
(34) |
Feb
(67) |
Mar
(65) |
Apr
(67) |
May
(60) |
Jun
(51) |
Jul
(88) |
Aug
(75) |
Sep
(47) |
Oct
(143) |
Nov
(54) |
Dec
(42) |
2009 |
Jan
(46) |
Feb
(80) |
Mar
(162) |
Apr
(159) |
May
(200) |
Jun
(34) |
Jul
(46) |
Aug
(59) |
Sep
(5) |
Oct
(35) |
Nov
(73) |
Dec
(30) |
2010 |
Jan
(23) |
Feb
(50) |
Mar
(8) |
Apr
(24) |
May
(19) |
Jun
(49) |
Jul
(56) |
Aug
(35) |
Sep
(26) |
Oct
(79) |
Nov
(39) |
Dec
(34) |
2011 |
Jan
(27) |
Feb
(22) |
Mar
(28) |
Apr
(12) |
May
(16) |
Jun
(19) |
Jul
(1) |
Aug
(64) |
Sep
(19) |
Oct
(11) |
Nov
(17) |
Dec
(12) |
2012 |
Jan
(6) |
Feb
(8) |
Mar
(15) |
Apr
(43) |
May
(41) |
Jun
(14) |
Jul
(32) |
Aug
(3) |
Sep
(4) |
Oct
(7) |
Nov
(11) |
Dec
(11) |
2013 |
Jan
(35) |
Feb
(11) |
Mar
(23) |
Apr
(25) |
May
(37) |
Jun
(47) |
Jul
(25) |
Aug
(21) |
Sep
|
Oct
(1) |
Nov
(9) |
Dec
|
2014 |
Jan
(26) |
Feb
(2) |
Mar
(18) |
Apr
(41) |
May
(7) |
Jun
(7) |
Jul
(24) |
Aug
(5) |
Sep
(6) |
Oct
(8) |
Nov
(9) |
Dec
(7) |
2015 |
Jan
(7) |
Feb
(15) |
Mar
(8) |
Apr
(12) |
May
(7) |
Jun
|
Jul
|
Aug
(5) |
Sep
(1) |
Oct
(3) |
Nov
(30) |
Dec
(3) |
2016 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
|
May
(9) |
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(8) |
Dec
(4) |
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <gm...@ea...> - 2008-02-02 15:41:37
|
Hi Patrick As requested here is (eventually, sorry for the delay...) the queues patch against current trunk (as of 2008/02/02) , including the dateLeft corrections. Kind regards Gaetan |
From: Stefan R. <ste...@re...> - 2008-02-02 14:04:41
|
Bruno, sorry I didn't pay enough attention to your first email. In 0.3 we had similar code to what you suggested and used the Java readLine() method to read from Asterisk. readLine() does not make a difference between "\r\n" and "\n" which turned out to make things harder than they must be. The convention in Asterisk is that "\r\n" is the delimiter for the manager "lines" while "\n" may appear within a line. You can try "sip show peers" this will work just fine as it uses "\n" in its output. For trunk I have reworked the handling of the CommandAction to make use of this convention which makes the code much simpler. My impression is that "show dialplan" does not adhere to this convention. Additionally when I run wireshark and look at the data it seems the dialplan is truncated anyway: action: Command actionid: 2131238190_2# command: dialplan show Response: Follows Privilege: Command ActionID: 2131238190_2# [ Context 'from-voipgate' created by 'pbx_config' ] <snip> [ Context 'app_dial_gosub_virtual_context' created by 'app_dial--END COMMAND-- It would be interesting if there are many commands that behave this way or if its specific to "show dialplan". If there are more we might revert to using the old code (which I would really like to prevent). =3DStefan Bruno KONIK wrote: > Stefan, >=20 > thanks. > I think I am using it the right way : >=20 > commandAction =3D new CommandAction("dialplan show"); > response =3D managerConnection.sendAction(commandAction= ); > if (response instanceof CommandResponse) { > Iterator<String> i =3D ((CommandResponse) > response).getResult().iterator(); > while (i.hasNext()) { > String item =3D i.next(); > } > } >=20 > and yes I am using the 1.0.0 snapshot from last thursday. >=20 > Bruno >=20 > 2008/2/1, Stefan Reuter <ste...@re... > <mailto:ste...@re...>>: >=20 > Do you use this correctly? > Example: > response =3D sendAction(new CommandAction(command)); > if (!(response instanceof CommandResponse)) > { > throw new ManagerCommunicationException( > "Response to CommandAction(\"" + command > + "\") was not a CommandResponse but " = + > response, > null); > } >=20 > // use ((CommandResponse) response).getResult(); >=20 > getResult() returns a List of Strings - one per line. >=20 > Besides, the implementation has been completly reworked in svn trun= k to > use \r\n as delimiter so that newlines in the responses do work wit= hout > additonal hacks. > Would you mind to check svn trunk or the latest 1.0.0 snapshot? >=20 > =3DStefan >=20 >=20 >=20 > Bruno Konik wrote: > > Hello, > > > > Asterisk 1.4.17, > > Asterisk-java 0.3.1 > > > > I am trying to use the CommandAction with 'diaplan show' but the > response gives only the last line of the response. It seems that > > the Reader doesn't allow to give such responses splitted over > several lines. > > > > If you accept a modification to treat it I suggest the following > code in the ManagerReaderImpl.java : > > > > StringBuilder commandResponseResult =3D null; // the buffer= to > be used for multi lines command response > > while ((line =3D socket.readLine()) !=3D null && !this.die)= > > { > > ... > > > > // your code was : > > // Special handling for "Response: Follows" (CommandResponse) > > // if ("Follows".equals(buffer.get("response")) &&= > line.endsWith("--END COMMAND--")) > > // { > > // buffer.put("result", line); > > // continue; > > // } > > > > // I suggest : > > // special handling for "Response: Follows" (CommandResponse) to > treat several lines > > // START > > if ("Follows".equals(buffer.get("response")) && > line.length() > 0 && buffer.containsKey("actionid")) > > { > > if (commandResponseResult =3D=3D null) { > > if (line.endsWith("--END COMMAND--")) { > > buffer.put("result", line); > > } else { > > commandResponseResult =3D new StringBuilder= (line); > > } > > } else { > > commandResponseResult.append(line); > > if (line.endsWith("--END COMMAND--")) { > > buffer.put("result", > commandResponseResult.toString()); > > commandResponseResult =3D null; > > } > > } > > continue; > > } > > // END > > ... > > > > Thanks for letting me know if you are ok with that and thanks for= > your help, > > > > Bruno Konik > > > >> -----Message d'origine----- > >> De : ast...@li... > <mailto:ast...@li...> > >> [mailto:ast...@li... > <mailto:ast...@li...>] De > >> la part de Stefan Reuter > >> Envoy=E9 : mardi 2 octobre 2007 02:44 > >> =C0 : ast...@li... > <mailto:ast...@li...> > >> Objet : Re: [Asterisk-java-users] asterisk java and astmanproxy > >> > >> Ga=EBtan Minet wrote: > >>> Here is a link > >>> > >>> http://dev.mcit.be/various/astmanproxy-asterisk-java.html > >> Thanks. You'll find the link on the A-J homepage. I've also > >> added it to the AstManProxy page on voip-info.org > <http://voip-info.org>. > >> > >> Support for the server property is now in SVN. > >> > >> =3DStefan |
From: Bruno K. <bru...@un...> - 2008-02-02 13:24:47
|
Stefan, thanks. I think I am using it the right way : commandAction =3D new CommandAction("dialplan show"); response =3D managerConnection.sendAction(commandAction); if (response instanceof CommandResponse) { Iterator<String> i =3D ((CommandResponse) response).getResult().iterator(); while (i.hasNext()) { String item =3D i.next(); } } and yes I am using the 1.0.0 snapshot from last thursday. Bruno 2008/2/1, Stefan Reuter <ste...@re...>: > > Do you use this correctly? > Example: > response =3D sendAction(new CommandAction(command)); > if (!(response instanceof CommandResponse)) > { > throw new ManagerCommunicationException( > "Response to CommandAction(\"" + command > + "\") was not a CommandResponse but " + > response, > null); > } > > // use ((CommandResponse) response).getResult(); > > getResult() returns a List of Strings - one per line. > > Besides, the implementation has been completly reworked in svn trunk to > use \r\n as delimiter so that newlines in the responses do work without > additonal hacks. > Would you mind to check svn trunk or the latest 1.0.0 snapshot? > > =3DStefan > > > > Bruno Konik wrote: > > Hello, > > > > Asterisk 1.4.17, > > Asterisk-java 0.3.1 > > > > I am trying to use the CommandAction with 'diaplan show' but the > response gives only the last line of the response. It seems that > > the Reader doesn't allow to give such responses splitted over several > lines. > > > > If you accept a modification to treat it I suggest the following code i= n > the ManagerReaderImpl.java : > > > > StringBuilder commandResponseResult =3D null; // the buffer to be > used for multi lines command response > > while ((line =3D socket.readLine()) !=3D null && !this.die) > > { > > ... > > > > // your code was : > > // Special handling for "Response: Follows" (CommandResponse) > > // if ("Follows".equals(buffer.get("response")) && > line.endsWith("--END COMMAND--")) > > // { > > // buffer.put("result", line); > > // continue; > > // } > > > > // I suggest : > > // special handling for "Response: Follows" (CommandResponse) to treat > several lines > > // START > > if ("Follows".equals(buffer.get("response")) && > line.length() > 0 && buffer.containsKey("actionid")) > > { > > if (commandResponseResult =3D=3D null) { > > if (line.endsWith("--END COMMAND--")) { > > buffer.put("result", line); > > } else { > > commandResponseResult =3D new StringBuilder(line)= ; > > } > > } else { > > commandResponseResult.append(line); > > if (line.endsWith("--END COMMAND--")) { > > buffer.put("result", > commandResponseResult.toString()); > > commandResponseResult =3D null; > > } > > } > > continue; > > } > > // END > > ... > > > > Thanks for letting me know if you are ok with that and thanks for your > help, > > > > Bruno Konik > > > >> -----Message d'origine----- > >> De : ast...@li... > >> [mailto:ast...@li...] De > >> la part de Stefan Reuter > >> Envoy=E9 : mardi 2 octobre 2007 02:44 > >> =C0 : ast...@li... > >> Objet : Re: [Asterisk-java-users] asterisk java and astmanproxy > >> > >> Ga=EBtan Minet wrote: > >>> Here is a link > >>> > >>> http://dev.mcit.be/various/astmanproxy-asterisk-java.html > >> Thanks. You'll find the link on the A-J homepage. I've also > >> added it to the AstManProxy page on voip-info.org. > >> > >> Support for the server property is now in SVN. > >> > >> =3DStefan > >> > >> > > > > > > > > > ------------------------------------------------------------------------- > > 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 > > > -- > reuter network consulting > Neusser Str. 110 > 50760 Koeln > Germany > Telefon: +49 221 1305699-0 > Telefax: +49 221 1305699-90 > E-Mail: ste...@re... > Jabber: ste...@re... > WWW: http://www.reucon.com > > Steuernummern 215/5140/1791 USt-IdNr. DE220701760 > > > ------------------------------------------------------------------------- > 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: Stefan R. <ste...@re...> - 2008-02-01 18:06:41
|
Do you use this correctly? Example: response =3D sendAction(new CommandAction(command)); if (!(response instanceof CommandResponse)) { throw new ManagerCommunicationException( "Response to CommandAction(\"" + command + "\") was not a CommandResponse but " + response, null); } // use ((CommandResponse) response).getResult(); getResult() returns a List of Strings - one per line. Besides, the implementation has been completly reworked in svn trunk to use \r\n as delimiter so that newlines in the responses do work without additonal hacks. Would you mind to check svn trunk or the latest 1.0.0 snapshot? =3DStefan Bruno Konik wrote: > Hello, >=20 > Asterisk 1.4.17, > Asterisk-java 0.3.1 >=20 > I am trying to use the CommandAction with 'diaplan show' but the respon= se gives only the last line of the response. It seems that > the Reader doesn't allow to give such responses splitted over several l= ines.=20 >=20 > If you accept a modification to treat it I suggest the following code i= n the ManagerReaderImpl.java : >=20 > StringBuilder commandResponseResult =3D null; // the buffer to be= used for multi lines command response=20 > while ((line =3D socket.readLine()) !=3D null && !this.die) > { > ... >=20 > // your code was : > // Special handling for "Response: Follows" (CommandResponse) > // if ("Follows".equals(buffer.get("response")) && line.= endsWith("--END COMMAND--")) > // { > // buffer.put("result", line); > // continue; > // } >=20 > // I suggest : > // special handling for "Response: Follows" (CommandResponse) to treat = several lines > // START > if ("Follows".equals(buffer.get("response")) && line.le= ngth() > 0 && buffer.containsKey("actionid")) > { > if (commandResponseResult =3D=3D null) { > if (line.endsWith("--END COMMAND--")) { > buffer.put("result", line); > } else { > commandResponseResult =3D new StringBuilder(line)= ; > } > } else { > commandResponseResult.append(line); > if (line.endsWith("--END COMMAND--")) { > buffer.put("result", commandResponseResult.toString())= ; > commandResponseResult =3D null; > } > } > continue; > } > // END > ... >=20 > Thanks for letting me know if you are ok with that and thanks for your = help, >=20 > Bruno Konik >=20 >> -----Message d'origine----- >> De : ast...@li...=20 >> [mailto:ast...@li...] De=20 >> la part de Stefan Reuter >> Envoy=E9 : mardi 2 octobre 2007 02:44 >> =C0 : ast...@li... >> Objet : Re: [Asterisk-java-users] asterisk java and astmanproxy >> >> Ga=EBtan Minet wrote: >>> Here is a link >>> >>> http://dev.mcit.be/various/astmanproxy-asterisk-java.html >> Thanks. You'll find the link on the A-J homepage. I've also=20 >> added it to the AstManProxy page on voip-info.org. >> >> Support for the server property is now in SVN. >> >> =3DStefan >> >> >=20 >=20 >=20 > -----------------------------------------------------------------------= -- > 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 --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Bruno K. <bru...@un...> - 2008-02-01 17:36:18
|
Hello, Asterisk 1.4.17, Asterisk-java 0.3.1 I am trying to use the CommandAction with 'diaplan show' but the = response gives only the last line of the response. It seems that the Reader doesn't allow to give such responses splitted over several = lines.=20 If you accept a modification to treat it I suggest the following code in = the ManagerReaderImpl.java : StringBuilder commandResponseResult =3D null; // the buffer to be = used for multi lines command response=20 while ((line =3D socket.readLine()) !=3D null && !this.die) { ... // your code was : // Special handling for "Response: Follows" (CommandResponse) // if ("Follows".equals(buffer.get("response")) && = line.endsWith("--END COMMAND--")) // { // buffer.put("result", line); // continue; // } // I suggest : // special handling for "Response: Follows" (CommandResponse) to treat = several lines // START if ("Follows".equals(buffer.get("response")) && = line.length() > 0 && buffer.containsKey("actionid")) { if (commandResponseResult =3D=3D null) { if (line.endsWith("--END COMMAND--")) { buffer.put("result", line); } else { commandResponseResult =3D new StringBuilder(line); } } else { commandResponseResult.append(line); if (line.endsWith("--END COMMAND--")) { buffer.put("result", commandResponseResult.toString()); commandResponseResult =3D null; } } continue; } // END ... Thanks for letting me know if you are ok with that and thanks for your = help, Bruno Konik > -----Message d'origine----- > De : ast...@li...=20 > [mailto:ast...@li...] De=20 > la part de Stefan Reuter > Envoy=E9 : mardi 2 octobre 2007 02:44 > =C0 : ast...@li... > Objet : Re: [Asterisk-java-users] asterisk java and astmanproxy >=20 > Ga=EBtan Minet wrote: > > Here is a link > >=20 > > http://dev.mcit.be/various/astmanproxy-asterisk-java.html >=20 > Thanks. You'll find the link on the A-J homepage. I've also=20 > added it to the AstManProxy page on voip-info.org. >=20 > Support for the server property is now in SVN. >=20 > =3DStefan >=20 >=20 |
From: Gopal k. <sa...@gm...> - 2008-02-01 08:19:42
|
Hi, You can use the getdata function with three parameters whcih first plays a file , wait for DTMF digit and time out digit. On Feb 1, 2008 2:24 AM, monim benayad <be...@gm...> wrote: > Hi All, > I'm trying to use asterisk-java to originate a call from java class to a > user then playback a sound file and waits for input digit, I'm wondering if > this could be done from asterisk-java. > > Thanks! > > ------------------------------------------------------------------------- > 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: Martin S. <ma...@be...> - 2008-01-31 22:26:45
|
Yes, this is doable from Asterisk-Java, provided you use both the AMI (manager interface and the AGI (gateway interface). You'll originate with the Manager interface to a user with an application like FastAGI(<host/address of machine running AGI server>) and then your AGI script will take care of the playback of whatever IVR you like. =20 Check out the tutorials on asterisk-java.org for more details :) =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 monim benayad Sent: Thursday, January 31, 2008 3:54 PM To: ast...@li... Subject: [Asterisk-java-users] IVR from AGI =09 =09 Hi All, I'm trying to use asterisk-java to originate a call from java class to a user then playback a sound file and waits for input digit, I'm wondering if this could be done from asterisk-java. =09 Thanks! =09 |
From: monim b. <be...@gm...> - 2008-01-31 20:54:17
|
Hi All, I'm trying to use asterisk-java to originate a call from java class to a user then playback a sound file and waits for input digit, I'm wondering if this could be done from asterisk-java. Thanks! |
From: Stefan R. <ste...@re...> - 2008-01-30 23:34:45
|
Aaron Evans wrote: > For the AgentCallBackLoginAction wrapupTime, it says it is in millis > but it should say that it is in seconds. Thanks, its fixed in svn. > I found this out the hard way (silly me for not testing first). I guess your agents loved this bug *g* =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Aaron E. <aar...@gm...> - 2008-01-30 19:55:58
|
For the AgentCallBackLoginAction wrapupTime, it says it is in millis but it should say that it is in seconds. I found this out the hard way (silly me for not testing first). -aaron |
From: Bruno K. <bru...@un...> - 2008-01-30 17:17:40
|
Thanks Stefan, I will add all the missing setters I can find in the bug tracker when it will be accessible! Bruno 2008/1/30, Stefan Reuter <ste...@re...>: > > Bruno Konik wrote: > > I am using asterisk-java 0.3.1 and asterisk 1.6.0 beta 2. > > > > First of all when connecting to the PBX, I get "Unsupported protocol > version 'Asterisk Call Manager/1.1'. Use at your own risk". > > Yep thats fixed in svn since yesterday :) > > > After that, the first NewChannelEvent event triggers an ERROR in > EventBuilderImpl saying "Unable to set property 'channelstatedesc' > > to 'Down' on ...: no setter". > > I'll have a look at that and add the setter. > > > I believe that the beta 2 has changed some events reported by asterisk? > and maybe is there a new dev version of asterisk-java that > > handles the new syntax? or maybe have I missed some configuration > somewhere? > > Yes, there are a few properties, events and actions. I am currently > looking through the Asterisk sources to identify them. > Expect them to appear in the 1.0.0-SNAPSHOT versions in the near future. > > Besides that you can always (well if at least if it's not down like at > the moment ;) report an issue at http://jira.reucon.org so we can track > the things we missed. > > Thanks, > > Stefan > > -- > reuter network consulting > Neusser Str. 110 > 50760 Koeln > Germany > Telefon: +49 221 1305699-0 > Telefax: +49 221 1305699-90 > E-Mail: ste...@re... > Jabber: ste...@re... > WWW: http://www.reucon.com > > Steuernummern 215/5140/1791 USt-IdNr. DE220701760 > > > ------------------------------------------------------------------------- > 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: Stefan R. <ste...@re...> - 2008-01-30 16:54:47
|
Bruno Konik wrote: > I am using asterisk-java 0.3.1 and asterisk 1.6.0 beta 2. >=20 > First of all when connecting to the PBX, I get "Unsupported protocol ve= rsion 'Asterisk Call Manager/1.1'. Use at your own risk". Yep thats fixed in svn since yesterday :) > After that, the first NewChannelEvent event triggers an ERROR in EventB= uilderImpl saying "Unable to set property 'channelstatedesc' > to 'Down' on ...: no setter". I'll have a look at that and add the setter. > I believe that the beta 2 has changed some events reported by asterisk?= and maybe is there a new dev version of asterisk-java that > handles the new syntax? or maybe have I missed some configuration somew= here? Yes, there are a few properties, events and actions. I am currently looking through the Asterisk sources to identify them. Expect them to appear in the 1.0.0-SNAPSHOT versions in the near future. Besides that you can always (well if at least if it's not down like at the moment ;) report an issue at http://jira.reucon.org so we can track the things we missed. Thanks, Stefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Bruno K. <bru...@un...> - 2008-01-30 16:32:39
|
Hello (again!) I am using asterisk-java 0.3.1 and asterisk 1.6.0 beta 2. First of all when connecting to the PBX, I get "Unsupported protocol version 'Asterisk Call Manager/1.1'. Use at your own risk". After that, the first NewChannelEvent event triggers an ERROR in EventBuilderImpl saying "Unable to set property 'channelstatedesc' to 'Down' on ...: no setter". I believe that the beta 2 has changed some events reported by asterisk? and maybe is there a new dev version of asterisk-java that handles the new syntax? or maybe have I missed some configuration somewhere? Thanks for your help about that. Bruno Konik |
From: christopher G. <cg...@ho...> - 2008-01-30 09:56:19
|
Hi all I am new to asterisk-java. I am trying to install the asterisk-java classes= by adding the *.jar file in the CLASSPATH variable but the example fastagi= program helloworldagi does not compile and cannot find the imported asteri= sk-java classes. I am i doing something wrong? there doesnt seem any clear instructions on a= sterisk-java API installation, please point me to the right direction. Also, I have the latest JDK and all my other java programms compile. chris _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/= |
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 |
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: 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: Gopal k. <sa...@gm...> - 2008-01-28 07:03:46
|
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: <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. <gop...@pe...> - 2008-01-25 08:12:37
|
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). > > 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/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 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 <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... > > 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 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 > > 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 > 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: 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: Martin S. <ma...@be...> - 2008-01-24 15:11:23
|
Manager !=3D Agi. A manager program cannot be an agi script. They are totally distinct ways of interacting with Asterisk (right now, anyway). =20 You cannot call a manager script through AGI; Manager scripts are event driven, and require a main method to setup an event processing loop. =20 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. =20 Let us know if you're still stuck. =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 Gopal krishnan Sent: Thursday, January 24, 2008 12:31 AM To: ast...@li... Subject: Re: [Asterisk-java-users] classpath not found error =09 =09 Hi Martin / William, =09 thanks for the reply. The example "Public class HelloAgiScript extends BaseAgiScript" is working fine and we are getting the output in the command line=20 "$ java -cp asterisk-java.jar: . org.asteriskjava.fastagi.DefaultAgiServer" by initiating the call with "exten =3D> 1300,1,Agi(agi://localhost/hello.agi)" =09 For the manager script I am initiating the Java program like this "exten =3D> 1300,1,Agi(agi://localhost/hello.agi)" and in the command line interface we are getting the error =09 "Error: SEVERE: Unable to create AgiScript instance of type HelloManager: Class does not implement the AgiScript interface" =09 Since we tested both examples given in the site http://asterisk-java.org/development/tutorial.html HelloManager and HelloEvent =09 I think that I need to run the manager script in different manner, since we need to login in Asterisk console.=20 =09 Please let me know how I need to run the manager script. =09 =09 On Jan 23, 2008 9:49 PM, Martin Smith <ma...@be...> wrote: =09 Does your Hello class extend the Base class or implement the correct interface? =09 The example has: "public class HelloAgiScript extends BaseAgiScript" =09 Does yours? If yes, can we see it? Also, how do you run the Manager=20 script? =09 Your error: "Error: SEVERE: Unable to create AgiScript instance of type =09 HelloManager: Class does not implement the AgiScript interface" =09 =09 Like the tutorial says, you should be using a command line for the Agi=20 script like: $ java -cp asterisk-java.jar:. org.asteriskjava.fastagi.DefaultAgiServer =09 AND for the Manager one, with a main method of your own design. =09 Please give us more information. =09 =09 Martin Smith, Systems Developer=20 ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 =09 =09 =09 =09 ________________________________ =09 From: ast...@li... =09 [mailto:ast...@li... ] On Behalf Of Gopal krishnan Sent: Wednesday, January 23, 2008 7:41 AM =09 To: ast...@li...=20 =09 Subject: [Asterisk-java-users] classpath not found error =09 =09 =09 Hi, =09 I am using asteriskjava 0.3.1, when I tried the HelloAgi=20 example in the url http://asterisk-java.org/development/tutorial.html it was working fine, in the same page Manager API programs are there,=20 HelloManager, HelloEvents, I tried both of them, but i am getting the following error in fastagi console, =09 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 =09 org.asteriskjava.fastagi.internal.AgiConnectionHandler r un SEVERE: No script configured for URL=20 'agi://localhost/hello.agi?user=3D5101' (scri pt 'hello.agi') =09 Can you please help me on this. =09 -- Thank you with regards, Gopal, PeopleTech Systems Private Limited=20 www.peopletech.co.in =09 =09 =09 =09 ------------------------------------------------------------------------ -=20 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/=20 _______________________________________________ Asterisk-java-users mailing list Ast...@li... =09 https://lists.sourceforge.net/lists/listinfo/asterisk-java-users =09 --=20 Thank you with regards, Gopal, PeopleTech Systems Private Limited www.peopletech.co.in=20 |
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-24 05:31:23
|
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 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 <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... > 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 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 > 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 |
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> |