asterisk-java-users Mailing List for Asterisk-Java Library (Page 161)
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: Stefan R. <ste...@gm...> - 2006-01-20 10:21:05
|
Brett, you are right. Instead of overriding the toString() methods i would like to use a reflection based approach. Please create an enhancement request for this issue on http://jira.reucon.org =3DStefan On 1/19/06, Brett Sutton <bs...@no...> wrote: > > It would be really nice if the toString() methods for each event type was > overloaded to print a more meaningful message out. > This would help with debugging considerably. > > > > Forte, Graham (GFORTE) wrote: > > Hello, > > I wanted to know if there was a way to further decipher events that are > passed from the helloEvents script. > I get the following from this script: > > > *************************************************************************= ************************************************** > net.sf.asterisk.manager.event.StatusCompleteEvent: dateReceived=3DThu Jan= 19 > 15:11:53 CST 2006; systemHashcode=3D20989238 > unique=3D20989238 > net.sf.asterisk.manager.event.OriginateSuccessEvent: dateReceived=3DThu J= an > 19 15:12:19 CST 2006; privilege=3Dcall,all; systemHashcode=3D19727353 > unique=3D19727353 > net.sf.asterisk.manager.event.ExtensionStatusEvent: dateReceived=3DThu Ja= n > 19 15:12:19 CST 2006; privilege=3Dcall,all; systemHashcode=3D6290200 > unique=3D6290200 > net.sf.asterisk.manager.event.NewCallerIdEvent: dateReceived=3DThu Jan 19 > 15:12:20 CST 2006; privilege=3Dcall,all; systemHashcode=3D22936951 > unique=3D22936951 > net.sf.asterisk.manager.event.NewStateEvent: dateReceived=3DThu Jan 19 > 15:12:25 CST 2006; privilege=3Dcall,all; systemHashcode=3D28064776 > unique=3D28064776 > net.sf.asterisk.manager.event.MeetMeJoinEvent: dateReceived=3DThu Jan 19 > 15:12:25 CST 2006; privilege=3Dcall,all; systemHashcode=3D14451727 > unique=3D14451727 > net.sf.asterisk.manager.event.MeetMeLeaveEvent: dateReceived=3DThu Jan 19 > 15:12:41 CST 2006; privilege=3Dcall,all; systemHashcode=3D1026511 > unique=3D1026511 > net.sf.asterisk.manager.event.HangupEvent: dateReceived=3DThu Jan 19 > 15:12:41 CST 2006; privilege=3Dcall,all; systemHashcode=3D13271847 > unique=3D13271847 > > *************************************************************************= ************************************************** > Is there a way to get more detail. > More like a chatroom where when a person leaves or joins everyone in the > room is alerted that <newUserName> has joined. > I want to do something similar to that with the conference call. > > So that when a new caller joins or leaves the conferencees are alerted > .... JoeSchmoe SIP number 20022 has joined the conference. > I guess what I am saying is can I return something other than the > systemHashcode or dateReceived etc.... > An example would be greatly appreciated. > > Thanks again Stefan!! > > > |
From: Stefan R. <sr...@re...> - 2006-01-20 10:13:50
|
Mattias, regarding the timeout you experience: Do you send the GetVarAction from the event dispatching thread? If yes, please run it in a new Thread to prevent a deadlock. For more information on this topic see http://sourceforge.net/mailarchive/message.php?msg_id=3D14224869 You should be able to receive the same information via Asterisk-Java that you get via telnet. =3DStefan Robert Krzymi=C5=84ski schrieb: > Mattias Malmquist napisa=C5=82(a): >=20 >> Thanks for the response. >> >> I do not know if it will actually work in 1.2 as the only thing stated= >> in the description is that reading GLOBAL variables doesn't work in >> 1.0.7, not local channel variables. >> >> Sadly, I have no possibility to upgrade Asterisk, at the moment, since= >> the PBX I am developing for relies on a lot of scripts depending on >> the 1.0.7 and requires a lot of testing before migrating. >> >> As I earlier stated, I can retrieve a variable by telneting to the >> manager and issue actions from there. This is however only possible >> with a user-declared variable and even this does NOT work with >> asterisk-java GetVarAction. The only thing that happens is a timeout >> waiting for the response. >> >> Thankful for more suggestions! >> >> // Mattias Malmquist >=20 >=20 > Well, then the only thing that comes into my mind is: > In the extension that you use in the extensions.conf read the value of > the variable that you want and set a new user variable with this value,= > then you can read it. >=20 > This is ugly and will work only if you are using one of the extensions.= =2E > but it's the only thing that I can think of (I'm a newbie:)) >=20 > Wish you luck! >=20 |
From: Jesse L. <je...@jg...> - 2006-01-20 09:57:35
|
It is in the same directory as the jar files, and I have added . to the classpath, but it still does the same thing. Any other ideas? Thanks. J Jan du Toit wrote: > Jesse Lang wrote: > >> Stefan, >> >> I did as you said with adding log4j, but it doesn't seem to work, and >> I'm getting this error: >> >> log4j:WARN No appenders could be found for logger >> (net.sf.asterisk.manager.DefaultManagerConnection) >> log4j:WARN Please initialize the log4j system properly. >> >> What should I do now? > > > You must make sure that the log4j.properties file is in your classpath. > Cheers. > > > > ------------------------------------------------------- > 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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: <be...@mo...> - 2006-01-20 09:54:15
|
Mattias Malmquist napisał(a): > Thanks for the response. > > I do not know if it will actually work in 1.2 as the only thing stated in the description is that reading GLOBAL variables doesn't work in 1.0.7, not local channel variables. > > Sadly, I have no possibility to upgrade Asterisk, at the moment, since the PBX I am developing for relies on a lot of scripts depending on the 1.0.7 and requires a lot of testing before migrating. > > As I earlier stated, I can retrieve a variable by telneting to the manager and issue actions from there. This is however only possible with a user-declared variable and even this does NOT work with asterisk-java GetVarAction. The only thing that happens is a timeout waiting for the response. > > Thankful for more suggestions! > > // Mattias Malmquist Well, then the only thing that comes into my mind is: In the extension that you use in the extensions.conf read the value of the variable that you want and set a new user variable with this value, then you can read it. This is ugly and will work only if you are using one of the extensions.. but it's the only thing that I can think of (I'm a newbie:)) Wish you luck! -- Robert Krzyminski |
From: Mattias M. <ma...@wx...> - 2006-01-20 09:20:30
|
Thanks for the response. I do not know if it will actually work in 1.2 as the only thing stated = in the description is that reading GLOBAL variables doesn't work in = 1.0.7, not local channel variables. Sadly, I have no possibility to upgrade Asterisk, at the moment, since = the PBX I am developing for relies on a lot of scripts depending on the = 1.0.7 and requires a lot of testing before migrating. As I earlier stated, I can retrieve a variable by telneting to the = manager and issue actions from there. This is however only possible with = a user-declared variable and even this does NOT work with asterisk-java = GetVarAction. The only thing that happens is a timeout waiting for the = response. Thankful for more suggestions! // Mattias Malmquist -----Ursprungligt meddelande----- Fr=E5n: ast...@li... = [mailto:ast...@li...] F=F6r Robert = Krzyminski Skickat: den 20 januari 2006 09:59 Till: ast...@li... =C4mne: Re: [Asterisk-java-users] Problems with the GetVar action Mattias Malmquist napisa=F9(a): > Hi! >=20 > =20 >=20 > As a new user of both Asterisk and asterisk-java I=92m having a bit of = > trouble retrieving variables using the GetVarAction. As I am using an=20 > older version of Asterisk (v1.0.7) and found out by looking in the = API,=20 > and at the voip-info.org wiki, that global variables cannot be = retrieved=20 > in versions older than 1.2, but what I am trying to do is retrieving a = > local channel variable as such: >=20 > =20 >=20 > . >=20 > . >=20 > . >=20 > =20 >=20 > GetVarAction getvar_action =3D new GetVarAction(channel, = =93CALLERIDNUM=94); >=20 > action_response =3D manager.sendAction(getvar_action); >=20 > =20 >=20 > . >=20 > . >=20 > . >=20 > =20 >=20 > I do however get a timeout on the response no matter what variable I = try=20 > to retrieve. >=20 > =20 >=20 > When connecting to the Asterisk manager using telnet and issue actions = > from there, I managed to retrieve only a variable set by myself and = not=20 > even this one was I able to retrieve from the GetVarAction in = asterisk-java. >=20 > =20 >=20 > Am I doing something wrong or am I using a too old version of Asterisk = > for this to work? If so, is there another way to retrieve these=20 > channel-specific variables? >=20 > =20 >=20 > Thanks in advance! >=20 > =20 >=20 > // Mattias Malmquist >=20 Why don't you just update Asterisk? It's the easiest solution, as you=20 know how to retrieve the variables then? cheers! --=20 Robert Krzyminski ------------------------------------------------------- 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://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=3D= 121642 _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: <be...@mo...> - 2006-01-20 09:05:43
|
Mattias Malmquist napisał(a): > Hi! > > > > As a new user of both Asterisk and asterisk-java I’m having a bit of > trouble retrieving variables using the GetVarAction. As I am using an > older version of Asterisk (v1.0.7) and found out by looking in the API, > and at the voip-info.org wiki, that global variables cannot be retrieved > in versions older than 1.2, but what I am trying to do is retrieving a > local channel variable as such: > > > > . > > . > > . > > > > GetVarAction getvar_action = new GetVarAction(channel, “CALLERIDNUM”); > > action_response = manager.sendAction(getvar_action); > > > > . > > . > > . > > > > I do however get a timeout on the response no matter what variable I try > to retrieve. > > > > When connecting to the Asterisk manager using telnet and issue actions > from there, I managed to retrieve only a variable set by myself and not > even this one was I able to retrieve from the GetVarAction in asterisk-java. > > > > Am I doing something wrong or am I using a too old version of Asterisk > for this to work? If so, is there another way to retrieve these > channel-specific variables? > > > > Thanks in advance! > > > > // Mattias Malmquist > Why don't you just update Asterisk? It's the easiest solution, as you know how to retrieve the variables then? cheers! -- Robert Krzyminski |
From: Mattias M. <ma...@wx...> - 2006-01-20 08:49:38
|
Hi! =20 As a new user of both Asterisk and asterisk-java I'm having a bit of trouble retrieving variables using the GetVarAction. As I am using an older version of Asterisk (v1.0.7) and found out by looking in the API, and at the voip-info.org wiki, that global variables cannot be retrieved in versions older than 1.2, but what I am trying to do is retrieving a local channel variable as such: =20 . . . =20 GetVarAction getvar_action =3D new GetVarAction(channel, "CALLERIDNUM"); action_response =3D manager.sendAction(getvar_action); =20 . . . =20 I do however get a timeout on the response no matter what variable I try to retrieve. =20 When connecting to the Asterisk manager using telnet and issue actions from there, I managed to retrieve only a variable set by myself and not even this one was I able to retrieve from the GetVarAction in asterisk-java. =20 Am I doing something wrong or am I using a too old version of Asterisk for this to work? If so, is there another way to retrieve these channel-specific variables? =20 Thanks in advance! =20 // Mattias Malmquist |
From: Jan du T. <jan...@de...> - 2006-01-20 05:38:47
|
Jesse Lang wrote: > Stefan, > > I did as you said with adding log4j, but it doesn't seem to work, and > I'm getting this error: > > log4j:WARN No appenders could be found for logger > (net.sf.asterisk.manager.DefaultManagerConnection) > log4j:WARN Please initialize the log4j system properly. > > What should I do now? You must make sure that the log4j.properties file is in your classpath. Cheers. |
From: Stefan R. <sr...@re...> - 2006-01-20 01:00:48
|
On Thu, 2006-01-19 at 16:22 -0800, Marcio DeSousa wrote: > Yes, I did, otherwise I wouldn't even receive the event. ok, then i need a dump of network traffic. use either ngrep or tcpdump to create it. =3DStefan |
From: Marcio D. <mar...@ya...> - 2006-01-20 00:22:57
|
Yes, I did, otherwise I wouldn't even receive the event. Thanks Marcio --- Stefan Reuter <sr...@re...> wrote: > did you set async to true? > > > On Thu, 2006-01-19 at 15:58 -0800, Marcio DeSousa wrote: > > Hi, > > > > I'm trying to retrieve the UniqueId and Reason fields > from > > the OriginateSuccessEvent but I get "null" as response, > any > > light on this? > > > > I'm using asterisk-java-0.2 with Asterisk 1.0.9. > > > > Thanks > > Marcio > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > > ------------------------------------------------------- > > 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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Stefan R. <sr...@re...> - 2006-01-20 00:18:08
|
did you set async to true? On Thu, 2006-01-19 at 15:58 -0800, Marcio DeSousa wrote: > Hi, >=20 > I'm trying to retrieve the UniqueId and Reason fields from > the OriginateSuccessEvent but I get "null" as response, any > light on this? >=20 > I'm using asterisk-java-0.2 with Asterisk 1.0.9. >=20 > Thanks > Marcio >=20 > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around=20 > http://mail.yahoo.com=20 >=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://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Marcio D. <mar...@ya...> - 2006-01-19 23:58:45
|
Hi, I'm trying to retrieve the UniqueId and Reason fields from the OriginateSuccessEvent but I get "null" as response, any light on this? I'm using asterisk-java-0.2 with Asterisk 1.0.9. Thanks Marcio __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Brett S. <bs...@no...> - 2006-01-19 21:27:16
|
It would be really nice if the toString() methods for each event type was overloaded to print a more meaningful message out. This would help with debugging considerably. Forte, Graham (GFORTE) wrote: > Hello, > > I wanted to know if there was a way to further decipher events that > are passed from the helloEvents script. > I get the following from this script: > > *************************************************************************************************************************** > net.sf.asterisk.manager.event.StatusCompleteEvent: dateReceived=Thu > Jan 19 15:11:53 CST 2006; systemHashcode=20989238 > unique=20989238 > net.sf.asterisk.manager.event.OriginateSuccessEvent: dateReceived=Thu > Jan 19 15:12:19 CST 2006; privilege=call,all; systemHashcode=19727353 > unique=19727353 > net.sf.asterisk.manager.event.ExtensionStatusEvent: dateReceived=Thu > Jan 19 15:12:19 CST 2006; privilege=call,all; systemHashcode=6290200 > unique=6290200 > net.sf.asterisk.manager.event.NewCallerIdEvent: dateReceived=Thu Jan > 19 15:12:20 CST 2006; privilege=call,all; systemHashcode=22936951 > unique=22936951 > net.sf.asterisk.manager.event.NewStateEvent: dateReceived=Thu Jan 19 > 15:12:25 CST 2006; privilege=call,all; systemHashcode=28064776 > unique=28064776 > net.sf.asterisk.manager.event.MeetMeJoinEvent: dateReceived=Thu Jan 19 > 15:12:25 CST 2006; privilege=call,all; systemHashcode=14451727 > unique=14451727 > net.sf.asterisk.manager.event.MeetMeLeaveEvent: dateReceived=Thu Jan > 19 15:12:41 CST 2006; privilege=call,all; systemHashcode=1026511 > unique=1026511 > net.sf.asterisk.manager.event.HangupEvent: dateReceived=Thu Jan 19 > 15:12:41 CST 2006; privilege=call,all; systemHashcode=13271847 > unique=13271847 > *************************************************************************************************************************** > Is there a way to get more detail. > More like a chatroom where when a person leaves or joins everyone in > the room is alerted that <newUserName> has joined. > I want to do something similar to that with the conference call. > > So that when a new caller joins or leaves the conferencees are alerted > .... JoeSchmoe SIP number 20022 has joined the conference. > I guess what I am saying is can I return something other than the > systemHashcode or dateReceived etc.... > An example would be greatly appreciated. > > Thanks again Stefan!! |
From: Forte, G. \(GFORTE\) <gf...@ar...> - 2006-01-19 21:24:00
|
Hello, =20 I wanted to know if there was a way to further decipher events that are = passed from the helloEvents script. I get the following from this script: =20 *************************************************************************= ************************************************** net.sf.asterisk.manager.event.StatusCompleteEvent: dateReceived=3DThu = Jan 19 15:11:53 CST 2006; systemHashcode=3D20989238 unique=3D20989238 net.sf.asterisk.manager.event.OriginateSuccessEvent: dateReceived=3DThu = Jan 19 15:12:19 CST 2006; privilege=3Dcall,all; = systemHashcode=3D19727353 unique=3D19727353 net.sf.asterisk.manager.event.ExtensionStatusEvent: dateReceived=3DThu = Jan 19 15:12:19 CST 2006; privilege=3Dcall,all; systemHashcode=3D6290200 unique=3D6290200 net.sf.asterisk.manager.event.NewCallerIdEvent: dateReceived=3DThu Jan = 19 15:12:20 CST 2006; privilege=3Dcall,all; systemHashcode=3D22936951 unique=3D22936951 net.sf.asterisk.manager.event.NewStateEvent: dateReceived=3DThu Jan 19 = 15:12:25 CST 2006; privilege=3Dcall,all; systemHashcode=3D28064776 unique=3D28064776 net.sf.asterisk.manager.event.MeetMeJoinEvent: dateReceived=3DThu Jan 19 = 15:12:25 CST 2006; privilege=3Dcall,all; systemHashcode=3D14451727 unique=3D14451727 net.sf.asterisk.manager.event.MeetMeLeaveEvent: dateReceived=3DThu Jan = 19 15:12:41 CST 2006; privilege=3Dcall,all; systemHashcode=3D1026511 unique=3D1026511 net.sf.asterisk.manager.event.HangupEvent: dateReceived=3DThu Jan 19 = 15:12:41 CST 2006; privilege=3Dcall,all; systemHashcode=3D13271847 unique=3D13271847 *************************************************************************= ************************************************** Is there a way to get more detail. More like a chatroom where when a person leaves or joins everyone in the = room is alerted that <newUserName> has joined. I want to do something similar to that with the conference call. =20 So that when a new caller joins or leaves the conferencees are alerted = .... JoeSchmoe SIP number 20022 has joined the conference. I guess what I am saying is can I return something other than the = systemHashcode or dateReceived etc.... An example would be greatly appreciated. =20 Thanks again Stefan!! |
From: Jesse L. <je...@jg...> - 2006-01-19 21:06:50
|
Stefan, I did as you said with adding log4j, but it doesn't seem to work, and I'm getting this error: log4j:WARN No appenders could be found for logger (net.sf.asterisk.manager.DefaultManagerConnection) log4j:WARN Please initialize the log4j system properly. What should I do now? I can tell you (thanks to ethereal) that asterisk-java is not auto reconnecting as you might have thought. Attached is the capture file. Hope we can work something out soon. Thanks. J Stefan Reuter wrote: >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=DEBUG, Console >#log4j.rootCategory=DEBUG, File > >log4j.appender.Console = org.apache.log4j.ConsoleAppender >log4j.appender.Console.layout = org.apache.log4j.PatternLayout >log4j.appender.Console.layout.ConversionPattern = %d %-5p [%t] %c - %m\n > >log4j.appender.File = org.apache.log4j.FileAppender >log4j.appender.File.file = asterisk-java.log >log4j.appender.File.append = false >log4j.appender.File.layout = org.apache.log4j.PatternLayout >log4j.appender.File.layout.ConversionPattern = %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 = 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). > >=Stefan > > |
From: Jesse L. <je...@jg...> - 2006-01-19 18:57:12
|
I'm using 1.4.2_10-b02, but I don't think I'll have a problem going to Java 5. Thanks. J >Hi, > >I am currently thinking about migrating Asterisk-Java to Java5 for the >next official release, esp. using generics and the build-in concurrency >features of Java5. > >Before I take that steps I would like to know if thats ok for you as >users of Asterisk-Java. What JDK version do you use currently in >production / in development? Are there any issues that prevent you from >switching to Java5? > >Thanks for your feedback > >Stefan > > |
From: Eduard M. <ed...@ba...> - 2006-01-19 17:46:58
|
Hi! I'm using Java5 too :) El Jueves, 19 de Enero de 2006 02:39, Stefan Reuter escribi=F3: > Hi, > > I am currently thinking about migrating Asterisk-Java to Java5 for the > next official release, esp. using generics and the build-in concurrency > features of Java5. > > Before I take that steps I would like to know if thats ok for you as > users of Asterisk-Java. What JDK version do you use currently in > production / in development? Are there any issues that prevent you from > switching to Java5? > > Thanks for your feedback > > Stefan |
From: Vadim B. <Va...@is...> - 2006-01-19 16:45:04
|
ast...@li... wrote: > Hi, >=20 > I am currently thinking about migrating Asterisk-Java to Java5 for the > next official release, esp. using generics and the build-in > concurrency features of Java5. >=20 > Before I take that steps I would like to know if thats ok for you as > users of Asterisk-Java. What JDK version do you use currently in > production / in development? Are there any issues that > prevent you from > switching to Java5? >=20 > Thanks for your feedback >=20 > Stefan As a asterisk-java user, I say go for it. I don't think requiring java5 would be an obstacle. As a java developer, I say definitely go for it. Generics and the for each loop make things easier and cleaner. |
From: Andre L. M. R. <and...@go...> - 2006-01-19 12:13:36
|
I too use java 5 ----- Original Message ----- From: "Dov Bigio" <do...@te...> To: <ast...@li...> Sent: Thursday, January 19, 2006 9:55 AM Subject: Re: [Asterisk-java-users] Migrating Asterisk-Java to Java5 ? > Me too! > > ----- Original Message ----- > From: "Brett Sutton" <bs...@no...> > To: <ast...@li...> > Sent: Wednesday, January 18, 2006 11:54 PM > Subject: Re: [Asterisk-java-users] Migrating Asterisk-Java to Java5 ? > > >> +1 >> I'm using Java 5. >> >> >> Stefan Reuter wrote: >> > Hi, >> > >> > I am currently thinking about migrating Asterisk-Java to Java5 for the >> > next official release, esp. using generics and the build-in concurrency >> > features of Java5. >> > >> > Before I take that steps I would like to know if thats ok for you as >> > users of Asterisk-Java. What JDK version do you use currently in >> > production / in development? Are there any issues that prevent you from >> > switching to Java5? >> > >> > Thanks for your feedback >> > >> > 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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 >> _______________________________________________ >> 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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: Dov B. <do...@te...> - 2006-01-19 12:01:28
|
Me too! ----- Original Message ----- From: "Brett Sutton" <bs...@no...> To: <ast...@li...> Sent: Wednesday, January 18, 2006 11:54 PM Subject: Re: [Asterisk-java-users] Migrating Asterisk-Java to Java5 ? > +1 > I'm using Java 5. > > > Stefan Reuter wrote: > > Hi, > > > > I am currently thinking about migrating Asterisk-Java to Java5 for the > > next official release, esp. using generics and the build-in concurrency > > features of Java5. > > > > Before I take that steps I would like to know if thats ok for you as > > users of Asterisk-Java. What JDK version do you use currently in > > production / in development? Are there any issues that prevent you from > > switching to Java5? > > > > Thanks for your feedback > > > > 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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: Brett S. <bs...@no...> - 2006-01-19 02:25:10
|
We are running production system on Java 5 (and have been for some time now) which are under serious load without any problems. Jonathan Augenstine wrote: > I am currently using J2SE 5.0 in both development and production. I > have not experienced any unresolvable issues, however, neither system is > running any significant load. > > Jonathan > > On Thu, 2006-01-19 at 01:39 +0000, Stefan Reuter wrote: > >> Hi, >> >> I am currently thinking about migrating Asterisk-Java to Java5 for the >> next official release, esp. using generics and the build-in concurrency >> features of Java5. >> >> Before I take that steps I would like to know if thats ok for you as >> users of Asterisk-Java. What JDK version do you use currently in >> production / in development? Are there any issues that prevent you from >> switching to Java5? >> >> Thanks for your feedback >> >> 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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Jonathan A. <jau...@st...> - 2006-01-19 02:22:10
|
I am currently using J2SE 5.0 in both development and production. I have not experienced any unresolvable issues, however, neither system is running any significant load. Jonathan On Thu, 2006-01-19 at 01:39 +0000, Stefan Reuter wrote: > Hi, > > I am currently thinking about migrating Asterisk-Java to Java5 for the > next official release, esp. using generics and the build-in concurrency > features of Java5. > > Before I take that steps I would like to know if thats ok for you as > users of Asterisk-Java. What JDK version do you use currently in > production / in development? Are there any issues that prevent you from > switching to Java5? > > Thanks for your feedback > > Stefan |
From: Brett S. <bs...@no...> - 2006-01-19 01:55:13
|
+1 I'm using Java 5. Stefan Reuter wrote: > Hi, > > I am currently thinking about migrating Asterisk-Java to Java5 for the > next official release, esp. using generics and the build-in concurrency > features of Java5. > > Before I take that steps I would like to know if thats ok for you as > users of Asterisk-Java. What JDK version do you use currently in > production / in development? Are there any issues that prevent you from > switching to Java5? > > Thanks for your feedback > > Stefan > |
From: Stefan R. <sr...@re...> - 2006-01-19 01:39:21
|
Hi, I am currently thinking about migrating Asterisk-Java to Java5 for the next official release, esp. using generics and the build-in concurrency features of Java5. Before I take that steps I would like to know if thats ok for you as users of Asterisk-Java. What JDK version do you use currently in production / in development? Are there any issues that prevent you from switching to Java5? Thanks for your feedback Stefan |
From: Stefan R. <sr...@re...> - 2006-01-19 01:34:58
|
you can also put the ppl directly into meetme without going trough the dialplan. instead of > originateAction.setContext("ext-meetme"); > originateAction.setExten("8200"); > originateAction.setPriority(new Integer(1)); just use originateAction.setApplication("MeetMe"); originateAction.setData("123"); where 123 is the conference number. =3DStefan On Wed, 2006-01-18 at 11:12 -0500, Forte, Graham (GFORTE) wrote: > Nevermind, > I had the context set as default instead of as ext-meetme. > Thanks!! > Im sure I will have other questions! ;-) > =20 > for(int i=3D0;i<arr.length;i++) > { > =20 > originateAction =3D new OriginateAction(); > originateAction.setChannel(arr[i]); > originateAction.setContext("ext-meetme"); > originateAction.setExten("8200"); > originateAction.setCallerId(arr[i]); > originateAction.setPriority(new Integer(1)); > originateAction.setTimeout(new Long(30000)); > originateAction.setAsync(Boolean.TRUE); > =20 > =20 > if(! > managerConnection.isConnected()){ managerConnection.login();} > =20 > managerResponse =3D > managerConnection.sendAction(originateAction,30000); > System.out.println("response=3D"+managerResponse.getResponse()); > } > =20 > =20 > =20 > =20 > Let me rephrase, > I am able to get the conf to work with 2 users but I was wondering if > I was going about it in the wrong way: > =20 > <code snip> > OriginateAction originateAction; > OriginateAction originateAction2; > =20 > ManagerResponse originateResponse; > originateAction =3D new OriginateAction(); > originateAction.setChannel("SIP/201"); > originateAction.setContext("default"); > originateAction.setExten("8200"); > originateAction.setPriority(new Integer(1)); > originateAction.setTimeout(new Long(30000)); > =20 > originateAction2 =3D new OriginateAction(); > originateAction2.setChannel("SIP/202"); > originateAction2.setContext("default"); > originateAction2.setExten("8200"); > originateAction2.setPriority(new Integer(1)); > originateAction2.setTimeout(new Long(30000)); > =20 > // connect to Asterisk and log in > managerConnection.login(); > =20 > // send the originate action and wait for a maximum of 30 > seconds for Asterisk > // to send a reply > originateResponse =3D > managerConnection.sendAction(originateAction, 30000); > originateResponse =3D > managerConnection.sendAction(originateAction2, 30000); >=20 > This works but after @15seconds the sips hang up. Is this due to the > setTimeout()? > =20 > Thanks again >=20 > ______________________________________________________________________ > From: ast...@li... on behalf of > Forte, Graham (GFORTE) > Sent: Wed 1/18/2006 9:39 AM > To: ast...@li... > Subject: [Asterisk-java-users] having multiple users call a conference >=20 >=20 > How, > I have tried the following and am having trouble even joining 1 person > to the conference call: > =20 > originateAction =3D new OriginateAction(); > originateAction.setChannel("SIP/201"); > originateAction.setApplication("dial"); > originateAction.setData("8200"); > //originateAction.setContext("default"); > //originateAction.setExten("SIP/200"); > originateAction.setPriority(new Integer(1)); > originateAction.setTimeout(new Integer(60000)); > =20 > I am able to dial manually from a sip into 8200 and all works fine. > =20 > Thanks Stefan! >=20 >=20 > ______________________________________________________________________ > From: ast...@li... on behalf of > Stefan Reuter > Sent: Wed 1/18/2006 8:25 AM > To: ast...@li... > Subject: Re: [Asterisk-java-users] having multiple users call a > conference >=20 >=20 > g f schrieb: > > Hello all, > > how can I have multiple users(>2) call into a conference room? > > Is this something I can do with OriginateAction? >=20 > If you want those users to be called by Asterisk and then joined into > a > conference OriginateAction is the way to go. >=20 > =3DStefan >=20 >=20 >=20 |