asterisk-java-users Mailing List for Asterisk-Java Library (Page 141)
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: Eric C. <zip...@ho...> - 2006-10-16 23:05:16
|
I'm trying to use the HelloManager example from: http://asterisk-java.org/0.3-m1/tutorial.html but am not getting anywhere. I have asterisk configured properly and it works whenever I put a *.call file in the /var/spool/asterisk/outgoing directory. My problem is that I get the error: java.net.ConnectException: Connection refused I have a softphone setup so that it can call the asterisk pbx and hear the demo messages like the echo test and so on. I have the following but do not know what is going on. ManagerConnectionFactory factory = new ManagerConnectionFactory("192.168.0.100", "softPhoneUserName", "softPhonePassword"); originateAction = new OriginateAction(); originateAction.setChannel("IAX2/softPhoneUserName"); originateAction.setContext("ContextProviderAsDefinedIn-IAX.CONF"); originateAction.setExten("600"); originateAction.setPriority(new Integer(1)); originateAction.setTimeout(new Integer(30000)); I really need help with this. thanks, Eric. |
From: Robert A. <aug...@ya...> - 2006-10-16 19:04:16
|
David, Great info, I will try to dig in and see. Thanks a lot. robert > -----Original Message----- > From: ast...@li... > [mailto:ast...@li...] On > Behalf Of David Rudder > Sent: Monday, October 16, 2006 2:01 PM > To: ast...@li... > Subject: Re: [Asterisk-java-users] Asterisk-java and Text to Speech > > I have not used the Cepstral TTS with Asterisk, but it will > almost definitely work using the same strategy as with > Festival. I do this: > private char playText (String text) throws AgiException { > String soundsDir = "/var/lib/asterisks/sounds/tts/"; > String text2wavePath = "/usr/bin/text2wave"; > String waveName = "TTS_"+System.currentTimeMillis(); > exec("System", "echo '"+text+"'|"+text2wavePath+" -F > 8000 -o "+soundsDir+waveName+".wav"); > char digit = streamFile("tts/"+waveName, "0123456789*#"); > exec("System", "rm "+soundsDir+waveName+".wav"); > return digit; > } > > Basically, I use the System command to run the text2wave > program on the command-line. Then, I use streamFile to play > the new wave file that festival created. Finally, I delete > the created file. If Cepstral has a command-line > application, you can do the same thing. > > If the Cepstral integration has a new AGI command with it, > that allows you to run the TTS without an intermediate wave > file, it would be nice to be able to use that. You may be > able to use the Exec command. > > -Dave > > -------------------------------------------------------------- > ----------- > Using Tomcat but need to do more? Need to support web > services, security? > Get stuff done quickly with pre-integrated technology to make > your job easier Download IBM WebSphere Application Server > v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057& dat=121642 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: David R. <da...@re...> - 2006-10-16 18:00:49
|
I have not used the Cepstral TTS with Asterisk, but it will almost definitely work using the same strategy as with Festival. I do this: private char playText (String text) throws AgiException { String soundsDir = "/var/lib/asterisks/sounds/tts/"; String text2wavePath = "/usr/bin/text2wave"; String waveName = "TTS_"+System.currentTimeMillis(); exec("System", "echo '"+text+"'|"+text2wavePath+" -F 8000 -o "+soundsDir+waveName+".wav"); char digit = streamFile("tts/"+waveName, "0123456789*#"); exec("System", "rm "+soundsDir+waveName+".wav"); return digit; } Basically, I use the System command to run the text2wave program on the command-line. Then, I use streamFile to play the new wave file that festival created. Finally, I delete the created file. If Cepstral has a command-line application, you can do the same thing. If the Cepstral integration has a new AGI command with it, that allows you to run the TTS without an intermediate wave file, it would be nice to be able to use that. You may be able to use the Exec command. -Dave |
From: David R. <da...@re...> - 2006-10-16 17:53:36
|
Hi, I have a very basic dial-in and dial-out application working with Asterisk-Java using both the Manager API for originating calls and FastAGI for controlling the calls. If I upload my wave files to the asterisk server, everything works great. However, I would like to be able to record calls and store them on my Java app server, which is probably going to be on another machine. Imagine an answering machine that'll allow you to download your messages through a web interface. It's more than that (I know you can do that without Asterisk-Java), but let's keep it simple. So, I'd like to be able to transfer the recorded files from the Asterisk server to my Java server. Is there any built-in way to do this, or do I need to include a web server or FTP server on the Asterisk server? Thanks a lot! -Dave |
From: Johannes B. <j....@ad...> - 2006-10-16 15:49:16
|
Indeed I'm using a bristuffed one. I've already read a posting from you = somewhere regarding that bug (but somehow I thought it's not related to = my problem O_o). I'll check that at once. =20 Thanks and sorry for double posting. |
From: Johannes B. <j....@ad...> - 2006-10-16 09:10:30
|
Hello, =20 I'm currently implementing 'join' for the GJTapi-Asterisk-Provider. This = enables conference and transfer for GJTapi applications using that = provider. It's based on Asterisk-Java's manager interface. But I'm = running into problems ... maybe one can help me here. =20 A scenario is:=20 someone calls me on my SIP-phone from 'outside' over Zap. I place that = person on hold and call another party. That done my application knows = there are two active calls with four different channels.=20 What I want to do next is to 'join' those two calls by using MeetMe and = the RedirectAction. Asterisk has an extension called 'custom-conf': = 'exten =3D> s,1,MeetMe(${EXTEN},dpqM)'. So I try to redirect one of my = SIP-Channels and the other two channels connected to the other parties = to a MeetMe-Conference: RedirectAction redAct =3D new RedirectAction(channel1, "custom-conf", = "222", new Integer(1)); managerConnection.sendAction(redAct); And the same for the other channels. The result is disconnection of all = parties. The response.getMessage() function keeps telling me "Channel = does not exist: net.sf.asterisk.manager.Channel: = id=3D'asterisk-6535-1160646952.173'; name=3D'Zap/1-1'; = callerId=3D'96....." for the external Channel no matter whether it's a = Sip or a Zap channel. Calling asteriskManager.getChannels() I can see = that it exists. Asterisk tells me " =3D=3D Spawn extension = (custom-conf, 222, 0) exited non-zero on 'Zap/1-1' in macro 'dial'" = followed by " -- Stopped music on hold on Zap/1-1 -- Hungup 'Zap/1-1'" =20 Any ideas? Maybe I should mention I'm using Asterisk-Java 0.2 because = I'm forced to use 1.4 Java. =20 Thanks, Johannes Boesl |
From: Karien Du P. <kar...@gm...> - 2006-10-16 05:16:25
|
Hi. I think it corresponds to the HangupCause. > They are defined in org.asteriskjava.live.HangupCause > Can you confirm this? If yes i will add the appropriate javadoc. > =Stefan Hi, that was my first thought that they correspond to the HangupCase, but it that look that way as I received a 1 in the response all the time in the event of failure. No asnwer, rejected, no such number, etc all had a response of 1. The hangupcauses distinct between all these causes and therefore it can not be the hangupcauses. Then I thought maybe its a bug in asterisk, cause having the failure reasons correpsond to the hangupcauses is a great idea. I search around on the asterisk list and got the following: "Unfortunately, Originate is somehow a mess. Answering your question, the "reason" is not really a reason, at least not in release 1.2.12.1, that is the one im using. The reason is set according to the last communication frame read from the originated channel. Let me explain. When you originate a channel, asterisk starts creating the internal C structure, and then trying to reach the peer. So, one first common control frame received from our originated channel is AST_CONTROL_RING, defined in include/asterisk/frame.h with a value of 2. If originate terminated in that very moment, the reason would be 2. But in your scenario, when the callee does not pick up, the channel is hangup, so the control frame AST_CONTROL_HANGUP is the last frame read, and YES, is defined with a value of 1, the 1 you always receive. The 4 you receive is defined as AST_CONTROL_ANSWER, because that was the last control frame received once the call was answered and the event OriginateSuccess sent. In my personal experience I have the following code working good enough to handle async originate responses, it has some comments so you can see what other reasons im using:" That thread can be read under the following URL http://lists.digium.com/pipermail/asterisk-users/2006-October/169223.html Regards. |
From: Bruno N. <bn...@gm...> - 2006-10-14 18:03:46
|
Hi Stefan, Thank you for answering. > Hi, > your messages went through i dont know why they dont show up in the > archives. I just didnt have the time to have a deeper look at the > problem. Ah ok, so everybody please forgive me for my re-postings. > what i get from your description is: > a) the account property is not set when following events using local > channels > b) the callerid information is not correct in that case > c) the dialed/dialingChannel are incorrect Yes, that's right. > I will not promise that Asterisk-Java did everything the right way but > it is very well possible that Asterisk itself did not correctly report > all changes through events. Which version of Asterisk did you use for > this? Version 1.2, planning to move on to 1.4. > Do you see events that are not correctly catched by Asterisk-Java. No I didn't try it untill now, good idea. Will do this on monday. > Local channels are conceptually a very difficult thing as they act just > as proxies in Asterisk and its handling is - well - sometimes confusing. It's terrible, we can admit. > If you dont really need them, don't use them ;) This would save you a > lot of trouble. Unfortunately this is not possible, I simply have to deal with them. My hope is your library magically digest all that mess for me... ;-) > Besides that it would be interesting to find out what is causing the > problem. And either fix Asterisk or Asterisk-Java. If you dont mind > please connect to the Manager API through telnet or sniff the traffic > via ngrep and compare the events to the state changes in Asterisk-Java. > If you see everything is in parallel we have a problem in Asterisk, if > not indicate which events were not correctly handled and i will fix it. Ok Stefan, I will do this. > > Hope that helps a bit, Yes, it helped because now I can show my customer that the things are not "ready to use" as they expected. We'll have to struggle a bit first. Thanks for the attention, bruno. |
From: Stefan R. <ste...@re...> - 2006-10-14 17:34:03
|
do you use a bristuffed version of asterisk? There were (is?) a bug that kpj never fixed though I sent him my patch several time. Its at http://www.reucon.net/~srt/bristuff_q_redirect.patch= =3DStefan Johannes Boesl wrote: > Hello, > =20 > I'm currently implementing 'join' for the GJTapi-Asterisk-Provider. Thi= s > enables conference and transfer for GJTapi applications using that > provider. It's based on Asterisk-Java's manager interface. But I'm > running into problems ... maybe one can help me here. > =20 > A scenario is: > someone calls me on my SIP-phone from 'outside' over Zap. I place that > person on hold and call another party. That done my application knows > there are two active calls with four different channels. > What I want to do next is to 'join' those two calls by using MeetMe and= > the RedirectAction. Asterisk has an extension called 'custom-conf': > 'exten =3D> s,1,MeetMe(${EXTEN},dpqM)'. So I try to redirect one of my > SIP-Channels and the other two channels connected to the other parties > to a MeetMe-Conference: > RedirectAction redAct =3D new RedirectAction(channel1, "custom-conf", > "222", new Integer(1)); > managerConnection.sendAction(redAct); > And the same for the other channels. The result is disconnection of all= > parties. The response.getMessage() function keeps telling me "Channel > does not exist: net.sf.asterisk.manager.Channel: > id=3D'asterisk-6535-1160646952.173'; name=3D'Zap/1-1'; callerId=3D'96..= =2E.." > for the external Channel no matter whether it's a Sip or a Zap channel.= > Calling asteriskManager.getChannels() I can see that it exists. Asteris= k > tells me " =3D=3D Spawn extension (custom-conf, 222, 0) exited non-zer= o on > 'Zap/1-1' in macro 'dial'" followed by " -- Stopped music on hold on= > Zap/1-1 > -- Hungup 'Zap/1-1'" > =20 > Any ideas? Maybe I should mention I'm using Asterisk-Java 0.2 because > I'm forced to use 1.4 Java. > =20 > Thanks, > Johannes Boesl >=20 >=20 > -----------------------------------------------------------------------= - >=20 > -----------------------------------------------------------------------= -- > Using Tomcat but need to do more? Need to support web services, securit= y? > Get stuff done quickly with pre-integrated technology to make your job = easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 >=20 >=20 > -----------------------------------------------------------------------= - >=20 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... |
From: Stefan R. <ste...@re...> - 2006-10-14 17:31:55
|
Karien Du Preez wrote: > Sorry, please replace response with reason. Thanks. Its the reason code= , > and the getReason() method. I think it corresponds to the HangupCause. They are defined in org.asteriskjava.live.HangupCause Can you confirm this? If yes i will add the appropriate javadoc. =3DStefan >=20 > On 10/12/06, *Karien Du Preez* < kar...@gm... > <mailto:kar...@gm...>> wrote: >=20 > Hi. >=20 > I'm using 0.3 milestone release. I'm using the OrigantaAction to > make calls, I send it via the > managerConnection.sendEventGeneratingAction() in order to get the > originate events back. AbstractOriginateEvent contains a > getResponse method. I notice that when the originate action succeed= s > I get a OriginateSuccessEvent and the response code is 4. If the > action fails I get the OriginateFailureEvent, with a response code > of 1. >=20 > What are all the different response codes and what do each mean? Th= e > reason why I'm asking is that I want to determine the reason for > failure and present the user with an appropiate message. "Like the > call was rejected". "The call was not picked up in time". "That is > not a valid number", "Circuits are busy" , etc. >=20 > Thanks. >=20 >=20 >=20 > -----------------------------------------------------------------------= - >=20 > -----------------------------------------------------------------------= -- > Using Tomcat but need to do more? Need to support web services, securit= y? > Get stuff done quickly with pre-integrated technology to make your job = easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 >=20 >=20 > -----------------------------------------------------------------------= - >=20 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... |
From: Stefan R. <ste...@re...> - 2006-10-14 17:23:44
|
Hi, your messages went through i dont know why they dont show up in the archives. I just didnt have the time to have a deeper look at the problem. what i get from your description is: a) the account property is not set when following events using local channels b) the callerid information is not correct in that case c) the dialed/dialingChannel are incorrect I will not promise that Asterisk-Java did everything the right way but it is very well possible that Asterisk itself did not correctly report all changes through events. Which version of Asterisk did you use for this? Do you see events that are not correctly catched by Asterisk-Java. Local channels are conceptually a very difficult thing as they act just as proxies in Asterisk and its handling is - well - sometimes confusing. If you dont really need them, don't use them ;) This would save you a lot of trouble. Besides that it would be interesting to find out what is causing the problem. And either fix Asterisk or Asterisk-Java. If you dont mind please connect to the Manager API through telnet or sniff the traffic via ngrep and compare the events to the state changes in Asterisk-Java. If you see everything is in parallel we have a problem in Asterisk, if not indicate which events were not correctly handled and i will fix it. Hope that helps a bit, Stefan Bruno Negrao wrote: > Hi Stefan and everybody, >=20 > First I'd like to say thank you for your great job on > org.asterisk.live. It is very straightforward and easy to use. When it > will be finished it will make life much easier, absolutely. >=20 > I'm testing org.asterisk.live package and I'm noticing the > AsteriskChannel objects not always end up in a consistent state, even > after following all the PropertyChangeEvents they fire. >=20 > What showed me that was the following test. First I'll (try to) > explain my test, then I'll tell what would be the expected results and > then I'll show what I'm getting. >=20 > =3D=3D=3D> THE TEST: > A person at extension 3025 asked the asterisk server to call the 3026 > extension and then transfer the call to his extension. Simply put, the > person at 3025 wants to talk to the person at 3026, but asked the > asterisk server to initiate the call instead of directly dialing to > 3026 by himself. >=20 > To accomplish this task the asterisk server will do these steps: >=20 > 1) asterisk creates a pair of "Local/3025" channels, lets say > "Local/3025@foo,2" and "Local/3025@foo,1". >=20 > 2) A new channel called "SIP/3025-bleh" is created and > "Local/3025@foo,2" will dial to "SIP/3025-bleh". Let's assume a person > on "SIP/3025-bleh" answers the phone and both channels are linked > together. >=20 > 3) Now a new channel called "SIP/3026-bzzz" is created and > "Local/3025@foo,1" will dial it. >=20 > 4) A person at "SIP/3026-bzzz" answered the phone and now a tricky > process happens: > 4.1) "SIP/3026-bzzz" channel is renamed to "Local/3025@foo,2<ZOMBIE>" > and is hung up. > 4.2) "Local/3025@foo,2" channel is renamed to "SIP/3026-bzzz", what > will remain linked to "SIP/3025-bleh". > 4.3) "Local/3025@foo,1" is hung up. >=20 > =3D=3D=3D> THE EXPECTED RESULT: > The expected result was to find the resultant "SIP/3025-bleh" and > "SIP/3026-bzzz" channels stating clearly that they are linked > together, the 'callerId' should be correct on both channels and they > were supposed to indicate which channel is being charged for this > call. >=20 > This expected result can be obtained by instantiating a new > DefaultAsteriskChannel object and calling the getChannels() method. > The output would be something like this: >=20 > AsteriskChannel[id=3D'1160660968.768', name=3D'SIP/3026-bzzz', > callerId=3D'<3026>', state=3D'UP', account=3D'3025', dateOfCreation=3DT= hu Oct > 12 10:51:07 BRT 2006, dialedChannel=3Dnull, dialingChannel=3Dnull, > linkedChannel=3DAsteriskChannel[id=3D'1160660968.769',name=3D'SIP/3025-= bleh']] >=20 > AsteriskChannel[id=3D'1160660968.769', name=3D'SIP/3025-bleh', > callerId=3D'<3025>', state=3D'UP', account=3D'3025',dateOfCreation=3DTh= u Oct > 12 10:54:00 BRT 2006, dialedChannel=3Dnull, dialingChannel=3Dnull, > linkedChannel=3DAsteriskChannel[id=3D'1160660968.768',name=3D'SIP/3026-= bzzz']] > 25358555 >=20 > The above AsteriskChannel objects are consistent: the 'callerId' > properties are correct in both channels, also the 'account' property > shows that the extension 3025 would be charged. If i would report this > scenario to someone else I could picture that extension 3025 dialed to > 3026. Even if it didn't do it directly (asterisk dialed for it), the > idea that 3025 dialed 3026 is reasonable for this situation. >=20 >=20 > =3D=3D=3D> THE ACTUAL RESULT: > If instead of running a getChannels() to obtain the resultant active > AsteriskChannels I chose to follow all the PropertyChangeEvents for > those four channels since they were created I would end up with the > following 2 channels: >=20 > AsteriskChannel[id=3D'1160660968.768', name=3D'SIP/3026-bzzz', > callerId=3D'<3025>', state=3D'UP', account=3D'null', dateOfCreation=3DT= hu Oct > 12 10:51:07 BRT 2006, > dialedChannel=3DAsteriskChannel[id=3D'1160660968.769', > name=3D'SIP/3025-bleh'], dialingChannel=3Dnull, > linkedChannel=3DAsteriskChannel[id=3D'1160660968.769',name=3D'SIP/3025-= bleh']] >=20 > AsteriskChannel[id=3D'1160660968.769', name=3D'SIP/3025-bleh', > callerId=3D'<3025>', state=3D'UP', account=3D'null', dateOfCreation=3DT= hu Oct > 12 10:51:07 BRT 2006, dialedChannel=3Dnull, > dialingChannel=3DAsteriskChannel[id=3D'1160660968.768', > name=3D'SIP/3026-bzzz'], > linkedChannel=3DAsteriskChannel[id=3D'1160660968.768',name=3D'SIP/3026-= bzzz']] >=20 > These channels are not consistent. By reading them you're induced to > believe that 'SIP/3026-bzzz' dialed to 'SIP/3025-bleh', not the > opposite. Although techically 'SIP/3026-bzzz' (former > Local/3025@foo,2) indeed dialed to 'SIP/3025-bleh', it was the person > at 3025 that acctually initiated the call, and the person at 3026 > received the call. So the channels are not bringing useful information > for this purpose. >=20 > Besides that, the 'callerId' property for the 'SIP/3026-bzzz' channel > is set to '3025' instead of '3026' as would be expected. >=20 > The attached file is a text file showing all the PropertyChangeEvents > that happen with the aforementioned channels. >=20 > =3D=3D=3D> CONCLUSION > My conclusion is if I rely on PropertyChangeEvents to get my info I > won't have useful information for all the possible situations. >=20 > To get useful information I would need to run getChannels() from time > to time. Although this would work, this is not what I need for my > current project - we need real-time information on what's going on in > the asterisk server, so we need to react to the PropertyChangeEvents. >=20 > Guys, now tell me: Is there something I'm getting wrong from all this? > Do you agree this is a problem in the org.asterisk.live package? If > it's not, how should I deal with the resulting info? >=20 > Also, is there any alternative strategy I could take to get the > real-time information from the asterisk server without having to > handle all those all-confusing, error-prone, newbies-unfriendly Events > the asterisk Manager interface sends to us? >=20 > Thank you very much, >=20 > Bruno Negrao >=20 >=20 > -----------------------------------------------------------------------= - >=20 > New Channel: AsteriskChannel[id=3D'1160660968.768',name=3D'Local/3025@f= oo,2',callerId=3D'',state=3D'RING',account=3D'null',dateOfCreation=3DThu = Oct 12 10:51:07 BRT 2006,dialedChannel=3Dnull,dialingChannel=3Dnull,linke= dChannel=3Dnull] > New Channel: AsteriskChannel[id=3D'1160660968.767',name=3D'Local/3025@f= oo,1',callerId=3D'',state=3D'DOWN',account=3D'null',dateOfCreation=3DThu = Oct 12 10:51:07 BRT 2006,dialedChannel=3Dnull,dialingChannel=3Dnull,linke= dChannel=3Dnull] > Property change (callerId): AsteriskChannel[id=3D'1160660968.767',name=3D= 'Local/3025@foo,1',callerId=3D'<3025>',state=3D'DOWN',account=3D'null',da= teOfCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3Dnull,dialingC= hannel=3Dnull,linkedChannel=3Dnull] 30971263 > Property change (callerId): AsteriskChannel[id=3D'1160660968.768',name=3D= 'Local/3025@foo,2',callerId=3D'<3025>',state=3D'RING',account=3D'null',da= teOfCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3Dnull,dialingC= hannel=3Dnull,linkedChannel=3Dnull] 8814217 > New Channel: AsteriskChannel[id=3D'1160660968.769',name=3D'SIP/3025-ble= h',callerId=3D'',state=3D'DOWN',account=3D'null',dateOfCreation=3DThu Oct= 12 10:51:07 BRT 2006,dialedChannel=3Dnull,dialingChannel=3Dnull,linkedCh= annel=3Dnull] > Property change (dialedChannel): AsteriskChannel[id=3D'1160660968.768',= name=3D'Local/3025@foo,2',callerId=3D'<3025>',state=3D'RING',account=3D'n= ull',dateOfCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3DAsteri= skChannel[id=3D'1160660968.769',name=3D'SIP/3025-bleh'],dialingChannel=3D= null,linkedChannel=3Dnull] 8814217 > Property change (dialingChannel): AsteriskChannel[id=3D'1160660968.769'= ,name=3D'SIP/3025-bleh',callerId=3D'',state=3D'DOWN',account=3D'null',dat= eOfCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3Dnull,dialingCh= annel=3DAsteriskChannel[id=3D'1160660968.768',name=3D'Local/3025@foo,2'],= linkedChannel=3Dnull] 381299 > Property change (callerId): AsteriskChannel[id=3D'1160660968.769',name=3D= 'SIP/3025-bleh',callerId=3D'<3025>',state=3D'DOWN',account=3D'null',dateO= fCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3Dnull,dialingChan= nel=3DAsteriskChannel[id=3D'1160660968.768',name=3D'Local/3025@foo,2'],li= nkedChannel=3Dnull] 381299 > Property change (state): AsteriskChannel[id=3D'1160660968.769',name=3D'= SIP/3025-bleh',callerId=3D'<3025>',state=3D'RINGING',account=3D'null',dat= eOfCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3Dnull,dialingCh= annel=3DAsteriskChannel[id=3D'1160660968.768',name=3D'Local/3025@foo,2'],= linkedChannel=3Dnull] 381299 > Property change (state): AsteriskChannel[id=3D'1160660968.769',name=3D'= SIP/3025-bleh',callerId=3D'<3025>',state=3D'UP',account=3D'null',dateOfCr= eation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3Dnull,dialingChannel= =3DAsteriskChannel[id=3D'1160660968.768',name=3D'Local/3025@foo,2'],linke= dChannel=3Dnull] 381299 > Property change (state): AsteriskChannel[id=3D'1160660968.768',name=3D'= Local/3025@foo,2',callerId=3D'<3025>',state=3D'UP',account=3D'null',dateO= fCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3DAsteriskChannel[= id=3D'1160660968.769',name=3D'SIP/3025-bleh'],dialingChannel=3Dnull,linke= dChannel=3Dnull] 8814217 > Property change (linkedChannel): AsteriskChannel[id=3D'1160660968.768',= name=3D'Local/3025@foo,2',callerId=3D'<3025>',state=3D'UP',account=3D'nul= l',dateOfCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3DAsterisk= Channel[id=3D'1160660968.769',name=3D'SIP/3025-bleh'],dialingChannel=3Dnu= ll,linkedChannel=3DAsteriskChannel[id=3D'1160660968.769',name=3D'SIP/3025= -bleh']] 8814217 > Property change (linkedChannel): AsteriskChannel[id=3D'1160660968.769',= name=3D'SIP/3025-bleh',callerId=3D'<3025>',state=3D'UP',account=3D'null',= dateOfCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3Dnull,dialin= gChannel=3DAsteriskChannel[id=3D'1160660968.768',name=3D'Local/3025@foo,2= '],linkedChannel=3DAsteriskChannel[id=3D'1160660968.768',name=3D'Local/30= 25@foo,2']] 381299 > Property change (state): AsteriskChannel[id=3D'1160660968.767',name=3D'= Local/3025@foo,1',callerId=3D'<3025>',state=3D'UP',account=3D'null',dateO= fCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3Dnull,dialingChan= nel=3Dnull,linkedChannel=3Dnull] 30971263 > New Channel: AsteriskChannel[id=3D'1160660971.770',name=3D'SIP/3026-bzz= z',callerId=3D'',state=3D'DOWN',account=3D'null',dateOfCreation=3DThu Oct= 12 10:51:10 BRT 2006,dialedChannel=3Dnull,dialingChannel=3Dnull,linkedCh= annel=3Dnull] > Property change (dialedChannel): AsteriskChannel[id=3D'1160660968.767',= name=3D'Local/3025@foo,1',callerId=3D'<3025>',state=3D'UP',account=3D'nul= l',dateOfCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3DAsterisk= Channel[id=3D'1160660971.770',name=3D'SIP/3026-bzzz'],dialingChannel=3Dnu= ll,linkedChannel=3Dnull] 30971263 > Property change (dialingChannel): AsteriskChannel[id=3D'1160660971.770'= ,name=3D'SIP/3026-bzzz',callerId=3D'',state=3D'DOWN',account=3D'null',dat= eOfCreation=3DThu Oct 12 10:51:10 BRT 2006,dialedChannel=3Dnull,dialingCh= annel=3DAsteriskChannel[id=3D'1160660968.767',name=3D'Local/3025@foo,1'],= linkedChannel=3Dnull] 26680060 > Property change (callerId): AsteriskChannel[id=3D'1160660971.770',name=3D= 'SIP/3026-bzzz',callerId=3D'<3026>',state=3D'DOWN',account=3D'null',dateO= fCreation=3DThu Oct 12 10:51:10 BRT 2006,dialedChannel=3Dnull,dialingChan= nel=3DAsteriskChannel[id=3D'1160660968.767',name=3D'Local/3025@foo,1'],li= nkedChannel=3Dnull] 26680060 > Property change (state): AsteriskChannel[id=3D'1160660971.770',name=3D'= SIP/3026-bzzz',callerId=3D'<3026>',state=3D'RINGING',account=3D'null',dat= eOfCreation=3DThu Oct 12 10:51:10 BRT 2006,dialedChannel=3Dnull,dialingCh= annel=3DAsteriskChannel[id=3D'1160660968.767',name=3D'Local/3025@foo,1'],= linkedChannel=3Dnull] 26680060 > Property change (linkedChannel): AsteriskChannel[id=3D'1160660968.768',= name=3D'Local/3025@foo,2',callerId=3D'<3025>',state=3D'UP',account=3D'nul= l',dateOfCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3DAsterisk= Channel[id=3D'1160660968.769',name=3D'SIP/3025-bleh'],dialingChannel=3Dnu= ll,linkedChannel=3Dnull] 8814217 > Property change (linkedChannel): AsteriskChannel[id=3D'1160660968.769',= name=3D'SIP/3025-bleh',callerId=3D'<3025>',state=3D'UP',account=3D'null',= dateOfCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3Dnull,dialin= gChannel=3DAsteriskChannel[id=3D'1160660968.768',name=3D'Local/3025@foo,2= '],linkedChannel=3Dnull] 381299 > Property change (linkedChannel): AsteriskChannel[id=3D'1160660968.768',= name=3D'Local/3025@foo,2',callerId=3D'<3025>',state=3D'UP',account=3D'nul= l',dateOfCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3DAsterisk= Channel[id=3D'1160660968.769',name=3D'SIP/3025-bleh'],dialingChannel=3Dnu= ll,linkedChannel=3DAsteriskChannel[id=3D'1160660968.769',name=3D'SIP/3025= -bleh']] 8814217 > Property change (linkedChannel): AsteriskChannel[id=3D'1160660968.769',= name=3D'SIP/3025-bleh',callerId=3D'<3025>',state=3D'UP',account=3D'null',= dateOfCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3Dnull,dialin= gChannel=3DAsteriskChannel[id=3D'1160660968.768',name=3D'Local/3025@foo,2= '],linkedChannel=3DAsteriskChannel[id=3D'1160660968.768',name=3D'Local/30= 25@foo,2']] 381299 > Property change (state): AsteriskChannel[id=3D'1160660971.770',name=3D'= SIP/3026-bzzz',callerId=3D'<3026>',state=3D'UP',account=3D'null',dateOfCr= eation=3DThu Oct 12 10:51:10 BRT 2006,dialedChannel=3Dnull,dialingChannel= =3DAsteriskChannel[id=3D'1160660968.767',name=3D'Local/3025@foo,1'],linke= dChannel=3Dnull] 26680060 > Property change (linkedChannel): AsteriskChannel[id=3D'1160660968.767',= name=3D'Local/3025@foo,1',callerId=3D'<3025>',state=3D'UP',account=3D'nul= l',dateOfCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3DAsterisk= Channel[id=3D'1160660971.770',name=3D'SIP/3026-bzzz'],dialingChannel=3Dnu= ll,linkedChannel=3DAsteriskChannel[id=3D'1160660971.770',name=3D'SIP/3026= -bzzz']] 30971263 > Property change (linkedChannel): AsteriskChannel[id=3D'1160660971.770',= name=3D'SIP/3026-bzzz',callerId=3D'<3026>',state=3D'UP',account=3D'null',= dateOfCreation=3DThu Oct 12 10:51:10 BRT 2006,dialedChannel=3Dnull,dialin= gChannel=3DAsteriskChannel[id=3D'1160660968.767',name=3D'Local/3025@foo,1= '],linkedChannel=3DAsteriskChannel[id=3D'1160660968.767',name=3D'Local/30= 25@foo,1']] 26680060 > Property change (linkedChannel): AsteriskChannel[id=3D'1160660968.768',= name=3D'Local/3025@foo,2',callerId=3D'<3025>',state=3D'UP',account=3D'nul= l',dateOfCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3DAsterisk= Channel[id=3D'1160660968.769',name=3D'SIP/3025-bleh'],dialingChannel=3Dnu= ll,linkedChannel=3Dnull] 8814217 > Property change (linkedChannel): AsteriskChannel[id=3D'1160660968.769',= name=3D'SIP/3025-bleh',callerId=3D'<3025>',state=3D'UP',account=3D'null',= dateOfCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3Dnull,dialin= gChannel=3DAsteriskChannel[id=3D'1160660968.768',name=3D'Local/3025@foo,2= '],linkedChannel=3Dnull] 381299 > Property change (linkedChannel): AsteriskChannel[id=3D'1160660968.768',= name=3D'Local/3025@foo,2',callerId=3D'<3025>',state=3D'UP',account=3D'nul= l',dateOfCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3DAsterisk= Channel[id=3D'1160660968.769',name=3D'SIP/3025-bleh'],dialingChannel=3Dnu= ll,linkedChannel=3DAsteriskChannel[id=3D'1160660968.769',name=3D'SIP/3025= -bleh']] 8814217 > Property change (linkedChannel): AsteriskChannel[id=3D'1160660968.769',= name=3D'SIP/3025-bleh',callerId=3D'<3025>',state=3D'UP',account=3D'null',= dateOfCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3Dnull,dialin= gChannel=3DAsteriskChannel[id=3D'1160660968.768',name=3D'Local/3025@foo,2= '],linkedChannel=3DAsteriskChannel[id=3D'1160660968.768',name=3D'Local/30= 25@foo,2']] 381299 > Property change (name): AsteriskChannel[id=3D'1160660971.770',name=3D'S= IP/3026-bzzz<MASQ>',callerId=3D'<3026>',state=3D'UP',account=3D'null',dat= eOfCreation=3DThu Oct 12 10:51:10 BRT 2006,dialedChannel=3Dnull,dialingCh= annel=3DAsteriskChannel[id=3D'1160660968.767',name=3D'Local/3025@foo,1'],= linkedChannel=3DAsteriskChannel[id=3D'1160660968.767',name=3D'Local/3025@= foo,1']] 26680060 > Property change (name): AsteriskChannel[id=3D'1160660968.768',name=3D'S= IP/3026-bzzz',callerId=3D'<3025>',state=3D'UP',account=3D'null',dateOfCre= ation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3DAsteriskChannel[id=3D= '1160660968.769',name=3D'SIP/3025-bleh'],dialingChannel=3Dnull,linkedChan= nel=3DAsteriskChannel[id=3D'1160660968.769',name=3D'SIP/3025-bleh']] 8814= 217 > Property change (name): AsteriskChannel[id=3D'1160660971.770',name=3D'L= ocal/3025@foo,2<ZOMBIE>',callerId=3D'<3026>',state=3D'UP',account=3D'null= ',dateOfCreation=3DThu Oct 12 10:51:10 BRT 2006,dialedChannel=3Dnull,dial= ingChannel=3DAsteriskChannel[id=3D'1160660968.767',name=3D'Local/3025@foo= ,1'],linkedChannel=3DAsteriskChannel[id=3D'1160660968.767',name=3D'Local/= 3025@foo,1']] 26680060 > Property change (linkedChannel): AsteriskChannel[id=3D'1160660968.767',= name=3D'Local/3025@foo,1',callerId=3D'<3025>',state=3D'UP',account=3D'nul= l',dateOfCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3DAsterisk= Channel[id=3D'1160660971.770',name=3D'Local/3025@foo,2<ZOMBIE>'],dialingC= hannel=3Dnull,linkedChannel=3Dnull] 30971263 > Property change (linkedChannel): AsteriskChannel[id=3D'1160660971.770',= name=3D'Local/3025@foo,2<ZOMBIE>',callerId=3D'<3026>',state=3D'UP',accoun= t=3D'null',dateOfCreation=3DThu Oct 12 10:51:10 BRT 2006,dialedChannel=3D= null,dialingChannel=3DAsteriskChannel[id=3D'1160660968.767',name=3D'Local= /3025@foo,1'],linkedChannel=3Dnull] 26680060 > Property change (state): AsteriskChannel[id=3D'1160660971.770',name=3D'= Local/3025@foo,2<ZOMBIE>',callerId=3D'<3026>',state=3D'HUNGUP',account=3D= 'null',dateOfCreation=3DThu Oct 12 10:51:10 BRT 2006,dialedChannel=3Dnull= ,dialingChannel=3DAsteriskChannel[id=3D'1160660968.767',name=3D'Local/302= 5@foo,1'],linkedChannel=3Dnull] 26680060 > Property change (state): AsteriskChannel[id=3D'1160660968.767',name=3D'= Local/3025@foo,1',callerId=3D'<3025>',state=3D'HUNGUP',account=3D'null',d= ateOfCreation=3DThu Oct 12 10:51:07 BRT 2006,dialedChannel=3DAsteriskChan= nel[id=3D'1160660971.770',name=3D'Local/3025@foo,2<ZOMBIE>'],dialingChann= el=3Dnull,linkedChannel=3Dnull] 30971263 >=20 >=20 > -----------------------------------------------------------------------= - >=20 > -----------------------------------------------------------------------= -- > Using Tomcat but need to do more? Need to support web services, securit= y? > Get stuff done quickly with pre-integrated technology to make your job = easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 >=20 >=20 > -----------------------------------------------------------------------= - >=20 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... |
From: Bruno N. <bn...@gm...> - 2006-10-14 16:44:38
|
Hi guys, there is a wierd thing happening with the messages I've posted here on these lists - apparently they are being removed from the archive. I posted a message with the subject "AsteriskChannels from org.asterisk.live package don't end up in a consistent state." And it is not on the archive anymore. The archive says "This message does not (any longer) exist." after I search it using the search engine. You can check it by yourself trying the url http://sourceforge.net/search/index.php?words=subject%3A%28%2Bconsistent%29+AND+ml_name%3A%28asterisk-java-devel%29&sort=subject&sortdir=desc&offset=0&group_id=118998&type_of_search=mlists Why is it happening? I cannot understand...!!!?? Any help would be appreciated, Bruno. |
From: Bruno N. <bn...@gm...> - 2006-10-12 15:35:11
|
Hi Stefan and everybody, First I'd like to say thank you for your great job on org.asterisk.live. It is very straightforward and easy to use. When it will be finished it will make life much easier, absolutely. I'm testing org.asterisk.live package and I'm noticing the AsteriskChannel objects not always end up in a consistent state, even after following all the PropertyChangeEvents they fire. What showed me that was the following test. First I'll (try to) explain my test, then I'll tell what would be the expected results and then I'll show what I'm getting. ===> THE TEST: A person at extension 3025 asked the asterisk server to call the 3026 extension and then transfer the call to his extension. Simply put, the person at 3025 wants to talk to the person at 3026, but asked the asterisk server to initiate the call instead of directly dialing to 3026 by himself. To accomplish this task the asterisk server will do these steps: 1) asterisk creates a pair of "Local/3025" channels, lets say "Local/3025@foo,2" and "Local/3025@foo,1". 2) A new channel called "SIP/3025-bleh" is created and "Local/3025@foo,2" will dial to "SIP/3025-bleh". Let's assume a person on "SIP/3025-bleh" answers the phone and both channels are linked together. 3) Now a new channel called "SIP/3026-bzzz" is created and "Local/3025@foo,1" will dial it. 4) A person at "SIP/3026-bzzz" answered the phone and now a tricky process happens: 4.1) "SIP/3026-bzzz" channel is renamed to "Local/3025@foo,2<ZOMBIE>" and is hung up. 4.2) "Local/3025@foo,2" channel is renamed to "SIP/3026-bzzz", what will remain linked to "SIP/3025-bleh". 4.3) "Local/3025@foo,1" is hung up. ===> THE EXPECTED RESULT: The expected result was to find the resultant "SIP/3025-bleh" and "SIP/3026-bzzz" channels stating clearly that they are linked together, the 'callerId' should be correct on both channels and they were supposed to indicate which channel is being charged for this call. This expected result can be obtained by instantiating a new DefaultAsteriskChannel object and calling the getChannels() method. The output would be something like this: AsteriskChannel[id='1160660968.768', name='SIP/3026-bzzz', callerId='<3026>', state='UP', account='3025', dateOfCreation=Thu Oct 12 10:51:07 BRT 2006, dialedChannel=null, dialingChannel=null, linkedChannel=AsteriskChannel[id='1160660968.769',name='SIP/3025-bleh']] AsteriskChannel[id='1160660968.769', name='SIP/3025-bleh', callerId='<3025>', state='UP', account='3025',dateOfCreation=Thu Oct 12 10:54:00 BRT 2006, dialedChannel=null, dialingChannel=null, linkedChannel=AsteriskChannel[id='1160660968.768',name='SIP/3026-bzzz']] 25358555 The above AsteriskChannel objects are consistent: the 'callerId' properties are correct in both channels, also the 'account' property shows that the extension 3025 would be charged. If i would report this scenario to someone else I could picture that extension 3025 dialed to 3026. Even if it didn't do it directly (asterisk dialed for it), the idea that 3025 dialed 3026 is reasonable for this situation. ===> THE ACTUAL RESULT: If instead of running a getChannels() to obtain the resultant active AsteriskChannels I chose to follow all the PropertyChangeEvents for those four channels since they were created I would end up with the following 2 channels: AsteriskChannel[id='1160660968.768', name='SIP/3026-bzzz', callerId='<3025>', state='UP', account='null', dateOfCreation=Thu Oct 12 10:51:07 BRT 2006, dialedChannel=AsteriskChannel[id='1160660968.769', name='SIP/3025-bleh'], dialingChannel=null, linkedChannel=AsteriskChannel[id='1160660968.769',name='SIP/3025-bleh']] AsteriskChannel[id='1160660968.769', name='SIP/3025-bleh', callerId='<3025>', state='UP', account='null', dateOfCreation=Thu Oct 12 10:51:07 BRT 2006, dialedChannel=null, dialingChannel=AsteriskChannel[id='1160660968.768', name='SIP/3026-bzzz'], linkedChannel=AsteriskChannel[id='1160660968.768',name='SIP/3026-bzzz']] These channels are not consistent. By reading them you're induced to believe that 'SIP/3026-bzzz' dialed to 'SIP/3025-bleh', not the opposite. Although techically 'SIP/3026-bzzz' (former Local/3025@foo,2) indeed dialed to 'SIP/3025-bleh', it was the person at 3025 that acctually initiated the call, and the person at 3026 received the call. So the channels are not bringing useful information for this purpose. Besides that, the 'callerId' property for the 'SIP/3026-bzzz' channel is set to '3025' instead of '3026' as would be expected. The attached file is a text file showing all the PropertyChangeEvents that happen with the aforementioned channels. ===> CONCLUSION My conclusion is if I rely on PropertyChangeEvents to get my info I won't have useful information for all the possible situations. To get useful information I would need to run getChannels() from time to time. Although this would work, this is not what I need for my current project - we need real-time information on what's going on in the asterisk server, so we need to react to the PropertyChangeEvents. Guys, now tell me: Is there something I'm getting wrong from all this? Do you agree this is a problem in the org.asterisk.live package? If it's not, how should I deal with the resulting info? Also, is there any alternative strategy I could take to get the real-time information from the asterisk server without having to handle all those all-confusing, error-prone, newbies-unfriendly Events the asterisk Manager interface sends to us? Thank you very much, Bruno Negrao |
From: Karien Du P. <kar...@gm...> - 2006-10-12 13:28:38
|
Sorry, please replace response with reason. Thanks. Its the reason code, and the getReason() method. On 10/12/06, Karien Du Preez <kar...@gm...> wrote: > > Hi. > > I'm using 0.3 milestone release. I'm using the OrigantaAction to make > calls, I send it via the managerConnection.sendEventGeneratingAction() in > order to get the originate events back. AbstractOriginateEvent contains a > getResponse method. I notice that when the originate action succeeds I get a > OriginateSuccessEvent and the response code is 4. If the action fails I get > the OriginateFailureEvent, with a response code of 1. > > What are all the different response codes and what do each mean? The > reason why I'm asking is that I want to determine the reason for failure and > present the user with an appropiate message. "Like the call was rejected". > "The call was not picked up in time". "That is not a valid number", > "Circuits are busy" , etc. > > Thanks. > |
From: Karien Du P. <kar...@gm...> - 2006-10-12 13:18:00
|
Hi. I'm using 0.3 milestone release. I'm using the OrigantaAction to make calls, I send it via the managerConnection.sendEventGeneratingAction() in order to get the originate events back. AbstractOriginateEvent contains a getResponse method. I notice that when the originate action succeeds I get a OriginateSuccessEvent and the response code is 4. If the action fails I get the OriginateFailureEvent, with a response code of 1. What are all the different response codes and what do each mean? The reason why I'm asking is that I want to determine the reason for failure and present the user with an appropiate message. "Like the call was rejected". "The call was not picked up in time". "That is not a valid number", "Circuits are busy" , etc. Thanks. |
From: Johannes B. <j....@ad...> - 2006-10-12 10:10:27
|
Hello, =20 I'm currently implementing 'join' for the GJTapi-Asterisk-Provider. This = enables conference and transfer for GJTapi applications using that = provider. It's based on Asterisk-Java's manager interface. But I'm = running into problems ... maybe one can help me here. =20 A scenario is:=20 someone calls me on my SIP-phone from 'outside' over Zap. I place that = person on hold and call another party. That done my application knows = there are two active calls with four different channels.=20 What I want to do next is to 'join' those two calls by using MeetMe and = the RedirectAction. Asterisk has an extension called 'custom-conf': = 'exten =3D> s,1,MeetMe(${EXTEN},dpqM)'. So I try to redirect one of my = SIP-Channels and the other two channels connected to the other parties = to a MeetMe-Conference: RedirectAction redAct =3D new RedirectAction(channel1, "custom-conf", = "222", new Integer(1)); managerConnection.sendAction(redAct); And the same for the other channels. The result is disconnection of all = parties. The response.getMessage() function keeps telling me "Channel = does not exist: net.sf.asterisk.manager.Channel: = id=3D'asterisk-6535-1160646952.173'; name=3D'Zap/1-1'; = callerId=3D'96....." for the external Channel no matter whether it's a = Sip or a Zap channel. Calling asteriskManager.getChannels() I can see = that it exists. Asterisk tells me " =3D=3D Spawn extension = (custom-conf, 222, 0) exited non-zero on 'Zap/1-1' in macro 'dial'" = followed by " -- Stopped music on hold on Zap/1-1 -- Hungup 'Zap/1-1'" =20 Any ideas? Maybe I should mention I'm using Asterisk-Java 0.2 because = I'm forced to use 1.4 Java. =20 Thanks, Johannes Boesl |
From: Peter H. <pe...@ra...> - 2006-10-11 21:30:00
|
No problem! I hope the test worked out positive! Peter |
From: Stefan R. <ste...@re...> - 2006-10-11 20:00:25
|
Henry SCHMITT wrote: > public void run() throws > IOException, > AuthenticationFailedException, > TimeoutException > { > managerConnection.login(); > managerConnection.addEventListener(this); > =09 > SipShowPeerAction sipShowPeerAction =3D new SipShowPeerAction("999"); > managerConnection.sendAction(sipShowPeerAction); maybe add some Thread.sleep() here to wait for the events. =09 > } or just use the sendEventGeneratingAction method =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... |
From: Bruno N. <bn...@gm...> - 2006-10-11 17:50:05
|
This is only a test because my previous emails are taking a huge time to be sent to the mailing list. I'm sorry, bruno. |
From: Bruno N. <bn...@gm...> - 2006-10-11 13:45:00
|
Hi guys, I'm new to Asterisk and Asterisk-java and I'm having difficulties to properly describe a call that had been transfered. What I am noticing is the AsteriskServer.getChannels() gives a different (and better) information than if I follow all the property change events issued by every active channel. For example, see the linked channels pair bellow shown with AsteriskServer.getChannels. They were generated after the asterisk server was asked to dial to 021252865 for the 3025 extension and the call was successfully activated (a pair of Local/3025 channels were created on the beginning): 1 - AsteriskChannel[id='1160572328.711',name='IAX2/pfplanetariumbh-6',callerId='<021252865>',state='UP',account='3025',dateOfCreation=Wed Oct 11 10:13:27 BRT 2006,dialedChannel=null,dialingChannel=null,linkedChannel=AsteriskChannel[id=' 1160572328.712',name='SIP/3025-e0ba']] 2 - AsteriskChannel[id='1160572328.712',name='SIP/3025-e0ba',callerId='<3025>',state='UP',account='3025',dateOfCreation=Wed Oct 11 10:32:47 BRT 2006,dialedChannel=null,dialingChannel=null,linkedChannel=AsteriskChannel[id=' 1160572328.711',name='IAX2/pfplanetariumbh-6']] The output above says clearly that 3025 dialed to 021252865. And those linked channels were the final result after a bunch of Local/ channels hungup. Bellow is what I get if I follow the property change events for all the channels related to that call. See how, at the end when the call is active, I never see channels 1160572328.711 and 1160572328.712 showing the same information that I get from getChannels: New Channel: AsteriskChannel[id='1160571867.707',name='Local/3025@agente_out-8f46,2',callerId='',state='RING',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=null,dialingChannel=null,linkedChannel=null] New Channel: AsteriskChannel[id='1160571867.706',name='Local/3025@agente_out-8f46,1',callerId='',state='DOWN',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=null,dialingChannel=null,linkedChannel=null] Property change (callerId): AsteriskChannel[id='1160571867.706',name=' Local/3025@agente_out-8f46,1',callerId='<3025>',state='DOWN',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=null,dialingChannel=null,linkedChannel=null] 3449340 Property change (callerId): AsteriskChannel[id='1160571867.707',name=' Local/3025@agente_out-8f46,2',callerId='<3025>',state='RING',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=null,dialingChannel=null,linkedChannel=null] 24561483 New Channel: AsteriskChannel[id='1160571867.708',name='SIP/3025-abd8',callerId='',state='DOWN',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=null,dialingChannel=null,linkedChannel=null] Property change (dialedChannel): AsteriskChannel[id='1160571867.707',name=' Local/3025@agente_out-8f46,2',callerId='<3025>',state='RING',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=AsteriskChannel[id='1160571867.708',name='SIP/3025-abd8'],dialingChannel=null,linkedChannel=null] 24561483 Property change (dialingChannel): AsteriskChannel[id='1160571867.708',name='SIP/3025-abd8',callerId='',state='DOWN',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160571867.707 ',name='Local/3025@agente_out-8f46,2'],linkedChannel=null] 9829657 Property change (callerId): AsteriskChannel[id='1160571867.708',name='SIP/3025-abd8',callerId='<3025>',state='DOWN',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160571867.707 ',name='Local/3025@agente_out-8f46,2'],linkedChannel=null] 9829657 Property change (state): AsteriskChannel[id='1160571867.708',name='SIP/3025-abd8',callerId='<3025>',state='RINGING',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160571867.707 ',name='Local/3025@agente_out-8f46,2'],linkedChannel=null] 9829657 Property change (state): AsteriskChannel[id='1160571867.708',name='SIP/3025-abd8',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160571867.707 ',name='Local/3025@agente_out-8f46,2'],linkedChannel=null] 9829657 Property change (state): AsteriskChannel[id='1160571867.707',name=' Local/3025@agente_out-8f46,2',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=AsteriskChannel[id='1160571867.708',name='SIP/3025-abd8'],dialingChannel=null,linkedChannel=null] 24561483 Property change (linkedChannel): AsteriskChannel[id='1160571867.707',name=' Local/3025@agente_out-8f46,2',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=AsteriskChannel[id='1160571867.708 ',name='SIP/3025-abd8'],dialingChannel=null,linkedChannel=AsteriskChannel[id=' 1160571867.708',name='SIP/3025-abd8']] 24561483 Property change (linkedChannel): AsteriskChannel[id='1160571867.708',name='SIP/3025-abd8',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160571867.707 ',name='Local/3025@agente_out-8f46,2'],linkedChannel=AsteriskChannel[id=' 1160571867.707',name='Local/3025@agente_out-8f46,2']] 9829657 Property change (state): AsteriskChannel[id='1160571867.706',name=' Local/3025@agente_out-8f46,1',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=null,dialingChannel=null,linkedChannel=null] 3449340 New Channel: AsteriskChannel[id='1160571872.709',name='IAX2/pfplanetariumbh-3',callerId='',state='DOWN',account='null',dateOfCreation=Wed Oct 11 10:05:51 BRT 2006,dialedChannel=null,dialingChannel=null,linkedChannel=null] Property change (callerId): AsteriskChannel[id='1160571872.709',name='IAX2/pfplanetariumbh-3',callerId='<3025>',state='DOWN',account='null',dateOfCreation=Wed Oct 11 10:05:51 BRT 2006,dialedChannel=null,dialingChannel=null,linkedChannel=null] 32476403 Property change (state): AsteriskChannel[id='1160571872.709',name='IAX2/pfplanetariumbh-3',callerId='<3025>',state='RINGING',account='null',dateOfCreation=Wed Oct 11 10:05:51 BRT 2006,dialedChannel=null,dialingChannel=null,linkedChannel=null] 32476403 Property change (dialedChannel): AsteriskChannel[id='1160571867.706',name=' Local/3025@agente_out-8f46,1',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=AsteriskChannel[id='1160571872.709',name='IAX2/pfplanetariumbh-3'],dialingChannel=null,linkedChannel=null] 3449340 Property change (dialingChannel): AsteriskChannel[id='1160571872.709',name='IAX2/pfplanetariumbh-3',callerId='<3025>',state='RINGING',account='null',dateOfCreation=Wed Oct 11 10:05:51 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160571867.706 ',name='Local/3025@agente_out-8f46,1'],linkedChannel=null] 32476403 Property change (callerId): AsteriskChannel[id='1160571872.709',name='IAX2/pfplanetariumbh-3',callerId='<021252865>',state='RINGING',account='null',dateOfCreation=Wed Oct 11 10:05:51 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160571867.706 ',name='Local/3025@agente_out-8f46,1'],linkedChannel=null] 32476403 Property change (linkedChannel): AsteriskChannel[id='1160571867.707',name=' Local/3025@agente_out-8f46,2',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=AsteriskChannel[id='1160571867.708',name='SIP/3025-abd8'],dialingChannel=null,linkedChannel=null] 24561483 Property change (linkedChannel): AsteriskChannel[id='1160571867.708',name='SIP/3025-abd8',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160571867.707 ',name='Local/3025@agente_out-8f46,2'],linkedChannel=null] 9829657 Property change (linkedChannel): AsteriskChannel[id='1160571867.707',name=' Local/3025@agente_out-8f46,2',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=AsteriskChannel[id='1160571867.708 ',name='SIP/3025-abd8'],dialingChannel=null,linkedChannel=AsteriskChannel[id=' 1160571867.708',name='SIP/3025-abd8']] 24561483 Property change (linkedChannel): AsteriskChannel[id='1160571867.708',name='SIP/3025-abd8',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160571867.707 ',name='Local/3025@agente_out-8f46,2'],linkedChannel=AsteriskChannel[id=' 1160571867.707',name='Local/3025@agente_out-8f46,2']] 9829657 Property change (linkedChannel): AsteriskChannel[id='1160571867.707',name=' Local/3025@agente_out-8f46,2',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=AsteriskChannel[id='1160571867.708',name='SIP/3025-abd8'],dialingChannel=null,linkedChannel=null] 24561483 Property change (linkedChannel): AsteriskChannel[id='1160571867.708',name='SIP/3025-abd8',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160571867.707 ',name='Local/3025@agente_out-8f46,2'],linkedChannel=null] 9829657 Property change (linkedChannel): AsteriskChannel[id='1160571867.707',name=' Local/3025@agente_out-8f46,2',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=AsteriskChannel[id='1160571867.708 ',name='SIP/3025-abd8'],dialingChannel=null,linkedChannel=AsteriskChannel[id=' 1160571867.708',name='SIP/3025-abd8']] 24561483 Property change (linkedChannel): AsteriskChannel[id='1160571867.708',name='SIP/3025-abd8',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160571867.707 ',name='Local/3025@agente_out-8f46,2'],linkedChannel=AsteriskChannel[id=' 1160571867.707',name='Local/3025@agente_out-8f46,2']] 9829657 Property change (state): AsteriskChannel[id='1160571872.709',name='IAX2/pfplanetariumbh-3',callerId='<021252865>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:51 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160571867.706 ',name='Local/3025@agente_out-8f46,1'],linkedChannel=null] 32476403 Property change (linkedChannel): AsteriskChannel[id='1160571867.706',name=' Local/3025@agente_out-8f46,1',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=AsteriskChannel[id='1160571872.709 ',name='IAX2/pfplanetariumbh-3'],dialingChannel=null,linkedChannel=AsteriskChannel[id=' 1160571872.709',name='IAX2/pfplanetariumbh-3']] 3449340 Property change (linkedChannel): AsteriskChannel[id='1160571872.709',name='IAX2/pfplanetariumbh-3',callerId='<021252865>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:51 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160571867.706 ',name='Local/3025@agente_out-8f46,1'],linkedChannel=AsteriskChannel[id=' 1160571867.706',name='Local/3025@agente_out-8f46,1']] 32476403 Property change (name): AsteriskChannel[id='1160571872.709',name='IAX2/pfplanetariumbh-3<MASQ>',callerId='<021252865>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:51 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160571867.706 ',name='Local/3025@agente_out-8f46,1'],linkedChannel=AsteriskChannel[id=' 1160571867.706',name='Local/3025@agente_out-8f46,1']] 32476403 Property change (name): AsteriskChannel[id='1160571867.707',name='IAX2/pfplanetariumbh-3',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=AsteriskChannel[id='1160571867.708 ',name='SIP/3025-abd8'],dialingChannel=null,linkedChannel=AsteriskChannel[id=' 1160571867.708',name='SIP/3025-abd8']] 24561483 Property change (name): AsteriskChannel[id='1160571872.709',name=' Local/3025@agente_out-8f46,2<ZOMBIE>',callerId='<021252865>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:51 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160571867.706 ',name='Local/3025@agente_out-8f46,1'],linkedChannel=AsteriskChannel[id=' 1160571867.706',name='Local/3025@agente_out-8f46,1']] 32476403 Property change (linkedChannel): AsteriskChannel[id='1160571867.706',name=' Local/3025@agente_out-8f46,1',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=AsteriskChannel[id='1160571872.709 ',name='Local/3025@agente_out-8f46,2<ZOMBIE>'],dialingChannel=null,linkedChannel=null] 3449340 Property change (linkedChannel): AsteriskChannel[id='1160571872.709',name=' Local/3025@agente_out-8f46,2<ZOMBIE>',callerId='<021252865>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:51 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160571867.706 ',name='Local/3025@agente_out-8f46,1'],linkedChannel=null] 32476403 Property change (state): AsteriskChannel[id='1160571872.709',name=' Local/3025@agente_out-8f46,2<ZOMBIE>',callerId='<021252865>',state='HUNGUP',account='null',dateOfCreation=Wed Oct 11 10:05:51 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160571867.706 ',name='Local/3025@agente_out-8f46,1'],linkedChannel=null] 32476403 Property change (state): AsteriskChannel[id='1160571867.706',name=' Local/3025@agente_out-8f46,1',callerId='<3025>',state='HUNGUP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=AsteriskChannel[id='1160571872.709 ',name='Local/3025@agente_out-8f46,2<ZOMBIE>'],dialingChannel=null,linkedChannel=null] 3449340 Property change (linkedChannel): AsteriskChannel[id='1160571867.707',name='IAX2/pfplanetariumbh-3',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=AsteriskChannel[id='1160571867.708',name='SIP/3025-abd8'],dialingChannel=null,linkedChannel=null] 24561483 Property change (linkedChannel): AsteriskChannel[id='1160571867.708',name='SIP/3025-abd8',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160571867.707',name='IAX2/pfplanetariumbh-3'],linkedChannel=null] 9829657 Property change (state): AsteriskChannel[id='1160571867.708',name='SIP/3025-abd8',callerId='<3025>',state='HUNGUP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160571867.707',name='IAX2/pfplanetariumbh-3'],linkedChannel=null] 9829657 Property change (state): AsteriskChannel[id='1160571867.707',name='IAX2/pfplanetariumbh-3',callerId='<3025>',state='HUNGUP',account='null',dateOfCreation=Wed Oct 11 10:05:45 BRT 2006,dialedChannel=AsteriskChannel[id='1160571867.708',name='SIP/3025-abd8'],dialingChannel=null,linkedChannel=null] 24561483 New Channel: AsteriskChannel[id='1160572328.711',name='Local/3025@agente_out-00fb,2',callerId='',state='RING',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=null,dialingChannel=null,linkedChannel=null] New Channel: AsteriskChannel[id='1160572328.710',name='Local/3025@agente_out-00fb,1',callerId='',state='DOWN',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=null,dialingChannel=null,linkedChannel=null] Property change (callerId): AsteriskChannel[id='1160572328.710',name=' Local/3025@agente_out-00fb,1',callerId='<3025>',state='DOWN',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=null,dialingChannel=null,linkedChannel=null] 31406333 Property change (callerId): AsteriskChannel[id='1160572328.711',name=' Local/3025@agente_out-00fb,2',callerId='<3025>',state='RING',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=null,dialingChannel=null,linkedChannel=null] 1484678 New Channel: AsteriskChannel[id='1160572328.712',name='SIP/3025-e0ba',callerId='',state='DOWN',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=null,dialingChannel=null,linkedChannel=null] Property change (dialedChannel): AsteriskChannel[id='1160572328.711',name=' Local/3025@agente_out-00fb,2',callerId='<3025>',state='RING',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=AsteriskChannel[id='1160572328.712',name='SIP/3025-e0ba'],dialingChannel=null,linkedChannel=null] 1484678 Property change (dialingChannel): AsteriskChannel[id='1160572328.712',name='SIP/3025-e0ba',callerId='',state='DOWN',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160572328.711 ',name='Local/3025@agente_out-00fb,2'],linkedChannel=null] 8984226 Property change (callerId): AsteriskChannel[id='1160572328.712',name='SIP/3025-e0ba',callerId='<3025>',state='DOWN',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160572328.711 ',name='Local/3025@agente_out-00fb,2'],linkedChannel=null] 8984226 Property change (state): AsteriskChannel[id='1160572328.712',name='SIP/3025-e0ba',callerId='<3025>',state='RINGING',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160572328.711 ',name='Local/3025@agente_out-00fb,2'],linkedChannel=null] 8984226 Property change (state): AsteriskChannel[id='1160572328.712',name='SIP/3025-e0ba',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160572328.711 ',name='Local/3025@agente_out-00fb,2'],linkedChannel=null] 8984226 Property change (state): AsteriskChannel[id='1160572328.711',name=' Local/3025@agente_out-00fb,2',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=AsteriskChannel[id='1160572328.712',name='SIP/3025-e0ba'],dialingChannel=null,linkedChannel=null] 1484678 Property change (linkedChannel): AsteriskChannel[id='1160572328.711',name=' Local/3025@agente_out-00fb,2',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=AsteriskChannel[id='1160572328.712 ',name='SIP/3025-e0ba'],dialingChannel=null,linkedChannel=AsteriskChannel[id=' 1160572328.712',name='SIP/3025-e0ba']] 1484678 Property change (linkedChannel): AsteriskChannel[id='1160572328.712',name='SIP/3025-e0ba',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160572328.711 ',name='Local/3025@agente_out-00fb,2'],linkedChannel=AsteriskChannel[id=' 1160572328.711',name='Local/3025@agente_out-00fb,2']] 8984226 Property change (state): AsteriskChannel[id='1160572328.710',name=' Local/3025@agente_out-00fb,1',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=null,dialingChannel=null,linkedChannel=null] 31406333 New Channel: AsteriskChannel[id='1160572331.713',name='IAX2/pfplanetariumbh-6',callerId='',state='DOWN',account='null',dateOfCreation=Wed Oct 11 10:13:30 BRT 2006,dialedChannel=null,dialingChannel=null,linkedChannel=null] Property change (callerId): AsteriskChannel[id='1160572331.713',name='IAX2/pfplanetariumbh-6',callerId='<3025>',state='DOWN',account='null',dateOfCreation=Wed Oct 11 10:13:30 BRT 2006,dialedChannel=null,dialingChannel=null,linkedChannel=null] 11935697 Property change (state): AsteriskChannel[id='1160572331.713',name='IAX2/pfplanetariumbh-6',callerId='<3025>',state='RINGING',account='null',dateOfCreation=Wed Oct 11 10:13:30 BRT 2006,dialedChannel=null,dialingChannel=null,linkedChannel=null] 11935697 Property change (dialedChannel): AsteriskChannel[id='1160572328.710',name=' Local/3025@agente_out-00fb,1',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=AsteriskChannel[id='1160572331.713',name='IAX2/pfplanetariumbh-6'],dialingChannel=null,linkedChannel=null] 31406333 Property change (dialingChannel): AsteriskChannel[id='1160572331.713',name='IAX2/pfplanetariumbh-6',callerId='<3025>',state='RINGING',account='null',dateOfCreation=Wed Oct 11 10:13:30 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160572328.710 ',name='Local/3025@agente_out-00fb,1'],linkedChannel=null] 11935697 Property change (callerId): AsteriskChannel[id='1160572331.713',name='IAX2/pfplanetariumbh-6',callerId='<021252865>',state='RINGING',account='null',dateOfCreation=Wed Oct 11 10:13:30 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160572328.710 ',name='Local/3025@agente_out-00fb,1'],linkedChannel=null] 11935697 Property change (linkedChannel): AsteriskChannel[id='1160572328.711',name=' Local/3025@agente_out-00fb,2',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=AsteriskChannel[id='1160572328.712',name='SIP/3025-e0ba'],dialingChannel=null,linkedChannel=null] 1484678 Property change (linkedChannel): AsteriskChannel[id='1160572328.712',name='SIP/3025-e0ba',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160572328.711 ',name='Local/3025@agente_out-00fb,2'],linkedChannel=null] 8984226 Property change (linkedChannel): AsteriskChannel[id='1160572328.711',name=' Local/3025@agente_out-00fb,2',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=AsteriskChannel[id='1160572328.712 ',name='SIP/3025-e0ba'],dialingChannel=null,linkedChannel=AsteriskChannel[id=' 1160572328.712',name='SIP/3025-e0ba']] 1484678 Property change (linkedChannel): AsteriskChannel[id='1160572328.712',name='SIP/3025-e0ba',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160572328.711 ',name='Local/3025@agente_out-00fb,2'],linkedChannel=AsteriskChannel[id=' 1160572328.711',name='Local/3025@agente_out-00fb,2']] 8984226 Property change (state): AsteriskChannel[id='1160572331.713',name='IAX2/pfplanetariumbh-6',callerId='<021252865>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:30 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160572328.710 ',name='Local/3025@agente_out-00fb,1'],linkedChannel=null] 11935697 Property change (linkedChannel): AsteriskChannel[id='1160572328.710',name=' Local/3025@agente_out-00fb,1',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=AsteriskChannel[id='1160572331.713 ',name='IAX2/pfplanetariumbh-6'],dialingChannel=null,linkedChannel=AsteriskChannel[id=' 1160572331.713',name='IAX2/pfplanetariumbh-6']] 31406333 Property change (linkedChannel): AsteriskChannel[id='1160572331.713',name='IAX2/pfplanetariumbh-6',callerId='<021252865>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:30 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160572328.710 ',name='Local/3025@agente_out-00fb,1'],linkedChannel=AsteriskChannel[id=' 1160572328.710',name='Local/3025@agente_out-00fb,1']] 11935697 Property change (linkedChannel): AsteriskChannel[id='1160572328.711',name=' Local/3025@agente_out-00fb,2',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=AsteriskChannel[id='1160572328.712',name='SIP/3025-e0ba'],dialingChannel=null,linkedChannel=null] 1484678 Property change (linkedChannel): AsteriskChannel[id='1160572328.712',name='SIP/3025-e0ba',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160572328.711 ',name='Local/3025@agente_out-00fb,2'],linkedChannel=null] 8984226 Property change (linkedChannel): AsteriskChannel[id='1160572328.711',name=' Local/3025@agente_out-00fb,2',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=AsteriskChannel[id='1160572328.712 ',name='SIP/3025-e0ba'],dialingChannel=null,linkedChannel=AsteriskChannel[id=' 1160572328.712',name='SIP/3025-e0ba']] 1484678 Property change (linkedChannel): AsteriskChannel[id='1160572328.712',name='SIP/3025-e0ba',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160572328.711 ',name='Local/3025@agente_out-00fb,2'],linkedChannel=AsteriskChannel[id=' 1160572328.711',name='Local/3025@agente_out-00fb,2']] 8984226 Property change (name): AsteriskChannel[id='1160572331.713',name='IAX2/pfplanetariumbh-6<MASQ>',callerId='<021252865>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:30 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160572328.710 ',name='Local/3025@agente_out-00fb,1'],linkedChannel=AsteriskChannel[id=' 1160572328.710',name='Local/3025@agente_out-00fb,1']] 11935697 Property change (name): AsteriskChannel[id='1160572328.711',name='IAX2/pfplanetariumbh-6',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=AsteriskChannel[id='1160572328.712 ',name='SIP/3025-e0ba'],dialingChannel=null,linkedChannel=AsteriskChannel[id=' 1160572328.712',name='SIP/3025-e0ba']] 1484678 Property change (name): AsteriskChannel[id='1160572331.713',name=' Local/3025@agente_out-00fb,2<ZOMBIE>',callerId='<021252865>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:30 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160572328.710 ',name='Local/3025@agente_out-00fb,1'],linkedChannel=AsteriskChannel[id=' 1160572328.710',name='Local/3025@agente_out-00fb,1']] 11935697 Property change (linkedChannel): AsteriskChannel[id='1160572328.710',name=' Local/3025@agente_out-00fb,1',callerId='<3025>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=AsteriskChannel[id='1160572331.713 ',name='Local/3025@agente_out-00fb,2<ZOMBIE>'],dialingChannel=null,linkedChannel=null] 31406333 Property change (linkedChannel): AsteriskChannel[id='1160572331.713',name=' Local/3025@agente_out-00fb,2<ZOMBIE>',callerId='<021252865>',state='UP',account='null',dateOfCreation=Wed Oct 11 10:13:30 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160572328.710 ',name='Local/3025@agente_out-00fb,1'],linkedChannel=null] 11935697 Property change (state): AsteriskChannel[id='1160572331.713',name=' Local/3025@agente_out-00fb,2<ZOMBIE>',callerId='<021252865>',state='HUNGUP',account='null',dateOfCreation=Wed Oct 11 10:13:30 BRT 2006,dialedChannel=null,dialingChannel=AsteriskChannel[id='1160572328.710 ',name='Local/3025@agente_out-00fb,1'],linkedChannel=null] 11935697 Property change (state): AsteriskChannel[id='1160572328.710',name=' Local/3025@agente_out-00fb,1',callerId='<3025>',state='HUNGUP',account='null',dateOfCreation=Wed Oct 11 10:13:26 BRT 2006,dialedChannel=AsteriskChannel[id='1160572331.713 ',name='Local/3025@agente_out-00fb,2<ZOMBIE>'],dialingChannel=null,linkedChannel=null] 31406333 Why when i'm following the property change events I never get such a clear information as when I'm using getChannels()? Aren't the both method supposed to give the same information? thank you, bruno. |
From: Henry S. <hen...@gm...> - 2006-10-10 13:32:15
|
Hi all, i am trying to get the status of a peer using sipShowPeerAction. But unfortunately i am not able to get a PeerEntryEvent. Here is what i did: public void run() throws IOException, AuthenticationFailedException, TimeoutException { managerConnection.login(); managerConnection.addEventListener(this); SipShowPeerAction sipShowPeerAction = new SipShowPeerAction("999"); managerConnection.sendAction(sipShowPeerAction); } public void onManagerEvent(ManagerEvent event) { ......... ......... ......... if (event instanceof PeerEntryEvent) { System.out.println(((PeerEntryEvent)event).getStatus()); } ......... .......... ......... } Is there something i am missing thx!!! |
From: Robert A. <aug...@ya...> - 2006-10-09 14:43:42
|
All, Is it possible to use Asterisk-java with something like Cepstral for TTS? My requirements are pretty basic. I need to have IVR which accepts the entry then based on that entry gets some text data from remote DB and then based on another entry from IVR sends appropriate part of the data to the caller. That is in a nutshell, it seems like pretty typical application? Any examples would be greatly appreciated. Thanks, robert |
From: Karien Du P. <kar...@gm...> - 2006-10-09 06:22:13
|
Hi. I'm using A-J 0.3 milestone 1 and asterisk 1.2.12.1 When I execute the PlayDTMFAction it says in the manager response that the DTMF tone has been succesfully queued, if one look at the asterisk CLI it gives the following warning: Oct 9 06:07:25 WARNING[3310]: channel.c:1610 ast_waitfor_nandfds: Thread -1214059600 Blocking 'SIP/Jan-0997b6c0', already blocked by thread -1215132752 in procedure ast_waitfor_nandfds This happens everytime I want to generate a DTMF action using the manager command. I know this seems like a post that belong on asterisk's mailing list. I have asked around on asterisk's mailing list, but nobody could help me. Have any of you encountered this or a similar problem, during implementation/testing/using of the PlayDTMF manager action? Am I doing something wrong? The manager is just a TCP connection right? A friend of mine wrote a PHP file that connects via the manager API, when he executes the PlayDTMF action we don't get the warning. Any help will be appreciated. Thanks. |
From: Jonathan A. <jau...@st...> - 2006-10-08 17:39:13
|
Stefan, Thank you for clarifying that issue. I did misunderstand the registerUserEventClass. I thought this related only to client generated events. Jonathan > >> Second, I wanted to verify how to register the class with >> ManagerConnection. I edited EventBuilderImpl.java to import and >> register the class. Is there anything else I need to do? > > This means you modified Asterisk-Java. It will work perfectly well but > you have to recompile Asterisk-Java each time you update it. > Therefore it might be easier to put your event class somewhere outside > of Asterisk-Java (e.g. com.yourdomain.asterisk.event.FaxSentEvent) and > register it with the ManagerConnection instead of modifying > EventBuilderImpl: > managerConnection.registerUserEventClass(FaxSentEvent.class) > > (registerUserEventClass might be a bit misleading because it was at > first intended to be used with UserEvent events but it works for > any event) > |
From: Stefan R. <ste...@re...> - 2006-10-08 16:25:35
|
Jonathan Augenstine wrote: > private static final long serialVersionUID =3D =20 > -1409738380177538949L; // this is from FaxReceivedEvent >=20 > I assume this is a unique value. My question is, where do I get a =20 > value for this variable? Its just the Java serial version identifier. You can remove it and your IDE will probably allow you to create a new one, or you use the serialver tool provided by the JDK. > Second, I wanted to verify how to register the class with =20 > ManagerConnection. I edited EventBuilderImpl.java to import and =20 > register the class. Is there anything else I need to do? This means you modified Asterisk-Java. It will work perfectly well but you have to recompile Asterisk-Java each time you update it. Therefore it might be easier to put your event class somewhere outside of Asterisk-Java (e.g. com.yourdomain.asterisk.event.FaxSentEvent) and register it with the ManagerConnection instead of modifying EventBuilderImpl: managerConnection.registerUserEventClass(FaxSentEvent.class) (registerUserEventClass might be a bit misleading because it was at first intended to be used with UserEvent events but it works for any even= t) =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... |