asterisk-java-users Mailing List for Asterisk-Java Library (Page 160)
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: Olivier B. <Oli...@vo...> - 2006-01-27 00:17:50
|
I am trying to implement the example from the tutorial but the example hangs when a channel method is called (including of course the answer method). =20 1) I am using the Asterisk version on Windows. 2) The extension.conf contains the following line: exten =3D> 1300,1,Agi(agi://localhost/demo.agi) 3) I am starting the DefaultAGIServer from Eclipse and see the following logging info at startup: Jan 26, 2006 4:07:44 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Thread pool started. Jan 26, 2006 4:07:44 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Listening on *:4573. 4) I am calling extension 1300 from an Xlite client, the client tries to connect =20 5) The following logging info shows up in Asterisk PBX console: =20 -- Executing AGI("SIP/olivier-6fd9","agi://localhost/demo.agi") in new stack =20 6) On Eclipse I can see the following logging info: Jan 26, 2006 4:11:45 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Received connection. Jan 26, 2006 4:11:45 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Added mapping for 'demo.agi' to class class com.vodafone.asterisk.demo.WeatherScript Jan 26, 2006 4:11:45 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Begin AGIScript com.vodafone.asterisk.demo.WeatherScript on AGIServer-TaskThread-0 Jan 26, 2006 4:11:45 PM com.vodafone.asterisk.demo.WeatherScript service INFO: HELLO WORLD Jan 26, 2006 4:11:45 PM com.vodafone.asterisk.demo.WeatherScript service INFO: net.sf.asterisk.fastagi.impl.AGIChannelImpl@dbe178 7) The code of the demo is as follow: =20 package com.vodafone.asterisk.demo; =20 import java.util.logging.Logger; =20 import net.sf.asterisk.fastagi.AGIChannel; import net.sf.asterisk.fastagi.AGIException; import net.sf.asterisk.fastagi.AGIRequest; import net.sf.asterisk.fastagi.BaseAGIScript; =20 public class WeatherScript extends BaseAGIScript { private static Logger logger =3D Logger.getLogger("WeatherScript"); public void service(AGIRequest arg0, AGIChannel channel) throws AGIException { =20 logger.info("HELLO WORLD"); logger.info(channel.toString()); logger.info(String.valueOf(channel.getChannelStatus())); // <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D NEVER GET LOGGED!!! channel.answer(); // <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D DOES NOT = EXECUTE logger.info("Channel answered"); //sayDigits("1234"); //streamFile("demo-congrats"); channel.hangup(); } =20 } =20 |
From: Yelson V. <yv...@gm...> - 2006-01-26 02:05:00
|
HI Guys I'm new in asterisk-java so sorry for the silly question. I just wanna know the agents status in my pbx, but i don't know how to get the info, the program connects fine to the pbx, but when i try to read the data y don't know how, can you give me a hand?? this is my code ---------------------------------------------------------------------------= ----------------------- class definitions -------------------------- AgentsAction agac =3D new AgentsAction(); Map datos ; Collection datosp; ---------------------------- run method ---------------------------- ManagerResponse originateResponse; managerConnection.login(); originateResponse =3D managerConnection.sendAction(agac,4000); System.out.println(originateResponse.getResponse()); System.out.println(originateResponse.getMessage()); System.out.println(originateResponse.toString()); datos =3D originateResponse.getAttributes(); datosp =3D datos.values(); Iterator iter =3D datosp.iterator(); while (iter.hasNext()){ String agente =3D (String)iter.next(); System.out.println("the data is '" + agente + "'"); } managerConnection.logoff(); ---------------------------------------------------------------------------= ----------------------- The program shows this ---------------------------------------------------------------------------= ----------------------- Jan 25, 2006 8:51:09 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Connecting to 192.168.222.22 port 5038 Jan 25, 2006 8:51:09 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Connected via Asterisk Call Manager/1.0 Jan 25, 2006 8:51:09 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Successfully logged in Jan 25, 2006 8:51:09 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Determined Asterisk version: Asterisk 1.0 Success Agents will follow net.sf.asterisk.manager.response.ManagerResponse: actionId=3D'null'; message=3D'Agents will follow'; response=3D'Success'; uniqueId=3D'null'; systemHashcode=3D1012673 the data is '12014584_3#' the data is 'Agents will follow' the data is 'Success' Jan 25, 2006 8:51:09 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Reached end of stream, terminating reader. Jan 25, 2006 8:51:09 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Closing socket. ---------------------------------------------------------------------------= ---------------------------- In other words how can i read the Map that should show me the agents status= ??? Thanks in advance Best Regards Yelson |
From: Mattias M. <ma...@wx...> - 2006-01-25 17:03:11
|
Hi all! =20 I am currently using this simple class to monitor the queue. One instance of this class is created once every one second (and hopefully deleted after reaching end). =20 I am actually quite new at Java and thread programming so I realize that there must be some better way to do this, but I hope this is sufficient for the time being. =20 The problem (if it is a problem) I am experiencing at the moment is that I receive one timeout every second, but it seems like I get all the events generated by this action. =20 My question is this: Do I actually lose any information as I get these timeouts or are there any other reasons for receiving them? =20 Never mind the horrors of my code. I just created this to get around the deadlock I experienced when trying to send an action from the event dispatching thread. =3D) =20 Thanks in advance! =20 // Mattias Malmquist =20 =20 =20 public class QueueStatusChecker extends Thread { ManagerConnection manager; EventGeneratingAction action; =20 public QueueStatusChecker(ManagerConnection manager, ManagerAction action) { this.manager =3D manager; this.action =3D (EventGeneratingAction)action; } public void run() { try { =20 manager.sendEventGeneratingAction(action, 5000); } catch (Exception e) { =20 if(e.getClass().getSimpleName().equals("EventTimeoutException")) { =20 System.out.println("Timeout"); } } } } |
From: Stefan R. <sr...@re...> - 2006-01-25 10:34:12
|
Hi, try it this way: // connect to Asterisk and log in managerConnection.login(); response = managerConnection.sendAction( new CommandAction("sip show peers")); if (response instanceof CommandResponse) { CommandResponse commandResponse = (CommandResponse) response; Iterator lineIterator = commandResponse.getResult().iterator(); while (lineIterator.hasNext()) { System.out.println(lineIterator.next()); } } // and finally log off and disconnect managerConnection.logoff(); "Follows" just indicates that the result is a CommandResponse. This is due to the way Asterisk handles the CommandAction; it has no further meaning. =Stefan Jan du Toit schrieb: > Hi. > > When executing manager actions such as originate, hangup, etc one will > either get "Success" or "Error" when calling getResponse() on the > manager response that your action returns. > > But on some other actions one will get "Follows". Usually in this case > even if I cast to the correct type of response all I get out of the > attributes is follows, the unique id the rest is null > This is not enough information. > > What does "Follows" mean? > > Thanks. > > > > ------------------------------------------------------- > 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: Jan du T. <jan...@de...> - 2006-01-25 10:17:08
|
Hi. When executing manager actions such as originate, hangup, etc one will either get "Success" or "Error" when calling getResponse() on the manager response that your action returns. But on some other actions one will get "Follows". Usually in this case even if I cast to the correct type of response all I get out of the attributes is follows, the unique id the rest is null This is not enough information. What does "Follows" mean? Thanks. |
From: Stefan R. <sr...@re...> - 2006-01-25 09:35:56
|
Jan du Toit schrieb: > Hi. > > I'm executing a CLI command by using the CommandAction. It is executed > correctly and have the desired effect. > > It doesn't seem if the action is generating any manager events. Why is > this? > What other way than using a manager response (as the manager response > doesn't give me much information) can you use to get information > regarding the executed action? use the managerresponse and cast it to a commandresponse, it contains all information. =Stefan |
From: Jan du T. <jan...@de...> - 2006-01-25 08:47:45
|
Hi. I'm executing a CLI command by using the CommandAction. It is executed correctly and have the desired effect. It doesn't seem if the action is generating any manager events. Why is this? What other way than using a manager response (as the manager response doesn't give me much information) can you use to get information regarding the executed action? Thanks in advance. Why is this |
From: Stefan R. <sr...@re...> - 2006-01-25 00:09:25
|
yes, thanks. But I still have no clue on whats going wrong there :( I need to think about it... =3DStefan On Mon, 2006-01-23 at 09:05 -0600, Jesse Lang wrote: > Stefan, >=20 > Did you receive my last message with the debug log? I want to help you=20 > troubleshoot this, but I also need to move ahead with my project. I=20 > will be installing Java 5 tomorrow and seeing if that gives different=20 > results. Thanks. >=20 > J >=20 > Stefan Reuter wrote: >=20 > >On Thu, 2006-01-19 at 23:47 -0600, Jesse Lang wrote: > > =20 > > > >>It is in the same directory as the jar files, and I have added . to the= =20 > >>classpath, but it still does the same thing. Any other ideas? Thanks. > >> =20 > >> > > > >if you added . to the classpath you should put the log4j.properties in . > >and not in lib ;) > > > >=3DStefan > > =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: Stefan R. <sr...@re...> - 2006-01-24 23:54:29
|
You can probably use a CommandAction with "meetme list <confno>" and parse that output by yourself On Tue, 2006-01-24 at 13:55 -0200, Andre Luiz Martins Rodrigues wrote: > Hello all, > =20 > I have one problem, in my application using MeetMeLeaveEvent to count > number of the users in conference. Always the Asterisk Server return > one error. When the number of persons in conference is 2 or 1 he not > diminish the value to 0. As I can show the correct number of persons? > An Action exists that do the verification? =20 >=20 >=20 >=20 > Andr=E9 Luiz Martins Rodrigues > Analista de Sistemas - Govoip > #VoIP: 3400 0500 Fone: 55 (34) 3214-5500=20 > and...@go... |
From: Andre L. M. R. <and...@go...> - 2006-01-24 15:55:36
|
Hello all, I have one problem, in my application using MeetMeLeaveEvent to count = number of the users in conference. Always the Asterisk Server return one = error. When the number of persons in conference is 2 or 1 he not = diminish the value to 0. As I can show the correct number of persons? = An Action exists that do the verification? =20 Andr=E9 Luiz Martins Rodrigues Analista de Sistemas - Govoip #VoIP: 3400 0500 Fone: 55 (34) 3214-5500=20 and...@go... |
From: Stefan R. <sr...@re...> - 2006-01-24 13:41:24
|
Brett, thanks for your suggestions regarding the log level and the manager reader threads. they will be included in Asterisk-Java 0.3. =Stefan Brett Sutton schrieb: > Currently when ManagerReader terminates it outputs an log4j INFO message > as follows: > > 17:52:50,960 INFO Reached end of stream, terminating reader. > > IMHO I think this should be a DEBUG message not an INFO message. > > Regards, > Brett. > > > > ------------------------------------------------------- > 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-24 06:55:55
|
Currently when ManagerReader terminates it outputs an log4j INFO message as follows: 17:52:50,960 INFO Reached end of stream, terminating reader. IMHO I think this should be a DEBUG message not an INFO message. Regards, Brett. |
From: Brett S. <bs...@no...> - 2006-01-24 02:59:40
|
Just a thought. I might be a good idea to mark the ManagerReader threads as daemons as daemon threads won't stop an application shutting down if they are left hanging around. You can just add the following line just before you start the thread. (I usually just add it to the constructor). this.setDaemon(true); |
From: Stefan R. <sr...@re...> - 2006-01-23 23:35:20
|
On Mon, 2006-01-23 at 09:30 -0800, Marcio DeSousa wrote: > >=20 > > I'm running Asterisk 1.0.9, no patches. hm probably upgrading to 1.2 solves the problem |
From: Stefan R. <sr...@re...> - 2006-01-23 23:34:28
|
> could you offer some advice? > I want to broadcast most of the events via Ajax so I was wondering if > it was wise to: > Leave HelloEvents.java as an executable without a timeout specified > and just let it run or convert it to a servlet. > Basically I think I will be building a XML doc from specific events > that are generated by HelloEvents.java..... although I am new to Ajax > as well. I would run a just register an EventHandler (like the one in HelloEvents that receives events and places them into some kind of queue. Then you can have a servlet that polls that queue and transmits the events to your ajax client. =3DStefan >=20 |
From: Marcio D. <mar...@ya...> - 2006-01-23 17:30:57
|
> > I'm running Asterisk 1.0.9, no patches. > > Marcio > > --- Stefan Reuter <sr...@re...> wrote: > > > this originate event looks really strange. besides the > > missing uniqueid > > the channel property is wrong it should be > > SIP/8479697641-95d5 rather > > than SIP/8479697641. > > What version of Asterisk are you running? Did you > deploy > > any patches? > > > > =Stefan > > > > On Fri, 2006-01-20 at 12:46 -0800, Marcio DeSousa > wrote: > > > --- Stefan Reuter <sr...@re...> wrote: > > > > > > > can yo try the same without using a Local/... > channel > > but > > > > instead > > > > something like SIP/1234 or Zap/g1/1234 > > > > > > > > =Stefan > > > > > > > > > > > > This time I used SIP/XXXX and Zap/g1/XXXX and still > no > > > unique ID: > > > > > > > > > Thanks > > > M'arcio > > > > > > Logs for SIP/XXXXX > > > ================== > > > > > > > > > > > > Asterisk Call Manager/1.0 > > > > > > > > > action: Challenge > > > > > > actionid: 4932403_0# > > > > > > authtype: MD5 > > > > > > > > > > > > > > > Response: Success > > > > > > ActionID: 4932403_0# > > > > > > Challenge: 508014715 > > > > > > > > > > > > > > > action: Login > > > > > > actionid: 4932403_1# > > > > > > key: 25a177557ab8e6aa63e55f383e2056b0 > > > > > > authtype: MD5 > > > > > > username: isdn > > > > > > > > > > > > > > > Response: Success > > > > > > > > > ActionID: 4932403_1# > > > > > > > > > Message: Authentication accepted > > > > > > > > > > > > > > > action: Command > > > > > > actionid: 4932403_2# > > > > > > command: show version files > > > > > > > > > > > > > > > Response: Follows > > > > > > > > > ActionID: 4932403_2# > > > > > > > > > Usage: show version > > > Shows Asterisk version information. > > > > > > --END COMMAND-- > > > > > > > > > > > > > > > action: Originate > > > > > > actionid: 4932403_3# > > > > > > exten: 1234 > > > > > > async: true > > > > > > context: mytest > > > > > > priority: 1 > > > > > > channel: SIP/8479697641 > > > > > > > > > > > > > > > Response: Success > > > > > > > > > ActionID: 4932403_3# > > > > > > > > > Message: Originate successfully queued > > > > > > > > > > > > > > > Event: Newchannel > > > > > > > > > Channel: SIP/8479697641-95d5 > > > > > > State: Down > > > > > > CallerID: <unknown> > > > > > > Uniqueid: 1137813722.642 > > > > > > > > > > > > > > > > > > Event: Newchannel > > > > > > > > > Channel: SIP/8479697641-95d5 > > > > > > State: Ringing > > > > > > CallerID: <unknown> > > > > > > Uniqueid: 1137813722.642 > > > > > > > > > > > > > > > > > > Event: Newstate > > > > > > > > > Channel: SIP/8479697641-95d5 > > > > > > State: Up > > > > > > CallerID: <unknown> > > > > > > Uniqueid: 1137813722.642 > > > > > > > > > > > > > > > > > > Event: OriginateSuccess > > > > > > > > > ActionID: 4932403_3# > > > > > > Channel: SIP/8479697641 > > > > > > Context: mytest > > > > > > Exten: 1234 > > > > > > > > > > > > > > > > > > Event: Newexten > > > > > > > > > Channel: SIP/8479697641-95d5 > > > > > > Context: mytest > > > > > > Extension: 1234 > > > > > > Priority: 1 > > > > > > Application: Wait > > > > > > AppData: 2 > > > > > > Uniqueid: 1137813722.642 > > > > > > > > > > > > > > > > > > Event: Hangup > > > > > > > > > Channel: SIP/8479697641-95d5 > > > > > > Uniqueid: 1137813722.642 > > > > > > Cause: 16 > > > > > > > > > Logs for Zap/g1/XXXX > > > ==================== > > > > > > Asterisk Call Manager/1.0 > > > > > > > > > action: Challenge > > > > > > actionid: 4932403_0# > > > > > > authtype: MD5 > > > > > > > > > > > > > > > Response: Success > > > > > > ActionID: 4932403_0# > > > > > > Challenge: 875883515 > > > > > > > > > > > > > > > action: Login > > > > > > actionid: 4932403_1# > > > > > > key: cf2a4a48a22d347d82db11b081c07f78 > > > > > > authtype: MD5 > > > > > > username: isdn > > > > > > > > > > > > > > > Response: Success > > > > > > > > > ActionID: 4932403_1# > > > > > > > > > Message: Authentication accepted > > > > > > > > > > > > > > > action: Command > > > > > > actionid: 4932403_2# > > > > > > command: show version files > > > > > > > > > > > > > > > Response: Follows > > > > > > > > > ActionID: 4932403_2# > > > > > > > > > Usage: show version > > > Shows Asterisk version information. > > > > > > --END COMMAND-- > > > > > > > > > > > > > > > action: Originate > > > > > > actionid: 4932403_3# > > > > > > exten: 1234 > > > > > > async: true > > > > > > context: mytest > > > > > > priority: 1 > > > > > > channel: Zap/g1/2222 > > > > > > > > > > > > > > > Response: Success > > > > > > > > > ActionID: 4932403_3# > > > > > > > > > Message: Originate successfully queued > > > > > > > > > > > > > > > Event: Newchannel > > > > > > > > > Channel: Zap/1-1 > > > > > > State: Rsrvd > > > > > > CallerID: <unknown> > > > > > > Uniqueid: 1137813972.649 > > > > > > > > > > > > > > > > > > Event: Newstate > > > > > > Channel: Zap/1-1 > > > > > > State: Dialing > > > > > > CallerID: <unknown> > > > > > > Uniqueid: 1137813972.649 > > > > > > > > > > > > > > > Event: Newchannel > > > > > > > > > Channel: Zap/25-1 > > > > > > State: Ring > > > > > > CallerID: <unknown> > > > > > > Uniqueid: 1137813972.650 > > > > > > > > > > > > > > > > > > Event: Newexten > > > > > > > > > Channel: Zap/25-1 > > > > > > Context: default > > > > > > Extension: 2222 > > > > > > Priority: 1 > > > > > > Application: Dial > > > > > > AppData: SIP/8479697641 > > > > > > Uniqueid: 1137813972.650 > > > > > > > > > > > > > > > > > > Event: Newchannel > > > > > > > > > Channel: SIP/8479697641-a640 > > > > > > State: Down > > > > > > CallerID: <unknown> > > > > > > Uniqueid: 1137813972.651 > > > > > > > > > > > > > > > > > > Event: Newchannel > > > > > > > > > Channel: SIP/8479697641-a640 > > > > > > State: Ringing > > > > > > CallerID: <unknown> > > > > > > Uniqueid: 1137813972.651 > > > > > > > > > > > > > > > > > > Event: Newstate > > > > > > > > > Channel: Zap/25-1 > > > > > > State: Ringing > > > > > > CallerID: <unknown> > > > > > > Uniqueid: 1137813972.650 > > > > > > > > > > > > > > > > > > Event: Newstate > > > > > > > > > Channel: Zap/1-1 > > > > > > State: Ringing > > > > > > CallerID: <unknown> > > > > > > Uniqueid: 1137813972.649 > > > > > > > > > > > > > > > > > > Event: Newstate > > > > > > > > > Channel: SIP/8479697641-a640 > > > > > > State: Up > > > > > > CallerID: <unknown> > > > > > > Uniqueid: 1137813972.651 > > > > > > > > > > > > > > > > > > Event: Newstate > > > > > > > > > Channel: Zap/25-1 > > > > > > State: Up > > > > > > CallerID: <unknown> > > > > > > Uniqueid: 1137813972.650 > > > > > > > > > > > > > > > > > > Event: Link > > > > > > > > > Channel1: Zap/25-1 > > > > > > Channel2: SIP/8479697641-a640 > > > > > > Uniqueid1: 1137813972.650 > > > > > > Uniqueid2: 1137813972.651 > > > > > > > > > > > > > > > > > > Event: Newstate > > > > > > > > > Channel: Zap/1-1 > > > > > > State: Up > > > > > > CallerID: <unknown> > > > > > > Uniqueid: 1137813972.649 > > > > > > > > > > > > > > > > > > Event: OriginateSuccess > > > > > > > > > ActionID: 4932403_3# > > > > > > Channel: Zap/g1/2222 > > > > > > Context: mytest > > > > > > Exten: 1234 > > > > > > > > > > > > > > > > > > Event: Newexten > > > > > > > > > Channel: Zap/1-1 > > > > > > Context: mytest > > > > > > Extension: 1234 > > > > > > Priority: 1 > > > > > > Application: Wait > > > > > > AppData: 2 > > > > > > Uniqueid: 1137813972.649 > > > > > > > > > > > > > > > > > > Event: Unlink > > > > > > > > > Channel1: Zap/25-1 > > > > > > Channel2: SIP/8479697641-a640 > > > > > > Uniqueid1: 1137813972.650 > > > > > > Uniqueid2: 1137813972.651 > > > > > > > > > > > > > > > > > > Event: Hangup > > > > > > > > > Channel: SIP/8479697641-a640 > > > > > > Uniqueid: 1137813972.651 > > > > > > Cause: 16 > > > > > > > > > > > > > > > > > > Event: Hangup > > > > > > > > > Channel: Zap/25-1 > > > > > > Uniqueid: 1137813972.650 > > > > > > Cause: 16 > > > > > > > > > > > > > > > > > > Event: Hangup > > > > > > > > > Channel: Zap/1-1 > > > > > > Uniqueid: 1137813972.649 > > > > > > Cause: 16 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > > http://mail.yahoo.com > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection > around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Jesse L. <je...@jg...> - 2006-01-23 15:05:45
|
Stefan, Did you receive my last message with the debug log? I want to help you troubleshoot this, but I also need to move ahead with my project. I will be installing Java 5 tomorrow and seeing if that gives different results. Thanks. J Stefan Reuter wrote: >On Thu, 2006-01-19 at 23:47 -0600, Jesse Lang wrote: > > >>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. >> >> > >if you added . to the classpath you should put the log4j.properties in . >and not in lib ;) > >=Stefan > > |
From: Forte, G. \(GFORTE\) <gf...@ar...> - 2006-01-20 20:58:09
|
Nice, that makes things alot clearer! Thanks again Stefan! =20 Stefan, could you offer some advice? I want to broadcast most of the events via Ajax so I was wondering if it = was wise to: Leave HelloEvents.java as an executable without a timeout specified and = just let it run or convert it to a servlet. Basically I think I will be building a XML doc from specific events that = are generated by HelloEvents.java..... although I am new to Ajax as = well. =20 Any advice would be greatly appreciated!! Thanks again. ________________________________ From: ast...@li... on behalf of = Stefan Reuter Sent: Fri 1/20/2006 5:27 AM To: ast...@li... Subject: Re: [Asterisk-java-users] deciphering events sure, you can cast them to concrete instances and use the getters of = that event. for example: public void handleEvent(ManagerEvent event) { if (event instanceof JoinEvent) { handleJoinEvent((JoinEvent) event);=20 } } protected void handleJoinEvent(JoinEvent event) { System.out.println(event.getChannel() + " joined " + = event.getQueue()); } =3DStefan On 1/19/06, Forte, Graham (GFORTE) <gf...@ar...> wrote:=20 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!! =09 |
From: Stefan R. <sr...@re...> - 2006-01-20 20:05:11
|
On Fri, 2006-01-20 at 17:57 -0200, Fabio Esposito wrote: > asterisk-java support IAX2? No. Asterisk-Java supports the Asterisk Manager API and FastAGI. =3DStefan |
From: Fabio E. <fab...@gm...> - 2006-01-20 19:58:48
|
Hi people! Are you ok? asterisk-java support IAX2? Thanks! Fabio |
From: Jesse L. <je...@jg...> - 2006-01-20 16:38:43
|
Stefan, Nevermind, it was a stupid typo I had made in the log4j.properties file. :^1 Attached is the log file. Let me know what you think we can do to work around this. Thanks. J Jesse Lang wrote: > Stefan, > > OK, somehow I'm having problems communicating this. Let me try this: > > All of the jar files and log4j.properties are in the same directory. > I explicitly added all the jar file names to the classpath. I know > that log4j is in the right place because I get the error messages from > it. I tried to add the current directory (.) and also explicitly > log4j.properties to the classpath, but neither of those change the > result. I will look at log4j installation instructions and see if I > missed something. > > Did you have a look at that capture file? Let me know what you > think. I am thinking of installing Java 5 for Windows and seeing how > that reacts (I need to move on and finish my project), so if you would > like to resolve this with this environment intact, we'll have to keep > it moving forward. Thanks. > > J > > Stefan Reuter wrote: > >> On Thu, 2006-01-19 at 23:47 -0600, Jesse Lang wrote: >> >> >>> 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. >>> >> >> >> if you added . to the classpath you should put the log4j.properties in . >> and not in lib ;) >> >> =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: Jesse L. <je...@jg...> - 2006-01-20 15:23:39
|
Stefan, OK, somehow I'm having problems communicating this. Let me try this: All of the jar files and log4j.properties are in the same directory. I explicitly added all the jar file names to the classpath. I know that log4j is in the right place because I get the error messages from it. I tried to add the current directory (.) and also explicitly log4j.properties to the classpath, but neither of those change the result. I will look at log4j installation instructions and see if I missed something. Did you have a look at that capture file? Let me know what you think. I am thinking of installing Java 5 for Windows and seeing how that reacts (I need to move on and finish my project), so if you would like to resolve this with this environment intact, we'll have to keep it moving forward. Thanks. J Stefan Reuter wrote: >On Thu, 2006-01-19 at 23:47 -0600, Jesse Lang wrote: > > >>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. >> >> > >if you added . to the classpath you should put the log4j.properties in . >and not in lib ;) > >=Stefan > > |
From: Stefan R. <sr...@re...> - 2006-01-20 14:48:43
|
On Thu, 2006-01-19 at 23:47 -0600, Jesse Lang wrote: > It is in the same directory as the jar files, and I have added . to the=20 > classpath, but it still does the same thing. Any other ideas? Thanks. if you added . to the classpath you should put the log4j.properties in . and not in lib ;) =3DStefan |
From: Mattias M. <ma...@wx...> - 2006-01-20 10:46:48
|
Stefan, That sounds like a solution to the problem. I should have had the = problems of concurrency in mind, but it slipped. Great to see than = someone here isn't afflicted by the end-of-week-coma, like me. =3D) I am however not sure this will solve my problem since I cannot get any = other variables from the manager than the ones I defined myself. I do = understand that this isn't an asterisk-java problem but if any of you = have any ideas on what the problem might be, I would be grateful. // Mattias Malmquist -----Ursprungligt meddelande----- Fr=E5n: ast...@li... = [mailto:ast...@li...] F=F6r Stefan = Reuter Skickat: den 20 januari 2006 11:14 Till: ast...@li... =C4mne: Re: SV: [Asterisk-java-users] Problems with the GetVar action 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=F1ski schrieb: > Mattias Malmquist napisa=F9(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.. > but it's the only thing that I can think of (I'm a newbie:)) >=20 > Wish you luck! >=20 |
From: Stefan R. <ste...@gm...> - 2006-01-20 10:27:15
|
sure, you can cast them to concrete instances and use the getters of that event. for example: public void handleEvent(ManagerEvent event) { if (event instanceof JoinEvent) { handleJoinEvent((JoinEvent) event); } } protected void handleJoinEvent(JoinEvent event) { System.out.println(event.getChannel() + " joined " + event.getQueue ()); } =3DStefan On 1/19/06, Forte, Graham (GFORTE) <gf...@ar...> 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!! > |