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: Stefan R. <sr...@re...> - 2006-01-12 00:03:46
|
> The last comment might suggest that the quotes around the escape digits > might lead the interpreter to play the file fully as the previous example > does not have any quotes on the escape digit. nope escaping just works fine. I suggest you to have a look if your general DTMF setup is ok as this problem does not seem to directly relate to the AGI stuff. > Does anyone have an example of a working AGI STREAM FILE command with esc= ape > digits provided. I tried it in my test environment with Asterisk 1.2.1 and Asterisk-Java 0.2. Here is my code: TestAGI.java public class TestAGI extends BaseAGIScript { public void service(AGIRequest request, AGIChannel channel) throws AGIException { // answer the call answer(); =20 char c =3D streamFile("vm-instructions", "1"); =20 System.out.println("got char: '" + c + "'"); // end the call hangup(); } public static void main(String[] args) throws IOException { new DefaultAGIServer().startup(); } } fastagi-mapping.properties: test.agi =3D TestAGI Output on Asterisk CLI with agi debug: AGI Rx << ANSWER AGI Tx >> 200 result=3D0 AGI Rx << STREAM FILE "vm-instructions" "1" AGI Tx >> 200 result=3D49 endpos=3D45760 AGI Rx << HANGUP Output of the program after pressing DTMF 1: got char: '1' =3DStefan |
From: Stefan R. <sr...@re...> - 2006-01-11 23:48:08
|
Jesse, I thought a little bit more about the problem and the ngrep output: Asterisk sends its header, you send the originate action, asterisk resends the header, you resend the action, asterisk sends the response. I might be wrong but one explanation for this is that you got disconnected the first time and asterisk-java's autoreconnect feature creates a new socket connection. This would explain the double banner. To sched some light on this it would be nice to have the asterisk-java debug log available. Just put log4j 1.2.8 on the classpath along with a log4j.properties like this: log4j.rootCategory=3DDEBUG, Console #log4j.rootCategory=3DDEBUG, File log4j.appender.Console =3D org.apache.log4j.ConsoleAppender log4j.appender.Console.layout =3D org.apache.log4j.PatternLayout log4j.appender.Console.layout.ConversionPattern =3D %d %-5p [%t] %c - %m\n log4j.appender.File =3D org.apache.log4j.FileAppender log4j.appender.File.file =3D asterisk-java.log log4j.appender.File.append =3D false log4j.appender.File.layout =3D org.apache.log4j.PatternLayout log4j.appender.File.layout.ConversionPattern =3D %d %-5p [%t] %c - %m\n also with Asterisk 1.2 I noticed the following parameter in Asterisk's manager.conf: ; If the device connected via this user accepts input slowly, ; the timeout for writes to it can be increased to keep it ; from being disconnected (value is in milliseconds) ; ; writetimeout =3D 100 maybe this property leads to the disconnection (but don't ask me why you dont get disconnected the second time). Please try to increase the writetimeout and see if that changes the behavior. Regarding the ngrep output it might help to add timestamps (option -t or -T). =3DStefan |
From: Stefan R. <sr...@re...> - 2006-01-11 23:29:16
|
Hi, > I was wondering if there was a way to return the channel and the data > values from the following OriginateAction actions or even the > callerid: the uniqueId for the call that is originated is contained in the OriginateSuccessEvent generated in response to your OriginateAction. You can use the uniqueId to relate other events for that call to your OriginateAction. Please not that the OriginateSuccessEvent is only generated if you set async to true. Example: OriginateAction originateAction =3D new OriginateAction(); originateAction.setChannel("SIP/1310"); originateAction.setExten("1399"); originateAction.setContext("from-local"); originateAction.setPriority(new Integer(1)); originateAction.setTimeout(new Long(30000)); originateAction.setAsync(Boolean.TRUE); ResponseEvents responseEvents =3D=20 c.sendEventGeneratingAction(originateAction, 30000); =20 for (ManagerEvent event :=20 (Collection<ManagerEvent>) responseEvents.getEvents()) { if (event instanceof OriginateSuccessEvent) { OriginateSuccessEvent success =3D (OriginateSuccessEvent) event; System.out.println("Originate was successful: uniqueId " + success.getUniqueId()); } else if (event instanceof OriginateFailureEvent) { System.out.println("Originate failed"); } } > Also, I have downloaded the asterisk-java-0.2 jar and the > asterisk-java-0.2-src and cannot find the API docs for asterisk-java. > Am I blind or are they not part of the download? You should download asterisk-java-0.2.zip, for example from http://kent.dl.sourceforge.net/sourceforge/asterisk-java/asterisk-java-0.2.= zip this archive contains the api docs in /asterisk-java-0.2/docs/apidocs/ where did you get the jar file from? =3DStefan |
From: Forte, G. \(GFORTE\) <gf...@ar...> - 2006-01-11 21:01:01
|
Hello, =20 I am using the OriginateResponse.getAttributes() method and was = wondering if I should be getting more than the following: =20 [code] Map or =3D originateResponse.getAttributes(); =20 Iterator it =3D or.entrySet().iterator(); while(it.hasNext()) { Map.Entry pairs =3D (Map.Entry)it.next(); = System.out.println("key=3D"+pairs.getKey()+"///"+pairs.getValue()); } =20 [/code] =20 My results are: =20 key=3Dactionid///12893404_3# key=3Dmessage///Originate successfully queued key=3Dresponse///Success =20 =20 I was wondering if there was a way to return the channel and the data = values from the following OriginateAction actions or even the callerid: =20 originateAction.setChannel(CHANNEL); originateAction.setApplication("dial"); originateAction.setData(DATA); =20 Also, I have downloaded the asterisk-java-0.2 jar and the = asterisk-java-0.2-src and cannot find the API docs for asterisk-java. Am I blind or are they not part of the download? Thanks In Advance! |
From: John M. <jo...@sy...> - 2006-01-11 18:03:13
|
Hi Stefan, I have upgraded to 0.2 on Asterisk 1.0.9 and I have the same problems. I also tried other escape characters such as 1, 2, etc. Using the AGI debugging I notice the AGI command used has the following syntax. >>> STREAM FILE "myprompt" "1" where the digit "1" is the valid escape digit. I found the following example in the AGI Help ... STREAM FILE welcome # Plays the file 'welcome'. If the user presses the '#' key the playing stops and the command returns 200 result=35 Note Don't give an extension with the filename. Asterisk looks for the file to play in /var/lib/asterisk/sounds Use double quotes if the message should play completely. For example to play audio file 'welcome' without allowing interruption by digits use: STREAM FILE welcome "" The last comment might suggest that the quotes around the escape digits might lead the interpreter to play the file fully as the previous example does not have any quotes on the escape digit. Does anyone have an example of a working AGI STREAM FILE command with escape digits provided. thanks for any help, regards, John. -----Original Message----- From: ast...@li... [mailto:ast...@li...]On Behalf Of Stefan Reuter Sent: 16 December 2005 12:01 To: ast...@li... Subject: Re: [Asterisk-java-users] Interrupting StreamFile with DTMF digits. John Melody schrieb: > Yes, Jonathan, I am receiving DTMF happily in the rest of the application. > However, all the rest of the DTMF input takes place in extension.conf. It > appears to be only when the application is in the FastAGI script that it > does not recognise the DTMF tones. > > Is there anything that has to be enabled to pass DTMF digits to AGI? no it usually "just works" :) I would suggest you to use the latest release of Asterisk-Java (i.e. 0.2) and try to reproduce the problem with that version. And you could try to allow other dtmf digits to be pressed like streamFile("myprompt", "1234"); =Stefan |
From: Jesse L. <je...@jg...> - 2006-01-11 16:37:06
|
Stefan, Well, I haven't fixed the problem, but I do have more information now. I am using Windows 2000 with JDK1.5.0_04 and asterisk-java-0.2. When I try to connect to the remote server over the VPN, it gives the odd behavior we have been discussing. I also have a local box here, which is 1.2.0. It connects just fine (although slow initially). I had my associate try this on his machine which is on the other end of the VPN. He was able to connect to that original server (1.2.1) just fine. So I think the problem is combining windows with the JDK with the VPN. I was able to use telnet while in windows to connect to that original server, and it seemed to have worked fine. I think the ngrep I sent is the most telling. I have never seen asterisk send it's banner twice. It almost seems as though the first banner does not get acknowledged (in time), so it sends another one, then it handles the challenge request. I don't know what level this failure would be at, or what work around are available. I do need to get my app fixed, and therefore want to help find a workaround for this. If you could send me a java source that connects but does not send the ChallengeAction right away, I would like to see if Asterisk sends it's banner twice, or if the retransmission is caused by the ChallengeAction. Perhaps a pause between connecting and logging in would straighten things out. Thanks for all your help. J Stefan Reuter wrote: >Jesse Lang schrieb: > > >>Stefan, >> >>A laggy connection (along with the laggy windows stack) is my concern. >>Can I throw those commands in right before login()? >> >> > >yes you can also increase the timeouts further if needed. >Nevertless i would suggest to investigate the root cause for the laggy >connection as the manager api doesn't reallt make much sense if you >receive 10 secs delayed events ;) > >please tell me if that helps. i might add those two methodes to the >manager connection interface to remove the need for the clumsy cast. > >=Stefan > > > >>I am connecting to >>a server on the other end of a IPsec VPN. There is some latency on >>linux, but on windows it seems to go very slow (I can tell by the >>logs). I'll try to throw those commands in and see if that saves the day. >> >>Thanks so much for your reply! >> >>J >> >>On Tue, 10 Jan 2006, Stefan Reuter wrote: >> >> >> >>>Jesse, >>> >>> >>> >>>>I'm supposed to have a demo of this software tomorrow, so PLEASE help! >>>> >>>> >>>i tried hard to reproduce this but was unable. I am running Asterisk >>>1.2.1, A-J 0.2 and Sun JDK 1.5.0_06 on Windows XP. >>> >>> >>> >>>>I have a solution that works quite nicely on Linux (development >>>>environment), but when I try to use it on Windows, I get a >>>>TimeoutException on login(). >>>> >>>> >>>Is there another difference besides windows vs. linux? i.e. are you >>>running Asterisk on the same machine as your app? >>> >>> >>> >>>>manager = new ManagerConnectionFactory().getManagerConnection(hostname, >>>>username, password); >>>>manager.setSocketTimeout(5000); // I tried increasing this, but that >>>>didn't work. >>>>manager.addEventHandler(this); >>>>manager.login(); >>>> >>>> >>>This looks fine. >>> >>> >>> >>>>Here is my ngrep output: >>>>T 192.168.0.250:1037 -> 172.16.50.240:5038 [AP] >>>> action: Challenge..actionid: 10584188_0#..authtype: >>>>MD5.... ## >>>>T 172.16.50.240:5038 -> 192.168.0.250:1037 [AP] >>>> Response: Success..ActionID: 10584188_0#..Challenge: >>>>320939773.... ### >>>> >>>>The really odd thing is that asterisk repeats it's signature line after >>>>the lib has given it a ChallengeAction, very odd. Any help would be >>>>appreciated. Thanks. >>>> >>>> >>>this is really strange... everything looks ok. >>>i really would like to reproduce and debug this. >>> >>>If your connection to Asterisk is really laggy you can try sth like this >>> >>>((DefaultManagerConnection) >>>managerConnection).setDefaultResponseTimeout(10000); >>> >>>((DefaultManagerConnection) >>>managerConnection).setDefaultEventTimeout(10000); >>> >>> >>>=Stefan >>> >>> >>> >>------------------------------------------------------- >>This SF.net email is sponsored by: Splunk Inc. Do you grep through log >>files >>for problems? Stop! Download the new AJAX search engine that makes >>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >>http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >>_______________________________________________ >>Asterisk-java-users mailing list >>Ast...@li... >>https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> > > > |
From: Eduard M. <ed...@ba...> - 2006-01-11 11:42:22
|
Thank you Stefan and Jesse, I will try with different threads. And thanks f= or=20 this API, great job! :) El Martes, 10 de Enero de 2006 21:17, Stefan Reuter escribi=F3: > Hi, > > the problem results from sending actions being sent from the event > handler thread which is not allowed and causes a lock up finally > resulting in the timeout. > Search the archives for details and have a look at the solution proposed > by Brett Sutton: > http://sourceforge.net/mailarchive/message.php?msg_id=3D14224869 > > Hope that helps, > Stefan > > On Tue, 2006-01-10 at 19:32 +0100, Edu wrote: > > Hi folks! > > > > I have some problems with HangupAction. If I send this Action it throws > > me a TimeoutException. Asterisk hangs up correctly and I've tried > > different and very long timeout values with no luck. > > It doesn't happen in all the code, for example, if I do a simple program > > with > > > > managerConnection.sendAction(new HangupAction("fakeChannel",90000); > > > > it returns a response with "No such channel" message. > > > > I'm using Asterisk-java 0.2 and Asterisk Bussines Edition ABE-A.1 > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files for problems? Stop! Download the new AJAX search engine that > > makes searching your log files as easy as surfing the web. DOWNLOAD > > SPLUNK! http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: anitha t. <ani...@gm...> - 2006-01-11 05:44:47
|
Namasthe to all, I am new for this group, and i am not getting how to handle events from asterisk, Actually i did "Multiple Calling " but now i need to handle the events, can anyone explain about this process.= I am using ManagerAPI protocal of Asterisk. Thanking you. -- Regards... AnithaTalakola, RaasiEnterpriseSol. |
From: Stefan R. <sr...@re...> - 2006-01-11 02:33:32
|
Jesse Lang schrieb: > Stefan, > > A laggy connection (along with the laggy windows stack) is my concern. > Can I throw those commands in right before login()? yes you can also increase the timeouts further if needed. Nevertless i would suggest to investigate the root cause for the laggy connection as the manager api doesn't reallt make much sense if you receive 10 secs delayed events ;) please tell me if that helps. i might add those two methodes to the manager connection interface to remove the need for the clumsy cast. =Stefan > I am connecting to > a server on the other end of a IPsec VPN. There is some latency on > linux, but on windows it seems to go very slow (I can tell by the > logs). I'll try to throw those commands in and see if that saves the day. > > Thanks so much for your reply! > > J > > On Tue, 10 Jan 2006, Stefan Reuter wrote: > >> Jesse, >> >>> I'm supposed to have a demo of this software tomorrow, so PLEASE help! >> >> >> i tried hard to reproduce this but was unable. I am running Asterisk >> 1.2.1, A-J 0.2 and Sun JDK 1.5.0_06 on Windows XP. >> >>> I have a solution that works quite nicely on Linux (development >>> environment), but when I try to use it on Windows, I get a >>> TimeoutException on login(). >> >> >> Is there another difference besides windows vs. linux? i.e. are you >> running Asterisk on the same machine as your app? >> >>> manager = new ManagerConnectionFactory().getManagerConnection(hostname, >>> username, password); >>> manager.setSocketTimeout(5000); // I tried increasing this, but that >>> didn't work. >>> manager.addEventHandler(this); >>> manager.login(); >> >> >> This looks fine. >> >>> Here is my ngrep output: >>> T 192.168.0.250:1037 -> 172.16.50.240:5038 [AP] >>> action: Challenge..actionid: 10584188_0#..authtype: >>> MD5.... ## >>> T 172.16.50.240:5038 -> 192.168.0.250:1037 [AP] >>> Response: Success..ActionID: 10584188_0#..Challenge: >>> 320939773.... ### >>> >>> The really odd thing is that asterisk repeats it's signature line after >>> the lib has given it a ChallengeAction, very odd. Any help would be >>> appreciated. Thanks. >> >> >> this is really strange... everything looks ok. >> i really would like to reproduce and debug this. >> >> If your connection to Asterisk is really laggy you can try sth like this >> >> ((DefaultManagerConnection) >> managerConnection).setDefaultResponseTimeout(10000); >> >> ((DefaultManagerConnection) >> managerConnection).setDefaultEventTimeout(10000); >> >> >> =Stefan >> > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Jesse L. <je...@jg...> - 2006-01-11 02:26:10
|
Stefan, A laggy connection (along with the laggy windows stack) is my concern. Can I throw those commands in right before login()? I am connecting to a server on the other end of a IPsec VPN. There is some latency on linux, but on windows it seems to go very slow (I can tell by the logs). I'll try to throw those commands in and see if that saves the day. Thanks so much for your reply! J On Tue, 10 Jan 2006, Stefan Reuter wrote: > Jesse, > >> I'm supposed to have a demo of this software tomorrow, so PLEASE help! > > i tried hard to reproduce this but was unable. I am running Asterisk > 1.2.1, A-J 0.2 and Sun JDK 1.5.0_06 on Windows XP. > >> I have a solution that works quite nicely on Linux (development >> environment), but when I try to use it on Windows, I get a >> TimeoutException on login(). > > Is there another difference besides windows vs. linux? i.e. are you > running Asterisk on the same machine as your app? > >> manager = new ManagerConnectionFactory().getManagerConnection(hostname, >> username, password); >> manager.setSocketTimeout(5000); // I tried increasing this, but that >> didn't work. >> manager.addEventHandler(this); >> manager.login(); > > This looks fine. > >> Here is my ngrep output: >> T 192.168.0.250:1037 -> 172.16.50.240:5038 [AP] >> action: Challenge..actionid: 10584188_0#..authtype: >> MD5.... ## >> T 172.16.50.240:5038 -> 192.168.0.250:1037 [AP] >> Response: Success..ActionID: 10584188_0#..Challenge: >> 320939773.... ### >> >> The really odd thing is that asterisk repeats it's signature line after >> the lib has given it a ChallengeAction, very odd. Any help would be >> appreciated. Thanks. > > this is really strange... everything looks ok. > i really would like to reproduce and debug this. > > If your connection to Asterisk is really laggy you can try sth like this > > ((DefaultManagerConnection) > managerConnection).setDefaultResponseTimeout(10000); > > ((DefaultManagerConnection) > managerConnection).setDefaultEventTimeout(10000); > > > =Stefan > |
From: Stefan R. <sr...@re...> - 2006-01-11 01:28:48
|
The other option is to use another MappingStrategy (either your own or the SimpleMappingStrategy that works with instantiated objects). I usually use AGI with the springframework and the SimpleMappingStrategy and let spring to the init stuff. =Stefan Jonathan Augenstine schrieb: > I had the same issue. You can do this by launching your own class > object before launching the asterisk-java AGI engine. Something like > the following will work. > > public static void main() { > // do your startup stuff > initialization(); > > DefaultAGIServer agi = new DefaultAGIServer(); > agi.startup(); > } > > Then you are off and running. > > Jonathan > > > On Tue, 2006-01-10 at 10:15 -0500, Vadim Berezniker wrote: > >>The AGI server first instantiates any given handler when a request for >>it comes in from asterisk. >>It would be nice if there was a way to have certain handlers be >>instantiated on startup. >>There are certain things I want to preload befor any calls come in. >>I don't want to the first call to be forced to wait until I'm done >>loading. >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >>for problems? Stop! Download the new AJAX search engine that makes >>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >>http://ads.osdn.com/?ad_idv37&alloc_id865&op=click >>_______________________________________________ >>Asterisk-java-users mailing list >>Ast...@li... >>https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Stefan R. <sr...@re...> - 2006-01-10 23:38:57
|
Jesse, > I'm supposed to have a demo of this software tomorrow, so PLEASE help! i tried hard to reproduce this but was unable. I am running Asterisk 1.2.1, A-J 0.2 and Sun JDK 1.5.0_06 on Windows XP. > I have a solution that works quite nicely on Linux (development > environment), but when I try to use it on Windows, I get a > TimeoutException on login(). Is there another difference besides windows vs. linux? i.e. are you running Asterisk on the same machine as your app? > manager = new ManagerConnectionFactory().getManagerConnection(hostname, > username, password); > manager.setSocketTimeout(5000); // I tried increasing this, but that > didn't work. > manager.addEventHandler(this); > manager.login(); This looks fine. > Here is my ngrep output: > T 192.168.0.250:1037 -> 172.16.50.240:5038 [AP] > action: Challenge..actionid: 10584188_0#..authtype: > MD5.... ## > T 172.16.50.240:5038 -> 192.168.0.250:1037 [AP] > Response: Success..ActionID: 10584188_0#..Challenge: > 320939773.... ### > > The really odd thing is that asterisk repeats it's signature line after > the lib has given it a ChallengeAction, very odd. Any help would be > appreciated. Thanks. this is really strange... everything looks ok. i really would like to reproduce and debug this. If your connection to Asterisk is really laggy you can try sth like this ((DefaultManagerConnection) managerConnection).setDefaultResponseTimeout(10000); ((DefaultManagerConnection) managerConnection).setDefaultEventTimeout(10000); =Stefan |
From: Jesse L. <je...@jg...> - 2006-01-10 22:33:50
|
Hello all, I'm supposed to have a demo of this software tomorrow, so PLEASE help! I have a solution that works quite nicely on Linux (development environment), but when I try to use it on Windows, I get a TimeoutException on login(). The message I get is that it times out waiting for Challenge. I'm using Asterisk 1.2.1 and asterisk-java-0.2. Here is my code snippet showing the login (keep in mind it works on Linux just fine): manager = new ManagerConnectionFactory().getManagerConnection(hostname, username, password); manager.setSocketTimeout(5000); // I tried increasing this, but that didn't work. manager.addEventHandler(this); manager.login(); ... Here is my ngrep output: #### T 172.16.50.240:5038 -> 192.168.0.250:1037 [AP] Asterisk Call Manager/1.0.. # T 192.168.0.250:1037 -> 172.16.50.240:5038 [AP] action: Challenge..actionid: 10584188_0#..authtype: MD5.... # T 172.16.50.240:5038 -> 192.168.0.250:1037 [AP] Asterisk Call Manager/1.0.. # T 192.168.0.250:1037 -> 172.16.50.240:5038 [AP] action: Challenge..actionid: 10584188_0#..authtype: MD5.... ## T 172.16.50.240:5038 -> 192.168.0.250:1037 [AP] Response: Success..ActionID: 10584188_0#..Challenge: 320939773.... ### The really odd thing is that asterisk repeats it's signature line after the lib has given it a ChallengeAction, very odd. Any help would be appreciated. Thanks. J |
From: Jesse L. <je...@jg...> - 2006-01-10 22:02:55
|
If you need to send an action from an event, create a thread to do it. Let me know if you need an example. Thanks. J Stefan Reuter wrote: >Hi, > >the problem results from sending actions being sent from the event >handler thread which is not allowed and causes a lock up finally >resulting in the timeout. >Search the archives for details and have a look at the solution proposed >by Brett Sutton: >http://sourceforge.net/mailarchive/message.php?msg_id=14224869 > >Hope that helps, >Stefan > >On Tue, 2006-01-10 at 19:32 +0100, Edu wrote: > > >>Hi folks! >> >>I have some problems with HangupAction. If I send this Action it throws me a >>TimeoutException. Asterisk hangs up correctly and I've tried different and >>very long timeout values with no luck. >>It doesn't happen in all the code, for example, if I do a simple program with >> >>managerConnection.sendAction(new HangupAction("fakeChannel",90000); >> >>it returns a response with "No such channel" message. >> >>I'm using Asterisk-java 0.2 and Asterisk Bussines Edition ABE-A.1 >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >>for problems? Stop! Download the new AJAX search engine that makes >>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >>http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >>_______________________________________________ >>Asterisk-java-users mailing list >>Ast...@li... >>https://lists.sourceforge.net/lists/listinfo/asterisk-java-user >> >s > > |
From: Stefan R. <sr...@re...> - 2006-01-10 20:23:47
|
Hi, the problem results from sending actions being sent from the event handler thread which is not allowed and causes a lock up finally resulting in the timeout. Search the archives for details and have a look at the solution proposed by Brett Sutton: http://sourceforge.net/mailarchive/message.php?msg_id=3D14224869 Hope that helps, Stefan On Tue, 2006-01-10 at 19:32 +0100, Edu wrote: > Hi folks! >=20 > I have some problems with HangupAction. If I send this Action it throws m= e a=20 > TimeoutException. Asterisk hangs up correctly and I've tried different an= d=20 > very long timeout values with no luck. > It doesn't happen in all the code, for example, if I do a simple program = with=20 >=20 > managerConnection.sendAction(new HangupAction("fakeChannel",90000); >=20 > it returns a response with "No such channel" message. >=20 > I'm using Asterisk-java 0.2 and Asterisk Bussines Edition ABE-A.1 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Jesse L. <je...@jg...> - 2006-01-10 19:19:11
|
Graham, They should be in the package you downloaded with the jar file. asterisk-docs-0.2/docs/apidocs/ Thanks. Forte, Graham (GFORTE) wrote: > Are the API docs available for download anywhere? > > Thanks! |
From: Forte, G. \(GFORTE\) <gf...@ar...> - 2006-01-10 19:00:11
|
Are the API docs available for download anywhere? =20 Thanks! |
From: Edu <ast...@ba...> - 2006-01-10 18:30:10
|
Hi folks! I have some problems with HangupAction. If I send this Action it throws me a TimeoutException. Asterisk hangs up correctly and I've tried different and very long timeout values with no luck. It doesn't happen in all the code, for example, if I do a simple program with managerConnection.sendAction(new HangupAction("fakeChannel",90000); it returns a response with "No such channel" message. I'm using Asterisk-java 0.2 and Asterisk Bussines Edition ABE-A.1 |
From: Jesse L. <je...@jg...> - 2006-01-10 17:53:30
|
Check out the javadocs: http://www.asteriskjava.org/latest/apidocs/index.html Later. J Forte, Graham (GFORTE) wrote: > Excellent! > Thanks Jesse! > > Is there a plcae where I can find all of the parameters for the > setApplication() method? > > TIA! > > ------------------------------------------------------------------------ > *From:* ast...@li... on behalf of > Jesse Lang > *Sent:* Tue 1/10/2006 12:04 PM > *To:* ast...@li... > *Subject:* Re: [Asterisk-java-users] initiating a call from one sip to > another through manager > > Graham, > > The example would look like this: > > originateAction = new OriginateAction(); > originateAction.setChannel("SIP/201"); > > originateAction.setApplication("Dial"); > originateAction.setData("SIP/200"); > > // originateAction.setContext("external"); > // originateAction.setExten("SIP/200"); > // originateAction.setPriority(new Integer(1)); > > originateAction.setTimeout(new Integer(60000)); > originateAction.setCallerId("201"); > > > Hope that helps. Thanks. > > J > > Forte, Graham (GFORTE) wrote: > > > I thought that the whole idea of the setExten() was to dial a selected > > extension from the selected phone. > > I am not finding any examples of how setApplication() or setData() is > > used. > > Could you send an example of how to implement these methods? > > > > ...... > > > > Perhaps I should join both SIPs to a conference? > > > > Sorry but am new to Asterisk and Asterisk-Java. > > > > > > TIA!!! > > > > ------------------------------------------------------------------------ > > *From:* ast...@li... on behalf of > > Jesse Lang > > *Sent:* Tue 1/10/2006 10:45 AM > > *To:* ast...@li... > > *Subject:* Re: [Asterisk-java-users] initiating a call from one sip to > > another through manager > > > > That's because you're sending a call to both, but unless you maybe pick > > them up right at the same time, they won't complete a connection and > > stay off hook. You should really send one of the extensions to the > > application dial. Look at setApplication() and setData(). > > > > J > > > > Forte, Graham (GFORTE) wrote: > > > > > Hello all, > > > I am having trouble initiating a call from one sip phone to another > > > through the manager. > > > Both phones get "focus" but when I pick either up I get a busy signal. > > > I am trying to dial SIP/200 from SIP/201 both are on separate pcs from > > > asterisk. > > > > > > here is a code snippet: > > > > > > originateAction = new OriginateAction(); > > > originateAction.setChannel("SIP/201"); > > > originateAction.setContext("external"); > > > originateAction.setExten("SIP/200"); > > > originateAction.setPriority(new Integer(1)); > > > originateAction.setTimeout(new Integer(60000)); > > > originateAction.setCallerId("201"); > > > > > > TIA! > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > <https://homebase.arinc.com/prx/000/http/ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click> > > > <https://homebase.arinc.com/prx/000/http/ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > <https://homebase.arinc.com/prx/000/http/ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click>> > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > <https://homebase.arinc.com/prx/000/https/lists.sourceforge.net/lists/listinfo/asterisk-java-users> > > > <https://homebase.arinc.com/prx/000/https/lists.sourceforge.net/lists/listinfo/asterisk-java-users> > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > <https://homebase.arinc.com/prx/000/http/ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click> > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > <https://homebase.arinc.com/prx/000/https/lists.sourceforge.net/lists/listinfo/asterisk-java-users> > |
From: Forte, G. \(GFORTE\) <gf...@ar...> - 2006-01-10 17:46:57
|
Excellent! Thanks Jesse! =20 Is there a plcae where I can find all of the parameters for the = setApplication() method? =20 TIA! ________________________________ From: ast...@li... on behalf of Jesse = Lang Sent: Tue 1/10/2006 12:04 PM To: ast...@li... Subject: Re: [Asterisk-java-users] initiating a call from one sip to = another through manager Graham, The example would look like this: originateAction =3D new OriginateAction(); originateAction.setChannel("SIP/201"); originateAction.setApplication("Dial"); originateAction.setData("SIP/200"); // originateAction.setContext("external"); // originateAction.setExten("SIP/200"); // originateAction.setPriority(new Integer(1)); originateAction.setTimeout(new Integer(60000)); originateAction.setCallerId("201"); Hope that helps. Thanks. J Forte, Graham (GFORTE) wrote: > I thought that the whole idea of the setExten() was to dial a selected > extension from the selected phone. > I am not finding any examples of how setApplication() or setData() is > used. > Could you send an example of how to implement these methods? >=20 > ...... >=20 > Perhaps I should join both SIPs to a conference? >=20 > Sorry but am new to Asterisk and Asterisk-Java. >=20 >=20 > TIA!!! > > = ------------------------------------------------------------------------ > *From:* ast...@li... on behalf of > Jesse Lang > *Sent:* Tue 1/10/2006 10:45 AM > *To:* ast...@li... > *Subject:* Re: [Asterisk-java-users] initiating a call from one sip to > another through manager > > That's because you're sending a call to both, but unless you maybe = pick > them up right at the same time, they won't complete a connection and > stay off hook. You should really send one of the extensions to the > application dial. Look at setApplication() and setData(). > > J > > Forte, Graham (GFORTE) wrote: > > > Hello all, > > I am having trouble initiating a call from one sip phone to another > > through the manager. > > Both phones get "focus" but when I pick either up I get a busy = signal. > > I am trying to dial SIP/200 from SIP/201 both are on separate pcs = from > > asterisk. > > > > here is a code snippet: > > > > originateAction =3D new OriginateAction(); > > originateAction.setChannel("SIP/201"); > > originateAction.setContext("external"); > > originateAction.setExten("SIP/200"); > > originateAction.setPriority(new Integer(1)); > > originateAction.setTimeout(new Integer(60000)); > > originateAction.setCallerId("201"); > > > > TIA! > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD = SPLUNK! > http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick = <https://homebase.arinc.com/prx/000/http/ads.osdn.com/?ad_id=3D7637&alloc= _id=3D16865&op=3Dclick>=20 > = <https://homebase.arinc.com/prx/000/http/ads.osdn.com/?ad_id=3D7637&alloc= _id=3D16865&op=3Dclick> > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users = <https://homebase.arinc.com/prx/000/https/lists.sourceforge.net/lists/lis= tinfo/asterisk-java-users>=20 > = <https://homebase.arinc.com/prx/000/https/lists.sourceforge.net/lists/lis= tinfo/asterisk-java-users> > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log = files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick = <https://homebase.arinc.com/prx/000/http/ads.osdn.com/?ad_id=3D7637&alloc= _id=3D16865&op=3Dclick>=20 _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users = <https://homebase.arinc.com/prx/000/https/lists.sourceforge.net/lists/lis= tinfo/asterisk-java-users>=20 |
From: Jesse L. <je...@jg...> - 2006-01-10 17:06:05
|
Graham, The example would look like this: originateAction = new OriginateAction(); originateAction.setChannel("SIP/201"); originateAction.setApplication("Dial"); originateAction.setData("SIP/200"); // originateAction.setContext("external"); // originateAction.setExten("SIP/200"); // originateAction.setPriority(new Integer(1)); originateAction.setTimeout(new Integer(60000)); originateAction.setCallerId("201"); Hope that helps. Thanks. J Forte, Graham (GFORTE) wrote: > I thought that the whole idea of the setExten() was to dial a selected > extension from the selected phone. > I am not finding any examples of how setApplication() or setData() is > used. > Could you send an example of how to implement these methods? > > ...... > > Perhaps I should join both SIPs to a conference? > > Sorry but am new to Asterisk and Asterisk-Java. > > > TIA!!! > > ------------------------------------------------------------------------ > *From:* ast...@li... on behalf of > Jesse Lang > *Sent:* Tue 1/10/2006 10:45 AM > *To:* ast...@li... > *Subject:* Re: [Asterisk-java-users] initiating a call from one sip to > another through manager > > That's because you're sending a call to both, but unless you maybe pick > them up right at the same time, they won't complete a connection and > stay off hook. You should really send one of the extensions to the > application dial. Look at setApplication() and setData(). > > J > > Forte, Graham (GFORTE) wrote: > > > Hello all, > > I am having trouble initiating a call from one sip phone to another > > through the manager. > > Both phones get "focus" but when I pick either up I get a busy signal. > > I am trying to dial SIP/200 from SIP/201 both are on separate pcs from > > asterisk. > > > > here is a code snippet: > > > > originateAction = new OriginateAction(); > > originateAction.setChannel("SIP/201"); > > originateAction.setContext("external"); > > originateAction.setExten("SIP/200"); > > originateAction.setPriority(new Integer(1)); > > originateAction.setTimeout(new Integer(60000)); > > originateAction.setCallerId("201"); > > > > TIA! > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > <https://homebase.arinc.com/prx/000/http/ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click> > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > <https://homebase.arinc.com/prx/000/https/lists.sourceforge.net/lists/listinfo/asterisk-java-users> > |
From: Forte, G. \(GFORTE\) <gf...@ar...> - 2006-01-10 16:45:33
|
I thought that the whole idea of the setExten() was to dial a selected = extension from the selected phone. I am not finding any examples of how setApplication() or setData() is = used. Could you send an example of how to implement these methods? =20 ...... =20 Perhaps I should join both SIPs to a conference? =20 Sorry but am new to Asterisk and Asterisk-Java. =20 =20 TIA!!! ________________________________ From: ast...@li... on behalf of Jesse = Lang Sent: Tue 1/10/2006 10:45 AM To: ast...@li... Subject: Re: [Asterisk-java-users] initiating a call from one sip to = another through manager That's because you're sending a call to both, but unless you maybe pick them up right at the same time, they won't complete a connection and stay off hook. You should really send one of the extensions to the application dial. Look at setApplication() and setData(). J Forte, Graham (GFORTE) wrote: > Hello all, > I am having trouble initiating a call from one sip phone to another > through the manager. > Both phones get "focus" but when I pick either up I get a busy signal. > I am trying to dial SIP/200 from SIP/201 both are on separate pcs from > asterisk. >=20 > here is a code snippet: >=20 > originateAction =3D new OriginateAction(); > originateAction.setChannel("SIP/201"); > originateAction.setContext("external"); > originateAction.setExten("SIP/200"); > originateAction.setPriority(new Integer(1)); > originateAction.setTimeout(new Integer(60000)); > originateAction.setCallerId("201"); >=20 > TIA! ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log = files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick = <https://homebase.arinc.com/prx/000/http/ads.osdn.com/?ad_id=3D7637&alloc= _id=3D16865&op=3Dclick>=20 _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users = <https://homebase.arinc.com/prx/000/https/lists.sourceforge.net/lists/lis= tinfo/asterisk-java-users>=20 |
From: Jesse L. <je...@jg...> - 2006-01-10 16:00:38
|
That's because you're sending a call to both, but unless you maybe pick them up right at the same time, they won't complete a connection and stay off hook. You should really send one of the extensions to the application dial. Look at setApplication() and setData(). J Forte, Graham (GFORTE) wrote: > Hello all, > I am having trouble initiating a call from one sip phone to another > through the manager. > Both phones get "focus" but when I pick either up I get a busy signal. > I am trying to dial SIP/200 from SIP/201 both are on separate pcs from > asterisk. > > here is a code snippet: > > originateAction = new OriginateAction(); > originateAction.setChannel("SIP/201"); > originateAction.setContext("external"); > originateAction.setExten("SIP/200"); > originateAction.setPriority(new Integer(1)); > originateAction.setTimeout(new Integer(60000)); > originateAction.setCallerId("201"); > > TIA! |
From: Jonathan A. <jau...@st...> - 2006-01-10 15:40:12
|
I had the same issue. You can do this by launching your own class object before launching the asterisk-java AGI engine. Something like the following will work. public static void main() { // do your startup stuff initialization(); DefaultAGIServer agi = new DefaultAGIServer(); agi.startup(); } Then you are off and running. Jonathan On Tue, 2006-01-10 at 10:15 -0500, Vadim Berezniker wrote: > The AGI server first instantiates any given handler when a request for > it comes in from asterisk. > It would be nice if there was a way to have certain handlers be > instantiated on startup. > There are certain things I want to preload befor any calls come in. > I don't want to the first call to be forced to wait until I'm done > loading. > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id865&op=click > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Forte, G. \(GFORTE\) <gf...@ar...> - 2006-01-10 15:36:29
|
Hello all, I am having trouble initiating a call from one sip phone to another = through the manager. Both phones get "focus" but when I pick either up I get a busy signal. I am trying to dial SIP/200 from SIP/201 both are on separate pcs from = asterisk. =20 here is a code snippet: =20 originateAction =3D new OriginateAction(); originateAction.setChannel("SIP/201"); originateAction.setContext("external"); originateAction.setExten("SIP/200"); originateAction.setPriority(new Integer(1)); originateAction.setTimeout(new Integer(60000)); originateAction.setCallerId("201"); =20 TIA! |