asterisk-java-users Mailing List for Asterisk-Java Library (Page 155)
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: Jason W. <ja...@cl...> - 2006-03-08 17:40:11
|
Hello, The following code hangs evertime on my machine. It's because of the concatenation; if I take it out (dmail=email1+email2+email3;) then it works fine... How can I further nail down the problem? I get 'INFO: Received Connection.' and nothing else... subsequent to failure, calls to this script show 'SEVERE: no script configured' error //************************************************************************** ******** import net.sf.asterisk.fastagi.AGIChannel; import net.sf.asterisk.fastagi.AGIException; import net.sf.asterisk.fastagi.AGIRequest; import net.sf.asterisk.fastagi.BaseAGIScript; import java.util.*; import javax.mail.*; import javax.mail.internet.*; public class imailnew extends BaseAGIScript { public void service(AGIRequest request, AGIChannel channel) throws AGIException { String dmail,email1,email2,email3; email1 = "jason"; email2 = "clickforacall"; email3 = "com"; dmail = email1 + email2 + email3; //removal of this line will cause it to succeed System.out.println("success"); } } //************************************************************************** ******* Thank you, Jason |
From: Chris H. <ch...@as...> - 2006-03-08 01:26:44
|
On Mar 7, 2006, at 5:22 PM, Stefan Reuter wrote: > Hi, > > g f wrote: >> I was interested in allowing users the ability to create new >> conference >> rooms. >> Is there any * to Java classes that will accomplish this? >> I looked at MeetmeEvents but found nothing that looked promising. >> Any help is appreciated.. > > no there is currently no way to accomplish this through the Manager > API > that I am aware of. > Do you know if its possible through CLI? (I had a quick look but didnt > find anything either) You probably want to use dynamic meetme conferences and manage them with an external database and not try to add a static conference. We have built a conferencing system using this approach using AGI for authentication and it works great. Chris |
From: Stefan R. <sr...@re...> - 2006-03-07 23:23:04
|
Hi, g f wrote: > I was interested in allowing users the ability to create new conference= > rooms. > Is there any * to Java classes that will accomplish this? > I looked at MeetmeEvents but found nothing that looked promising. > Any help is appreciated.. no there is currently no way to accomplish this through the Manager API that I am aware of. Do you know if its possible through CLI? (I had a quick look but didnt find anything either) =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 K=F6ln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: g f <gf...@gm...> - 2006-03-07 20:32:12
|
Hello all, I was interested in allowing users the ability to create new conference rooms. Is there any * to Java classes that will accomplish this? I looked at MeetmeEvents but found nothing that looked promising. Any help is appreciated.. TIA!! |
From: Stefan R. <sr...@re...> - 2006-03-07 12:00:11
|
Brett Sutton wrote: > It appears that there is a bug on getParameter(). >=20 > Currently getParameter does not work unless AGIRequest.getScript() has > previously been called. Thanks for the bug report. It is fixed in latest trunk and we now have a test case for that situation ;) =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 K=C3=B6ln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... |
From: Brett S. <bs...@no...> - 2006-03-07 10:22:50
|
It appears that there is a bug on getParameter(). Currently getParameter does not work unless AGIRequest.getScript() has previously been called. I had implemented a very simply mapping strategy as: public class AgiMappingStragegy implements MappingStrategy { public AGIScript determineScript(AGIRequest request) { // We only have one! return new Unity(); } } Normal strategies call request.getScript(). While what I've done is somewhat unusually the dependency between getParameter and getScript is undocumented and I believe unnecessary. Regards, Brett. |
From: Stefan R. <sr...@re...> - 2006-03-06 12:13:09
|
> Notice the line which display the Asterisk version. It now says that it= is=20 > =E2=80=9CAsterisk 1.0=E2=80=9D. I think this is caused by Asterisk-Java= having problem sending > An action to determine the version of asterisk. > The connection seems to work fine for receiving events, it just have pr= oblem sending > Actions. This is a rather nasty problem. Thanks for reporting it. In fact the connection works fine for receiving events and sending action= s. If didn't restart asterisk but unplugged the network cable the version would have been fine, too. The reason for A-J to determine the version in a reliable way after being restarted is the following: - to determine the version A-J sends a "show files version pbx.c" action - based on the results of this query A-J sets the version Now it seems that A-J reconnects that fast that Asterisk has not yet loaded all its stuff but is already accepting manager connections. What I geht looks like this: org.asteriskjava.manager.DefaultManagerConnection INFO - Connected via Asterisk Call Manager/1.0 2006-03-06 12:07:17,656 org.asteriskjava.manager.DefaultManagerConnection INFO - Successfully logged in org.asteriskjava.manager.response.CommandResponse: actionId=3D'null'; message=3D'null'; response=3D'Follows'; uniqueId=3D'null'; systemHashcode= =3D33018164 [File Revision , ---- -------- , pbx.c Revision: 10209 ] 2006-03-06 12:07:17,937 org.asteriskjava.manager.DefaultManagerConnection INFO - Determined Asterisk version: Asterisk 1.2 =2E.................2006-03-06 12:07:40,171 org.asteriskjava.manager.DefaultManagerConnection INFO - Closing socket. 2006-03-06 12:07:40,234 org.asteriskjava.manager.DefaultManagerConnection INFO - Connecting to 10.13.0.55 port 5038 2006-03-06 12:07:41,546 org.asteriskjava.manager.DefaultManagerConnection INFO - Connected via Asterisk Call Manager/1.0 -2006-03-06 12:07:43,062 org.asteriskjava.manager.DefaultManagerConnection INFO - Successfully logged in =2Eorg.asteriskjava.manager.response.CommandResponse: actionId=3D'null'; message=3D'null'; response=3D'Follows'; uniqueId=3D'null'; systemHashcode= =3D24212202 [Usage: show version, Shows Asterisk version information.] 2006-03-06 12:07:44,609 org.asteriskjava.manager.DefaultManagerConnection INFO - Determined Asterisk version: Asterisk 1.0 2006-03-06 12:07:44,609 org.asteriskjava.manager.DefaultManagerConnection INFO - Successfully reconnected. =2E!........................ Seems like I have to choose a different approach to determine the version= =2E.. =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 K=C3=B6ln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... |
From: Stefan R. <sr...@re...> - 2006-03-05 23:24:26
|
Brett Sutton wrote: > Is there any chance of getting the Interrupt bug fix back ported? =46rom a technical point of view that would be possible. But from an organisational point of view I would like to avoid it as 0.2 is still in CVS backporting it would rather mean reimplementing it. If you need the fix quickly I would prefer to release 0.3 earlier (say next week) and postpone the additions for org.asteriskjava.live for 0.4. Would that be an option for you? =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 K=C3=B6ln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: Brett S. <bs...@no...> - 2006-03-05 21:48:35
|
Is there any chance of getting the Interrupt bug fix back ported? Stefan Reuter wrote: > Brett Sutton wrote: > >> Is the 0.3 branch considered stable? >> > > no 0.3 is not yet stable put I plan to provide a release candidate for > 0.3 in april. Neverthlesse I don't expect any major changes to the > interfaces as long as you don't use org.asteriskjava.live. > > =Stefan > > |
From: King H. <kin...@ne...> - 2006-03-05 12:59:53
|
Hi, I was test the robustness of Asterisk-Java with an un-stable Asterisk = server. That is, to see if there is any problem in Asterisk-Java = handling of server disconnects and reconnects. Below is the example = HelloEvents.java program with some minor modification so that the run() = methed will not exit: public class HelloEvents implements ManagerEventHandler { private ManagerConnection managerConnection; public HelloEvents() throws IOException { ManagerConnectionFactory factory =3D new = ManagerConnectionFactory("localhost", 5038, "username", "password"); this.managerConnection =3D factory.createManagerConnection(); } public void run() throws IOException, AuthenticationFailedException, TimeoutException, InterruptedException { // register for events managerConnection.addEventHandler(this); =20 // connect to Asterisk and log in managerConnection.login(); // request channel state managerConnection.sendAction(new StatusAction()); =20 while (true) { Thread.sleep(10000); }=20 // and finally log off and disconnect //managerConnection.logoff(); } public void handleEvent(ManagerEvent event) { // just print received events System.out.println(event); } public static void main(String[] args) throws Exception { HelloEvents helloEvents; helloEvents =3D new HelloEvents(); helloEvents.run(); } } After stating the program I got the following from the console: 2006/3/5 =E4=B8=8B=E5=8D=88 04:12:04 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Connecting to 192.168.1.109 port 5038 org.asteriskjava.manager.event.ConnectEvent[dateReceived=3DSun Mar 05 = 16:12:05 GMT+08:00 2006,protocolidentifier=3D'Asterisk Call = Manager/1.0',systemHashcode=3D22507120] 2006/3/5 =E4=B8=8B=E5=8D=88 04:12:05 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Connected via Asterisk Call Manager/1.0 2006/3/5 =E4=B8=8B=E5=8D=88 04:12:05 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Successfully logged in org.asteriskjava.manager.event.StatusCompleteEvent[dateReceived=3DSun = Mar 05 16:12:05 GMT+08:00 = 2006,internalactionid=3D'8949356_3',actionid=3D'null',systemHashcode=3D19= 647819] 2006/3/5 =E4=B8=8B=E5=8D=88 04:12:05 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Determined Asterisk version: Asterisk 1.2 org.asteriskjava.manager.event.ShutdownEvent[dateReceived=3DSun Mar 05 = 16:12:14 GMT+08:00 = 2006,privilege=3D'system,all',restart=3D'false',shutdown=3D'Cleanly',syst= emHashcode=3D849515] org.asteriskjava.manager.event.DisconnectEvent[dateReceived=3DSun Mar 05 = 16:12:14 GMT+08:00 2006,systemHashcode=3D17171576] This is all normal. Now, I do a =E2=80=9Crestart now=E2=80=9D on the = asterisk server and I got the following: 2006/3/5 =E4=B8=8B=E5=8D=88 04:21:16 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Closing socket. org.asteriskjava.manager.event.ConnectEvent[dateReceived=3DSun Mar 05 = 16:21:16 GMT+08:00 2006,protocolidentifier=3D'Asterisk Call = Manager/1.0',systemHashcode=3D14372770] 2006/3/5 =E4=B8=8B=E5=8D=88 04:21:16 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Connecting to 192.168.1.109 port 5038 2006/3/5 =E4=B8=8B=E5=8D=88 04:21:16 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Connected via Asterisk Call Manager/1.0 2006/3/5 =E4=B8=8B=E5=8D=88 04:21:16 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Successfully logged in 2006/3/5 =E4=B8=8B=E5=8D=88 04:21:16 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Determined Asterisk version: Asterisk 1.0 2006/3/5 =E4=B8=8B=E5=8D=88 04:21:16 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Successfully reconnected. org.asteriskjava.manager.event.RegistryEvent[dateReceived=3DSun Mar 05 = 16:21:18 GMT+08:00 = 2006,privilege=3D'system,all',domain=3D'152.104.231.22',username=3D'null'= ,cause=3D'null',status=3D'Registered',channel=3D'SIP',systemHashcode=3D20= 415955] Notice the line which display the Asterisk version. It now says that it = is=20 =E2=80=9CAsterisk 1.0=E2=80=9D. I think this is caused by Asterisk-Java = having problem sending An action to determine the version of asterisk. The connection seems to work fine for receiving events, it just have = problem sending Actions. This test was done with Asterisk-Java 0.3, but I think the problem also = exists in 0.2. Thanks. King |
From: King H. <kin...@ne...> - 2006-03-05 10:18:42
|
Hi, =20 I was test the robustness of Asterisk-Java with an un-stable Asterisk = server. That is, to see if there is any problem in Asterisk-Java = handling of server disconnects and reconnects. Below is the example = HelloEvents.java program with some minor modification so that the run() = methed will not exit: =20 public class HelloEvents implements ManagerEventHandler { private ManagerConnection managerConnection; =20 public HelloEvents() throws IOException { ManagerConnectionFactory factory =3D new = ManagerConnectionFactory("localhost", 5038, "username", "password"); this.managerConnection =3D factory.createManagerConnection(); } =20 public void run() throws IOException, AuthenticationFailedException, TimeoutException, InterruptedException { // register for events managerConnection.addEventHandler(this); =20 // connect to Asterisk and log in managerConnection.login(); =20 // request channel state managerConnection.sendAction(new StatusAction()); =20 while (true) { Thread.sleep(10000); }=20 =20 // and finally log off and disconnect //managerConnection.logoff(); } =20 public void handleEvent(ManagerEvent event) { // just print received events System.out.println(event); } =20 public static void main(String[] args) throws Exception { HelloEvents helloEvents; =20 helloEvents =3D new HelloEvents(); helloEvents.run(); } } =20 =20 =20 After stating the program I got the following from the console: =20 2006/3/5 =E4=B8=8B=E5=8D=88 04:12:04 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Connecting to 192.168.1.109 port 5038 org.asteriskjava.manager.event.ConnectEvent[dateReceived=3DSun Mar 05 = 16:12:05 GMT+08:00 2006,protocolidentifier=3D'Asterisk Call = Manager/1.0',systemHashcode=3D22507120] 2006/3/5 =E4=B8=8B=E5=8D=88 04:12:05 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Connected via Asterisk Call Manager/1.0 2006/3/5 =E4=B8=8B=E5=8D=88 04:12:05 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Successfully logged in org.asteriskjava.manager.event.StatusCompleteEvent[dateReceived=3DSun = Mar 05 16:12:05 GMT+08:00 = 2006,internalactionid=3D'8949356_3',actionid=3D'null',systemHashcode=3D19= 647819] 2006/3/5 =E4=B8=8B=E5=8D=88 04:12:05 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Determined Asterisk version: Asterisk 1.2 org.asteriskjava.manager.event.ShutdownEvent[dateReceived=3DSun Mar 05 = 16:12:14 GMT+08:00 = 2006,privilege=3D'system,all',restart=3D'false',shutdown=3D'Cleanly',syst= emHashcode=3D849515] org.asteriskjava.manager.event.DisconnectEvent[dateReceived=3DSun Mar 05 = 16:12:14 GMT+08:00 2006,systemHashcode=3D17171576] =20 =20 =20 This is all normal. Now, I do a =E2=80=9Crestart now=E2=80=9D on the = asterisk server and I got the following: =20 2006/3/5 =E4=B8=8B=E5=8D=88 04:21:16 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Closing socket. org.asteriskjava.manager.event.ConnectEvent[dateReceived=3DSun Mar 05 = 16:21:16 GMT+08:00 2006,protocolidentifier=3D'Asterisk Call = Manager/1.0',systemHashcode=3D14372770] 2006/3/5 =E4=B8=8B=E5=8D=88 04:21:16 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Connecting to 192.168.1.109 port 5038 2006/3/5 =E4=B8=8B=E5=8D=88 04:21:16 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Connected via Asterisk Call Manager/1.0 2006/3/5 =E4=B8=8B=E5=8D=88 04:21:16 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Successfully logged in 2006/3/5 =E4=B8=8B=E5=8D=88 04:21:16 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Determined Asterisk version: Asterisk 1.0 2006/3/5 =E4=B8=8B=E5=8D=88 04:21:16 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Successfully reconnected. org.asteriskjava.manager.event.RegistryEvent[dateReceived=3DSun Mar 05 = 16:21:18 GMT+08:00 = 2006,privilege=3D'system,all',domain=3D'152.104.231.22',username=3D'null'= ,cause=3D'null',status=3D'Registered',channel=3D'SIP',systemHashcode=3D20= 415955] =20 =20 =20 Notice the line which display the Asterisk version. It now says that it = is=20 =E2=80=9CAsterisk 1.0=E2=80=9D. I think this is caused by Asterisk-Java = having problem sending An action to determine the version of asterisk. =20 The connection seems to work fine for receiving events, it just have = problem sending Actions. =20 This test was done with Asterisk-Java 0.3, but I think the problem also = exists in 0.2. =20 =20 =20 Thanks. =20 King |
From: King H. <kin...@ne...> - 2006-03-05 08:26:54
|
Hi, =20 I was test the robustness of Asterisk-Java with an un-stable Asterisk = server. That is, to see if there is any problem in Asterisk-Java = handling of server disconnects and reconnects. Below is the example = HelloEvents.java program with some minor modification so that the run() = methed will not exit: =20 public class HelloEvents implements ManagerEventHandler { private ManagerConnection managerConnection; =20 public HelloEvents() throws IOException { ManagerConnectionFactory factory =3D new = ManagerConnectionFactory("localhost", 5038, "username", "password"); this.managerConnection =3D factory.createManagerConnection(); } =20 public void run() throws IOException, AuthenticationFailedException, TimeoutException, InterruptedException { // register for events managerConnection.addEventHandler(this); =20 // connect to Asterisk and log in managerConnection.login(); =20 // request channel state managerConnection.sendAction(new StatusAction()); =20 while (true) { Thread.sleep(10000); }=20 =20 // and finally log off and disconnect //managerConnection.logoff(); } =20 public void handleEvent(ManagerEvent event) { // just print received events System.out.println(event); } =20 public static void main(String[] args) throws Exception { HelloEvents helloEvents; =20 helloEvents =3D new HelloEvents(); helloEvents.run(); } } =20 =20 =20 After stating the program I got the following from the console: =20 2006/3/5 =E4=B8=8B=E5=8D=88 04:12:04 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Connecting to 192.168.1.109 port 5038 org.asteriskjava.manager.event.ConnectEvent[dateReceived=3DSun Mar 05 = 16:12:05 GMT+08:00 2006,protocolidentifier=3D'Asterisk Call = Manager/1.0',systemHashcode=3D22507120] 2006/3/5 =E4=B8=8B=E5=8D=88 04:12:05 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Connected via Asterisk Call Manager/1.0 2006/3/5 =E4=B8=8B=E5=8D=88 04:12:05 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Successfully logged in org.asteriskjava.manager.event.StatusCompleteEvent[dateReceived=3DSun = Mar 05 16:12:05 GMT+08:00 = 2006,internalactionid=3D'8949356_3',actionid=3D'null',systemHashcode=3D19= 647819] 2006/3/5 =E4=B8=8B=E5=8D=88 04:12:05 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Determined Asterisk version: Asterisk 1.2 org.asteriskjava.manager.event.ShutdownEvent[dateReceived=3DSun Mar 05 = 16:12:14 GMT+08:00 = 2006,privilege=3D'system,all',restart=3D'false',shutdown=3D'Cleanly',syst= emHashcode=3D849515] org.asteriskjava.manager.event.DisconnectEvent[dateReceived=3DSun Mar 05 = 16:12:14 GMT+08:00 2006,systemHashcode=3D17171576] =20 =20 =20 This is all normal. Now, I do a =E2=80=9Crestart now=E2=80=9D on the = asterisk server and I got the following: =20 2006/3/5 =E4=B8=8B=E5=8D=88 04:21:16 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Closing socket. org.asteriskjava.manager.event.ConnectEvent[dateReceived=3DSun Mar 05 = 16:21:16 GMT+08:00 2006,protocolidentifier=3D'Asterisk Call = Manager/1.0',systemHashcode=3D14372770] 2006/3/5 =E4=B8=8B=E5=8D=88 04:21:16 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Connecting to 192.168.1.109 port 5038 2006/3/5 =E4=B8=8B=E5=8D=88 04:21:16 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Connected via Asterisk Call Manager/1.0 2006/3/5 =E4=B8=8B=E5=8D=88 04:21:16 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Successfully logged in 2006/3/5 =E4=B8=8B=E5=8D=88 04:21:16 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Determined Asterisk version: Asterisk 1.0 2006/3/5 =E4=B8=8B=E5=8D=88 04:21:16 = org.asteriskjava.util.impl.JavaLoggingLog info =E8=B3=87=E8=A8=8A: Successfully reconnected. org.asteriskjava.manager.event.RegistryEvent[dateReceived=3DSun Mar 05 = 16:21:18 GMT+08:00 = 2006,privilege=3D'system,all',domain=3D'152.104.231.22',username=3D'null'= ,cause=3D'null',status=3D'Registered',channel=3D'SIP',systemHashcode=3D20= 415955] =20 =20 =20 Notice the line which display the Asterisk version. It now says that it = is=20 =E2=80=9CAsterisk 1.0=E2=80=9D. I think this is caused by Asterisk-Java = having problem sending An action to determine the version of asterisk. =20 The connection seems to work fine for receiving events, it just have = problem sending Actions. =20 This test was done with Asterisk-Java 0.3, but I think the problem also = exists in 0.2. =20 =20 =20 Thanks. =20 King |
From: Stefan R. <sr...@re...> - 2006-03-04 20:45:36
|
Brett Sutton wrote: > Is the 0.3 branch considered stable? no 0.3 is not yet stable put I plan to provide a release candidate for 0.3 in april. Neverthlesse I don't expect any major changes to the interfaces as long as you don't use org.asteriskjava.live. =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 K=C3=B6ln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: Brett S. <bs...@no...> - 2006-03-04 20:13:33
|
Stephan, Thanks for the fix. Is the 0.3 branch considered stable? Regards, Brett King Ho wrote: > Is there any documentation describing the changes between 0.2 and 0.3? > > Thanks. > > King > > -----Original Message----- > From: ast...@li... [mailto:ast...@li...] On Behalf Of Stefan Reuter > Sent: Saturday, March 04, 2006 8:33 PM > To: ast...@li... > Subject: Re: [Asterisk-java-users] ManagerReader Interrupt > > Brett Sutton wrote: > >> I believe a better way of dealing with this problem is to use >> Object.wait(x) and Object.notify. For the purposes of sendAction the >> affects are identical without the nasty side effects of calling interrupt. >> >> I hope this makes some sense. >> > > yes it makes a lot of sense. I followed your suggestion and it seems to > work nicely. It also simplifies DefaultManagerConnection. > Its in 0.3 now - if you have a chance please test the latest version > from svn trunk: > http://svn.reucon.net/repos/asterisk-java/trunk > > here is the diff: > http://svn.reucon.net/fisheye/viewrep/repos/asterisk-java/trunk/src/main/java/org/asteriskjava/manager/DefaultManagerConnection.java?r1=40&r2=81 > > Thanks! > > =Stefan > > |
From: King H. <kin...@ne...> - 2006-03-04 15:40:14
|
As this stray interrupt exception problem is gone, I'll love to know how = people feel about having only one thread for sending command to = asterisk. This will save the opening of a connection and the login = required. Particularly, is the current Asterisk manager connection stable enough = for this approach to work or people think that sending each command = through a new connection is a safer approach. Thanks in advance. King -----Original Message----- From: ast...@li... = [mailto:ast...@li...] On Behalf Of = Stefan Reuter Sent: Saturday, March 04, 2006 8:33 PM To: ast...@li... Subject: Re: [Asterisk-java-users] ManagerReader Interrupt Brett Sutton wrote: > I believe a better way of dealing with this problem is to use > Object.wait(x) and Object.notify. For the purposes of sendAction the > affects are identical without the nasty side effects of calling = interrupt. >=20 > I hope this makes some sense. yes it makes a lot of sense. I followed your suggestion and it seems to work nicely. It also simplifies DefaultManagerConnection. Its in 0.3 now - if you have a chance please test the latest version from svn trunk: http://svn.reucon.net/repos/asterisk-java/trunk here is the diff: http://svn.reucon.net/fisheye/viewrep/repos/asterisk-java/trunk/src/main/= java/org/asteriskjava/manager/DefaultManagerConnection.java?r1=3D40&r2=3D= 81 Thanks! =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 K=C3=B6ln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: Tony M. <to...@am...> - 2006-03-04 14:32:21
|
In case anybody has problems setting up SVN and MAVEN2 in their Eclipse environment here is what I did. I use Eclipse but have neither SVN (subversion), nor MAVEN2 experience, = yet I was able to download the source and quickly get the unit tests = running. I did it by: Adding the two update sites to my Eclipse plugin manager and downloading = the plugins: - Subversion plugin http://subclipse.tigris.org/ =20 - Maven 2 plugin http://m2eclipse.codehaus.org/ Configured Maven2 plugin: a) Go to menu window->preferences and configure a location for your = local maven jar repository folder (this is where jars will be automatically downloaded) Downloaded the asterisk-java project from SVN: a) Opened the newly installed "Eclipse SVN Repository Exploring = Perspective" (Window->Open Perspective) b) Created a new repository entry (right mouse click new repository = entry) using the following url: http://svn.reucon.net/repos/asterisk-java/trunk c) From the SVN repository view I checked out the trunk as a project = (did not use the New Project Creation wizard) Built and ran asterisk java unit tests: a) Right mouse clicked on the newly created project and selected Maven2->enable b) Selected Maven2->add dependencies (adds jars to classpath) c) Selected Maven2->add sources (adds src folders to src folder path) d) Selected src/test/java folder and "run as junit test" Tony -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of = Stefan Reuter Sent: Saturday, March 04, 2006 2:46 PM To: ast...@li... Subject: [Asterisk-java-users] Change from CVS to SVN Tony, yes I moved away from sourceforge's CVS due to several reasons: (a) Delay between developer CVS (master) and public CVS (replication) (b) Huge delay for changes to appear in fisheye (usually 24h) (c) write access to CVS was painful slow most of the time even completly unavailable from time to time (d) CVS sucks compared to SVN ;) (ok sf offeres experimental SVN, but with (a)-(c) I choose not to give it a try) (a) often resulted in problems with changes not being immediately available for testing by users and (b) rendered fisheye rather useless. Therefore the new source repository is available at http://svn.reucon.net/ with Asterisk-Java's trunk at http://svn.reucon.net/repos/asterisk-java/trunk/ Ah and while listing all those URLs, Asterisk-Java's bugtracker is available at http://jira.reucon.com/browse/AJ Asterisk-Java's official distribution site is http://www.asteriskjava.org/ Fisheye access is available at http://svn.reucon.net/fisheye/changelog/repos including very cool rss feeds for changes at http://svn.reucon.net/fisheye/rsscfg/repos If you are using Eclipse for development have a look at subclipse http://subclipse.tigris.org/ It integrates SVN into Eclipse the same way you are used to with the native CVS support offered by Eclipse. =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 K=F6ln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: Stefan R. <sr...@re...> - 2006-03-04 13:46:03
|
Tony, yes I moved away from sourceforge's CVS due to several reasons: (a) Delay between developer CVS (master) and public CVS (replication) (b) Huge delay for changes to appear in fisheye (usually 24h) (c) write access to CVS was painful slow most of the time even completly unavailable from time to time (d) CVS sucks compared to SVN ;) (ok sf offeres experimental SVN, but with (a)-(c) I choose not to give it a try) (a) often resulted in problems with changes not being immediately available for testing by users and (b) rendered fisheye rather useless. Therefore the new source repository is available at http://svn.reucon.net/ with Asterisk-Java's trunk at http://svn.reucon.net/repos/asterisk-java/trunk/ Ah and while listing all those URLs, Asterisk-Java's bugtracker is available at http://jira.reucon.com/browse/AJ Asterisk-Java's official distribution site is http://www.asteriskjava.org/ Fisheye access is available at http://svn.reucon.net/fisheye/changelog/repos including very cool rss feeds for changes at http://svn.reucon.net/fisheye/rsscfg/repos If you are using Eclipse for development have a look at subclipse http://subclipse.tigris.org/ It integrates SVN into Eclipse the same way you are used to with the native CVS support offered by Eclipse. =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 K=F6ln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: Tony M. <to...@am...> - 2006-03-04 13:23:19
|
Stefan, I got my earlier versions of asterisk-java from sourceforge CVS. Is the = new repository going to be the subversion reucon site? Tony -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of = Stefan Reuter Sent: Saturday, March 04, 2006 1:40 PM To: ast...@li... Subject: Re: [Asterisk-java-users] Timing issue with ResourceBundleMappingStrategy 0.3 is currently available only from svn at http://svn.reucon.net/repos/asterisk-java/trunk you are right that the synchronized block might be a small performance hit but I dont think it has any real world impact as it is (a) only passed once per AGIRequest and (b) is really small once mappings has been initialized (only a check for null). > Unless you are planning on allowing the reloading of a new mapping > after the first one is loaded. Furthermore, as there is a constructor > that allows the specification of the bundle name, I don't think there > is really a need for setResourceBundleName(). > Since I don't use the setResourceBundleName() myself, I am biased ;) I am using setResourceBundleName() with setter based dependency injection using the spring framework. In this case spring creates the instance using its default constructor and later calls its setters for each specified property. =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 K=F6ln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: Stefan R. <sr...@re...> - 2006-03-04 13:00:38
|
King Ho wrote: > Found it under the SVN directory!! oops i should read all my mails before hitting reply ;) --=20 reuter network consulting Neusser Str. 110 50760 K=C3=B6ln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: Stefan R. <sr...@re...> - 2006-03-04 12:59:32
|
King Ho wrote: > Is there any documentation describing the changes between 0.2 and 0.3? I wouldn't call it "documentation" yet but there is a very short ChangeLog available at http://svn.reucon.net/repos/asterisk-java/trunk/ChangeLog =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 K=C3=B6ln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: King H. <kin...@ne...> - 2006-03-04 12:46:14
|
Found it under the SVN directory!! King -----Original Message----- From: King Ho [mailto:kin...@ne...]=20 Sent: Saturday, March 04, 2006 8:43 PM To: 'ast...@li...' Subject: RE: [Asterisk-java-users] ManagerReader Interrupt Is there any documentation describing the changes between 0.2 and 0.3? Thanks. King -----Original Message----- From: ast...@li... = [mailto:ast...@li...] On Behalf Of = Stefan Reuter Sent: Saturday, March 04, 2006 8:33 PM To: ast...@li... Subject: Re: [Asterisk-java-users] ManagerReader Interrupt Brett Sutton wrote: > I believe a better way of dealing with this problem is to use > Object.wait(x) and Object.notify. For the purposes of sendAction the > affects are identical without the nasty side effects of calling = interrupt. >=20 > I hope this makes some sense. yes it makes a lot of sense. I followed your suggestion and it seems to work nicely. It also simplifies DefaultManagerConnection. Its in 0.3 now - if you have a chance please test the latest version from svn trunk: http://svn.reucon.net/repos/asterisk-java/trunk here is the diff: http://svn.reucon.net/fisheye/viewrep/repos/asterisk-java/trunk/src/main/= java/org/asteriskjava/manager/DefaultManagerConnection.java?r1=3D40&r2=3D= 81 Thanks! =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 K=C3=B6ln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: King H. <kin...@ne...> - 2006-03-04 12:43:13
|
Is there any documentation describing the changes between 0.2 and 0.3? Thanks. King -----Original Message----- From: ast...@li... = [mailto:ast...@li...] On Behalf Of = Stefan Reuter Sent: Saturday, March 04, 2006 8:33 PM To: ast...@li... Subject: Re: [Asterisk-java-users] ManagerReader Interrupt Brett Sutton wrote: > I believe a better way of dealing with this problem is to use > Object.wait(x) and Object.notify. For the purposes of sendAction the > affects are identical without the nasty side effects of calling = interrupt. >=20 > I hope this makes some sense. yes it makes a lot of sense. I followed your suggestion and it seems to work nicely. It also simplifies DefaultManagerConnection. Its in 0.3 now - if you have a chance please test the latest version from svn trunk: http://svn.reucon.net/repos/asterisk-java/trunk here is the diff: http://svn.reucon.net/fisheye/viewrep/repos/asterisk-java/trunk/src/main/= java/org/asteriskjava/manager/DefaultManagerConnection.java?r1=3D40&r2=3D= 81 Thanks! =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 K=C3=B6ln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: Stefan R. <sr...@re...> - 2006-03-04 12:40:25
|
0.3 is currently available only from svn at http://svn.reucon.net/repos/asterisk-java/trunk you are right that the synchronized block might be a small performance hit but I dont think it has any real world impact as it is (a) only passed once per AGIRequest and (b) is really small once mappings has been initialized (only a check for null). > Unless you are planning on allowing the reloading of a new mapping > after the first one is loaded. Furthermore, as there is a constructor > that allows the specification of the bundle name, I don't think there > is really a need for setResourceBundleName(). > Since I don't use the setResourceBundleName() myself, I am biased ;) I am using setResourceBundleName() with setter based dependency injection using the spring framework. In this case spring creates the instance using its default constructor and later calls its setters for each specified property. =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 K=C3=B6ln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: Stefan R. <sr...@re...> - 2006-03-04 12:33:21
|
Brett Sutton wrote: > I believe a better way of dealing with this problem is to use > Object.wait(x) and Object.notify. For the purposes of sendAction the > affects are identical without the nasty side effects of calling interru= pt. >=20 > I hope this makes some sense. yes it makes a lot of sense. I followed your suggestion and it seems to work nicely. It also simplifies DefaultManagerConnection. Its in 0.3 now - if you have a chance please test the latest version from svn trunk: http://svn.reucon.net/repos/asterisk-java/trunk here is the diff: http://svn.reucon.net/fisheye/viewrep/repos/asterisk-java/trunk/src/main/= java/org/asteriskjava/manager/DefaultManagerConnection.java?r1=3D40&r2=3D= 81 Thanks! =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 K=C3=B6ln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: Stefan R. <sr...@re...> - 2006-03-04 12:28:32
|
King Ho wrote: > I look through the code but can't find a way to login with Events turne= d off. I know there is a LoginAction where I can call setEvents("off"). B= ut I can't send the action until I am already login. Am I missing somethi= ng? this is still missing in the ManagerConnection interface. I added a login(String events) method for 0.3 =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 K=C3=B6ln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |