asterisk-java-users Mailing List for Asterisk-Java Library (Page 139)
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: peter e. <pet...@go...> - 2006-12-01 10:43:40
|
Does anyone know how i can perform an "attended transfer" via asterisk-java/asterisk pbx??? Any help would be greatly appreciated. -- Peter Ellis Java Developer |
From: txus <ap...@gm...> - 2006-11-20 21:17:52
|
Hi, I'm testing the tutorial examples , in the first of them the server start to work fine . It Answer the calls but don't hang up the line, but the script end. [root@asterisk1 java]# java -cp asterisk-java-0.3-m1.jar:. org.asteriskjava.fastagi.DefaultAgiServer Nov 20, 2006 10:04:51 PM org.asteriskjava.util.internal.JavaLoggingLog info INFO: Thread pool started. Nov 20, 2006 10:04:51 PM org.asteriskjava.util.internal.JavaLoggingLog info INFO: Listening on *:4573. Nov 20, 2006 10:05:03 PM org.asteriskjava.util.internal.JavaLoggingLog info INFO: Received connection from /192.168.1.120 Nov 20, 2006 10:05:03 PM org.asteriskjava.util.internal.JavaLoggingLog info INFO: Added mapping for 'hello.agi' to class HelloAgiScript Nov 20, 2006 10:05:03 PM org.asteriskjava.util.internal.JavaLoggingLog info INFO: Begin AgiScript HelloAgiScript on daemonPool-1-thread-1 Nov 20, 2006 10:05:05 PM org.asteriskjava.util.internal.JavaLoggingLog info INFO: End AgiScript HelloAgiScript on daemonPool-1-thread-1 I test creating a DIALPLAN in extension_custom.conf and the comunication works fine and hung up the line. exten => atiende,1,Answer exten => atiende,2,Macro(user-callerid) exten => atiende,3,Hangup Anyone can help me? Thanks!! |
From: txus <ap...@gm...> - 2006-11-20 19:57:11
|
Thanks ! It works=20 El Lunes, 20 de Noviembre de 2006 16:46, David Rudder escribi=F3: > FastAGI requires a Java version 1.5 or higher. I'm using 1.5.0_02, but > the newer the better. > > -Dave > > txus wrote: > > Hi all! > > I'm a newbie, I followed the steps of the turorial but when start the > > server a problem where found: > > [root@asterisk1 java]# java -cp asterisk-java-0.3-m1.jar:. > > org.asteriskjava.fastagi.DefaultAgiServer > > Exception in thread "main" java.lang.VerifyError: verification failed at > > PC 5 in org.asteriskjava.fastagi.DefaultAgiServer:<init>(()V): String, > > int, or float constant expected > > at _ZN4java4lang11VMThrowable16fillInStackTraceEPNS0_9ThrowableE > > (/usr/lib/libgcj.so.5.0.0) > > at _ZN4java4lang9Throwable16fillInStackTraceEv > > (/usr/lib/libgcj.so.5.0.0) (....Continue....) > > > > It's run over Asterisk@Home 2.8, and java version "1.4.2" > > > > Thanks! > > P.D: Sorry for my english :P > > > > -----------------------------------------------------------------------= =2D- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your opinions on IT & business topics through brief surveys - and earn > > cash > > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys - and earn ca= sh > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: David R. <da...@re...> - 2006-11-20 15:47:47
|
FastAGI requires a Java version 1.5 or higher. I'm using 1.5.0_02, but the newer the better. -Dave txus wrote: > Hi all! > I'm a newbie, I followed the steps of the turorial but when start the server a > problem where found: > [root@asterisk1 java]# java -cp asterisk-java-0.3-m1.jar:. > org.asteriskjava.fastagi.DefaultAgiServer > Exception in thread "main" java.lang.VerifyError: verification failed at PC 5 > in org.asteriskjava.fastagi.DefaultAgiServer:<init>(()V): String, int, or > float constant expected > at _ZN4java4lang11VMThrowable16fillInStackTraceEPNS0_9ThrowableE > (/usr/lib/libgcj.so.5.0.0) > at _ZN4java4lang9Throwable16fillInStackTraceEv (/usr/lib/libgcj.so.5.0.0) > (....Continue....) > > It's run over Asterisk@Home 2.8, and java version "1.4.2" > > Thanks! > P.D: Sorry for my english :P > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Jean-Yves B. <jy...@al...> - 2006-11-20 09:36:41
|
Hi, =20 I'm starting to code with the asterisk-java lib. I would like to manage events received but with an action for each event. =20 The exemple in the tutorial (http://asterisk-java.org/0.2/tutorial.html) catches all events without exception. =20 Is it possible to catch only on type of action ? =20 Can someone give me an example ? =20 Thanks Jean-Yves. |
From: txus <ap...@gm...> - 2006-11-19 17:51:56
|
Hi all! I'm a newbie, I followed the steps of the turorial but when start the server a problem where found: [root@asterisk1 java]# java -cp asterisk-java-0.3-m1.jar:. org.asteriskjava.fastagi.DefaultAgiServer Exception in thread "main" java.lang.VerifyError: verification failed at PC 5 in org.asteriskjava.fastagi.DefaultAgiServer:<init>(()V): String, int, or float constant expected at _ZN4java4lang11VMThrowable16fillInStackTraceEPNS0_9ThrowableE (/usr/lib/libgcj.so.5.0.0) at _ZN4java4lang9Throwable16fillInStackTraceEv (/usr/lib/libgcj.so.5.0.0) (....Continue....) It's run over Asterisk@Home 2.8, and java version "1.4.2" Thanks! P.D: Sorry for my english :P |
From: Vincent R. <vin...@sh...> - 2006-11-10 16:33:25
|
Dear, I have a problem to fetch the result of a ManagerResponse with the ManagerResponse commandResponse; SipPeersAction sipsho = new SipPeersAction(); commandResponse = managerConnection.sendAction(sipsho); when I want to get the result of the the command I do a commandResponse.getMessage() I only received the firstline of the Asterisk command ("Peer status list will follow"). Do you have a solution ? Vincent |
From: King H. <kin...@ne...> - 2006-11-07 05:26:05
|
Index: = D:/Eclipse/asterisk-java/src/main/java/org/asteriskjava/live/internal/Cha= nnelManager.java=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= --- = D:/Eclipse/asterisk-java/src/main/java/org/asteriskjava/live/internal/Cha= nnelManager.java (revision 578)=0A= +++ = D:/Eclipse/asterisk-java/src/main/java/org/asteriskjava/live/internal/Cha= nnelManager.java (working copy)=0A= @@ -432,9 +446,31 @@=0A= }=0A= else=0A= {=0A= - synchronized (channel)=0A= - {=0A= - channel.setCallerId(new = CallerId(event.getCallerIdName(), event.getCallerId()));=0A= + synchronized (channel) {=0A= + =0A= + if (channel.getTraceId() =3D=3D null) {=0A= + =0A= + String traceId =3D getTraceId(channel);=0A= + channel.setTraceId(traceId);=0A= +=0A= + if (traceId !=3D null=0A= + && = (!channel.getName().toLowerCase().startsWith("local/") =0A= + || = channel.getName().endsWith(",1"))) {=0A= + final OriginateCallbackData callbackData;=0A= + callbackData =3D = server.getOriginateCallbackDataByTraceId(traceId);=0A= + if (callbackData !=3D null=0A= + && callbackData.getChannel() =3D=3D = null) {=0A= + callbackData.setChannel(channel);=0A= + try {=0A= + = callbackData.getCallback().onDialing(channel);=0A= + } catch (Throwable t) {=0A= + logger.warn("Exception dispatching = originate progress", t);=0A= + }=0A= + }=0A= + }=0A= + }=0A= + channel.setCallerId(new = CallerId(event.getCallerIdName(), event=0A= + .getCallerId()));=0A= }=0A= }=0A= }=0A= |
From: Bruno N. <bn...@gm...> - 2006-11-03 18:45:28
|
Hi Stefan, Bruno Negrao wrote: > > I'm seing this message being logged when I start my application. > > umm seems like that property has been added to Asterisk recently. > Which version do you run exactly? asterisk-1.2.13 > Can > > someone explain me if they are as "severe" as they say? because I'm not > > seing any problem on the overall functioning. > > They are only severe so that people reporth them here and we can add the > property :) > Besides that you can access that property it wont hurt. Is that property useful for something? thank you, bruno |
From: David R. <dr...@in...> - 2006-11-03 10:00:18
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stefan Reuter wrote: > It usually works with the Asterisk configuration as is - of course you > have to enable the Manager API but you probably already know that :) Yes, and it already is enabled, at least it reports lots of events when somebody is calling in. :) Thank you for the information. If I don=E2=80=99t get up and running with= that I=E2=80=99ll be back for more asking. :) > Stefan David -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFSxMfah2J2g3uuwIRApYFAJ42hx28QeywHzfRF8ccN5EpVT+gpwCgudgp uJEeBdeAxrXZS4n6FISAvmI=3D =3DBgC9 -----END PGP SIGNATURE----- |
From: Stefan R. <ste...@re...> - 2006-11-02 21:44:06
|
Bruno Negrao wrote: > I'm seing this message being logged when I start my application. umm seems like that property has been added to Asterisk recently. Which version do you run exactly? > Can > someone explain me if they are as "severe" as they say? because I'm not= > seing any problem on the overall functioning. They are only severe so that people reporth them here and we can add the property :) Besides that you can access that property it wont hurt. =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-11-02 21:38:20
|
Hi guys, I'm seing this message being logged when I start my application. Can someone explain me if they are as "severe" as they say? because I'm not seing any problem on the overall functioning. thank you, bruno SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.StatusCompleteEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueParamsEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueParamsEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueMemberEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueMemberEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueMemberEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueParamsEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueMemberEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueParamsEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueMemberEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueMemberEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueMemberEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueMemberEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueMemberEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueParamsEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueMemberEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueMemberEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueMemberEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueMemberEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueParamsEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueMemberEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueMemberEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueMemberEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueMemberEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueMemberEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueMemberEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error SEVERE: Unable to set property 'server' on class org.asteriskjava.manager.event.QueueParamsEvent: no setter 02/11/2006 19:32:15 org.asteriskjava.util.internal.JavaLoggingLog error |
From: Stefan R. <ste...@re...> - 2006-11-02 15:40:20
|
David Roden wrote: > Is there any additional asterisk configuration involved in that or can = I > simply use some parameters from NewChannel/ExtenEvent to perform the > redirect? It usually works with the Asterisk configuration as is - of course you have to enable the Manager API but you probably already know that :) =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: David R. <dr...@in...> - 2006-11-02 14:53:25
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stefan Reuter wrote: >> c) Connect two incoming calls or one incoming and one outgoing call. > Yes you can use redirect and optionally redirect to a meetme room > through the Manager API. Is there any additional asterisk configuration involved in that or can I simply use some parameters from NewChannel/ExtenEvent to perform the redirect? But so far this already has been pretty helpful. Thank you very much. :) David -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFSgZTah2J2g3uuwIRApy/AJ4kjk2UVO7dzmFo4JU24AXKO4H9dwCgl4vs PzXarCymY+2D+VvL2EsznpE= =VnOM -----END PGP SIGNATURE----- |
From: Stefan R. <ste...@re...> - 2006-11-02 14:06:02
|
Hi David, > a) Getting notified on an incoming call (works already) and > answer/hangup the call. Inocming call notification can be done through the Manager API. Answering a call depends on what you want to do with the call, if you want to play an automated message or present the caller with an IVR you can use FastAGI. If you want the call to be answered by a human the callee usually must answer the phone. Hangup is possible through Manager API and FastAGI. > b) Initiate outgoing calls and hang them up. Yes through the Manager API. > c) Connect two incoming calls or one incoming and one outgoing call. Yes you can use redirect and optionally redirect to a meetme room through the Manager API. > d) Terminate connected calls. Same as hangup? =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: David R. <dr...@in...> - 2006-11-02 13:51:41
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, everyone. Recently I have been told to create an application that manages calls using Asterisk. I have found the asterisk-java API but am still wondering whether it can do what I need it to do or whether I have to look into something else. My plan is changing the asterisk configuration as little as possible; this project will potentially be installed on several dozens of machines all over the continent. Are the following things possible, using either the Manager API or FastAGI or both? a) Getting notified on an incoming call (works already) and answer/hangup the call. b) Initiate outgoing calls and hang them up. c) Connect two incoming calls or one incoming and one outgoing call. d) Terminate connected calls. If it=E2=80=99s not possible to achieve these goals I would have to look = into some other way; our local asterisk guru mentioned =E2=80=9Crealtime exten= sions=E2=80=9D that use a database to look up dialplans. I=E2=80=99d rather not do that = but, well, life ain=E2=80=99t easy. :) Thanks for your time, David -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFSffQah2J2g3uuwIRAhghAJ4jRBQIbuZN8FRKAyldihP8DHmcgwCfTaSP U7Cv105n1cFGiYl02Pig4MA=3D =3D8hzR -----END PGP SIGNATURE----- |
From: Karien Du P. <kar...@gm...> - 2006-11-01 05:35:24
|
Hi. The sendEventGenerationAction method returns ResponseEvents. From the returned ResponseEvents one can retrieve all the events from it by using getEvents(). The getEvents returns a collection of ResponseEvent. Look through the collection with the instanceof function to find OriginateSucessEvent and OriginateFailureEvent. There is usually only one event in the event collection, which is the failure or success event. Code example: ResponseEvents responseEvents =3D this.managerConnection.sendEventGeneratingAction(orginateAction, orginateAction.getTimeout() + 2000); //Check the response event for failure or success for(ResponseEvent event : responseEvents.getEvents()) { if(event instanceof OriginateSuccessEvent //do success stuff eles if (event instanceof OriginateFailureEvent) //do failure stuff. } Hope it helps. Cheers. On 10/31/06, H=E9ctor Maldonado <ham...@gm...> wrote: > > Hello, > > I'm having a problem with sendEventGenerationAction. I've read the > documentation but, because of the lack of examples, I can't figure how to > make it work. > > The fact is that I need to capture the events that an OriginateAction > raises: OriginateSucess and OriginateFailure, in special the last one > because I need to track the reason of the failure (Congestion, Busy, Inva= lid > number, etc.) > > Could you please send me an example of how to use it?. How can I can sen= d > an OriginateAction in a way that I can process the events? > > Thanks in advance, > > Hector. > > ------------------------------------------------------------------------- > 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 Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > |
From: <ham...@gm...> - 2006-10-31 15:45:54
|
Hello, I'm having a problem with sendEventGenerationAction. I've read the documentation but, because of the lack of examples, I can't figure how to make it work. The fact is that I need to capture the events that an OriginateAction raises: OriginateSucess and OriginateFailure, in special the last one because I need to track the reason of the failure (Congestion, Busy, Invalid number, etc.) Could you please send me an example of how to use it?. How can I can send an OriginateAction in a way that I can process the events? Thanks in advance, Hector. |
From: King H. <kin...@ne...> - 2006-10-29 09:40:09
|
=20 It seems that the variable is actually set correctly by Asterisk. It is = just that the GetVar of AMI could not get it. Below is the program output: =20 2006=A6~10=A4=EB29=A4=E9 =A4U=A4=C805:17:25 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-09fe4c48(1162039738.5117) 2006=A6~10=A4=EB29=A4=E9 =A4U=A4=C805:17:25 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: TraceId for channel SIP/king238-09fe4c48 is null =20 >From Asterisk CLI, I did a =A1=A7show channel SIP/king238-09fe4c48 and = obtained the following output: =20 pnc*CLI> show channel SIP/king238-09fe4c48 -- General --=20 Name: SIP/king238-09fe4c48 Type: SIP UniqueID: 1162039738.5117 Caller ID: (N/A) Caller ID Name: 235 DNID Digits: (N/A) State: Ringing (5) Rings: 0 NativeFormat: 4 WriteFormat: 4 ReadFormat: 4 1st File Descriptor: 27 Frames in: 1 Frames out: 0 Time to Hangup: 0 Elapsed Time: N/A Direct Bridge: <none> Indirect Bridge: <none> -- PBX -- Context: testing Extension:=20 Priority: 1 Call Group: 0 Pickup Group: 0 Application: (N/A) Data: (None) Blocking in: ast_waitfor_nandfds Variables: AJ_TRACE_ID=3DAJ_ORIGINATE_235 SIPCALLID=3D72957bc16da0e25507dccdf60b05c289@192.168.1.104 =20 Any one knows about problem with AMI GetVar ?=20 =20 Thanks. =20 King _____ =20 =B1H=A5=F3=AA=CC: ast...@li... [mailto:ast...@li...] =A5N=B2z King = Ho =B1H=A5=F3=A4=E9=B4=C1: Sunday, 29 October, 2006 14:41 =A6=AC=A5=F3=AA=CC: ast...@li... =A5D=A6=AE: [Asterisk-java-users]=A6^=C2=D0: = [Asterisk-java-users]=A6^=C2=D0: [Asterisk-java-users] onDialing() in OriginateCallback does notalways = get called =20 Sorry, I after more testing, JVM 1.5.0_09 did not solve the problem. =20 I did more debugging by enabling the following line in the getTraceId() method in ChannelManager.java: =20 logger.info("TraceId for channel " + channel.getName() + " is " + = traceId); =20 Below is the console output that show the problem: =20 2006=A6~10=A4=EB29=A4=E9 =A4U=A4=C801:58:10 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-084c7190(1162032410.12175) 2006=A6~10=A4=EB29=A4=E9 =A4U=A4=C801:58:10 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: TraceId for channel SIP/king238-084c7190 is null =20 It looks like there is a problem in getting the value of the trace ID = back from=20 Asterisk. I also did a ngrep while the program runs and below is the = part of the=20 Manager communication related to the channel: =20 T 192.168.1.102:1524 -> 192.168.1.104:5038 [AP] action: Originate.=20 actionid: 27165481_14#AJ_ORIGINATE_4. timeout: 30000. exten: 1000. async: true. variable: __AJ_TRACE_ID=3DAJ_ORIGINATE_4. context: testing. priority: 1. channel: SIP/king238. . # T 192.168.1.104:5038 -> 192.168.1.102:1524 [AP] Response: Success. =20 # T 192.168.1.104:5038 -> 192.168.1.102:1524 [AP] ActionID: 27165481_14#AJ_ORIGINATE_4. =20 ## T 192.168.1.104:5038 -> 192.168.1.102:1524 [AP] Message: Originate successfully queued. . =20 # Event: Newchannel. Privilege: call,all. Channel: SIP/king238-084c7190. State: Down. CallerID: <unknown>. CallerIDName: <unknown>. Uniqueid: 1162032410.12175. . =20 ## T 192.168.1.102:1524 -> 192.168.1.104:5038 [AP] action: GetVar. actionid: 27165481_15#. variable: AJ_TRACE_ID. channel: SIP/king238-084c7190. . =20 # T 192.168.1.104:5038 -> 192.168.1.102:1524 [AP] Response: Success. Variable: AJ_TRACE_ID. Value: . =20 So the problem is that Asterisk is not reporting the variable = AJ_TRACE_ID back correctly. =20 I was using Asterisk 1.2.12.1 and upgraded to 1.2.13 did not solve the problem. So this is Actually a problem with Asterisk rather than Asterisk-Java. =20 Best Regards, =20 King _____ =20 =B1H=A5=F3=AA=CC: ast...@li... [mailto:ast...@li...] =A5N=B2z King = Ho =B1H=A5=F3=A4=E9=B4=C1: Sunday, 29 October, 2006 11:35 =A6=AC=A5=F3=AA=CC: ast...@li... =A5D=A6=AE: [Asterisk-java-users]=A6^=C2=D0: [Asterisk-java-users] = onDialing() in OriginateCallback does notalways get called =20 I have just upgraded my Java VM from 1.5.0_08 to 1.5.0_09 and the = problem is not there anymore. Looked at the release notes for 1.5.0_09 and cannot = find any fix that maybe related to this.=20 =20 Thanks. =20 King =20 _____ =20 =B1H=A5=F3=AA=CC: ast...@li... [mailto:ast...@li...] =A5N=B2z King = Ho =B1H=A5=F3=A4=E9=B4=C1: Saturday, 28 October, 2006 11:04 =A6=AC=A5=F3=AA=CC: ast...@li... =A5D=A6=AE: [Asterisk-java-users] onDialing() in OriginateCallback does = notalways get called =20 Hi, =20 This is going to be a little long as there is a lot of debugging information.=20 =20 I am trying to use asteriskjava.live with a new project and found that = the onDialing() method in my OriginateCallback class does not always get = called. Below is a small program that I have written to demonstrate this = problem: =20 import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; =20 import org.asteriskjava.live.AsteriskChannel; import org.asteriskjava.live.ChannelState; import org.asteriskjava.live.DefaultAsteriskServer; import org.asteriskjava.live.LiveException; import org.asteriskjava.live.ManagerCommunicationException; import org.asteriskjava.live.NoSuchChannelException; import org.asteriskjava.live.OriginateCallback; =20 =20 public class MakeCall implements OriginateCallback { =20 private DefaultAsteriskServer defaultAsteriskServer =3D null; =20 public MakeCall() { =20 try { defaultAsteriskServer =3D new DefaultAsteriskServer( "192.168.2.102", "testing", "testing123"); defaultAsteriskServer.setSkipQueues(true); defaultAsteriskServer.initialize(); } catch (Exception e) { e.printStackTrace(); } } =20 public void dial() { =20 while (true) { try { defaultAsteriskServer.originateToExtensionAsync( "SIP/king238", "testing", "1000", 1, 30000, = null, null, this); Thread.sleep(1500); } catch (ManagerCommunicationException e) { e.printStackTrace(); } catch (InterruptedException e) { e.printStackTrace(); } =20 } } =20 public void onBusy(AsteriskChannel channel) { System.out.println("onBusy"); } =20 public void onDialing(AsteriskChannel channel) { System.out.println("onDialing - " + channel.getId()); = channel.addPropertyChangeListener(AsteriskChannel.PROPERTY_STATE, new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { System.out.println("New State: " + = evt.getNewValue()); if (evt.getNewValue() =3D=3D ChannelState.RINGING) { try { AsteriskChannel ch =3D (AsteriskChannel) evt.getSource(); System.out.println("Hangup channel " + ch.getName() + "-" + ch.getId()); ch.hangup(); } catch (ManagerCommunicationException e) { e.printStackTrace(); } catch (NoSuchChannelException e) { e.printStackTrace(); } } } }); } =20 public void onFailure(LiveException cause) { System.out.println("onFailure"); } =20 public void onNoAnswer(AsteriskChannel channel) { System.out.println("onNoAnswer"); } =20 public void onSuccess(AsteriskChannel channel) { System.out.println("onSuccess"); } =20 public static void main(String[] args) { new MakeCall().dial(); } } =20 =20 Below is the output I captured from the console: =20 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Connecting to 192.168.2.102:5038 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Connected via Asterisk Call Manager/1.0 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Successfully logged in 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Determined Asterisk version: Asterisk 1.2 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Initializing done onDialing - 1161985584.7314 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-08392ee0(1161985584.7314) New State: RINGING Hangup channel SIP/king238-08392ee0-1161985584.7314 New State: HUNGUP onFailure 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Removing channel SIP/king238-08392ee0 due to hangup (NORMAL) onDialing - 1161985585.7315 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:14 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-08392ee0(1161985585.7315) New State: RINGING Hangup channel SIP/king238-08392ee0-1161985585.7315 New State: HUNGUP onFailure 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:14 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Removing channel SIP/king238-08392ee0 due to hangup (NORMAL) onDialing - 1161985586.7316 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:15 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-08392ee0(1161985586.7316) New State: RINGING Hangup channel SIP/king238-08392ee0-1161985586.7316 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:15 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Removing channel SIP/king238-08392ee0 due to hangup (NORMAL) New State: HUNGUP onFailure 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:17 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-08392ee0(1161985587.7317) onDialing - 1161985588.7318 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:18 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-08398420(1161985588.7318) New State: RINGING Hangup channel SIP/king238-08398420-1161985588.7318 New State: HUNGUP onFailure =20 As seen above, the channel SIP/king238-08392ee0(1161985587.7317) was = created to dial but onDialing() was not called!! Therefore, it wasn=A1=A6t = hangup by the program. I have also capture the communication to and from the asterisk manager = port using ngrep. Below is the part of the output related to the channel SIP/king238-08392ee0(1161985587.7317): =20 T 192.168.2.100:2396 -> 192.168.2.102:5038 [AP] action: Originate. actionid: 27165481_13#AJ_ORIGINATE_3. timeout: 30000. exten: 1000. async: true. variable: __AJ_TRACE_ID=3DAJ_ORIGINATE_3. context: testing. priority: 1. channel: SIP/king238. =20 # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Response: Success. . # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] ActionID: 27165481_13#AJ_ORIGINATE_3. =20 ## T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Message: Originate successfully queued. . # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Event: Newchannel. Privilege: call,all. Channel: SIP/king238-08392ee0. State: Down. CallerID: <unknown>. CallerIDName: <unknown>. Uniqueid: 1161985587.7317. . ## T 192.168.2.100:2396 -> 192.168.2.102:5038 [AP] action: GetVar. actionid: 27165481_14#. variable: AJ_TRACE_ID. channel: SIP/king238-08392ee0. . # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Response: Success. Variable: AJ_TRACE_ID. Value: . =20 # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] ActionID: 27165481_14#. =20 ## T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] . # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Event: Newcallerid. Privilege: call,all. Channel: SIP/king238-08392ee0. CallerID: <Unknown>. CallerIDName: <Unknown>. Uniqueid: 1161985587.7317. CID-CallingPres: 0 (Presentation Allowed, Not Screened). . ## T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Event: Newchannel. Privilege: call,all. Channel: SIP/king238-08392ee0. State: Ringing. CallerID: <unknown>. CallerIDName: <unknown>. Uniqueid: 1161985587.7317. . =20 ## T 192.168.2.100:2396 -> 192.168.2.102:5038 [AP] action: Originate. actionid: 27165481_15#AJ_ORIGINATE_4. timeout: 30000. exten: 1000. async: true. variable: __AJ_TRACE_ID=3DAJ_ORIGINATE_4. context: testing. priority: 1. channel: SIP/king238. . =20 # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Response: Success. =20 # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] ActionID: 27165481_15#AJ_ORIGINATE_4. =20 ## T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Message: Originate successfully queued. . =20 # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Event: Newchannel. Privilege: call,all. Channel: SIP/king238-08398420. State: Down. CallerID: <unknown>. CallerIDName: <unknown>. Uniqueid: 1161985588.7318. . As seen above, the events for the channel SIP/king238-08392ee0 (1161985587.7317) looks OK except there is no hangup action called after = the RINGING event for the channel: SIP/king238-08392ee0 (1161985587.7317). =20 Since I have set a sleep period of 1.5 sec between each originate = action, I don=A1=A6t think I am pushing the system hard. If there is any more = information that is needed to debug this, please let me know and I=A1=A6ll do my = best to provide it. =20 Thanks. =20 Best Regards, =20 King |
Sorry, I after more testing, JVM 1.5.0_09 did not solve the problem. =20 I did more debugging by enabling the following line in the getTraceId() method in ChannelManager.java: =20 logger.info("TraceId for channel " + channel.getName() + " is " + = traceId); =20 Below is the console output that show the problem: =20 2006=A6~10=A4=EB29=A4=E9 =A4U=A4=C801:58:10 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-084c7190(1162032410.12175) 2006=A6~10=A4=EB29=A4=E9 =A4U=A4=C801:58:10 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: TraceId for channel SIP/king238-084c7190 is null =20 It looks like there is a problem in getting the value of the trace ID = back from=20 Asterisk. I also did a ngrep while the program runs and below is the = part of the=20 Manager communication related to the channel: =20 T 192.168.1.102:1524 -> 192.168.1.104:5038 [AP] action: Originate.=20 actionid: 27165481_14#AJ_ORIGINATE_4. timeout: 30000. exten: 1000. async: true. variable: __AJ_TRACE_ID=3DAJ_ORIGINATE_4. context: testing. priority: 1. channel: SIP/king238. . # T 192.168.1.104:5038 -> 192.168.1.102:1524 [AP] Response: Success. =20 # T 192.168.1.104:5038 -> 192.168.1.102:1524 [AP] ActionID: 27165481_14#AJ_ORIGINATE_4. =20 ## T 192.168.1.104:5038 -> 192.168.1.102:1524 [AP] Message: Originate successfully queued. . =20 # Event: Newchannel. Privilege: call,all. Channel: SIP/king238-084c7190. State: Down. CallerID: <unknown>. CallerIDName: <unknown>. Uniqueid: 1162032410.12175. . =20 ## T 192.168.1.102:1524 -> 192.168.1.104:5038 [AP] action: GetVar. actionid: 27165481_15#. variable: AJ_TRACE_ID. channel: SIP/king238-084c7190. . =20 # T 192.168.1.104:5038 -> 192.168.1.102:1524 [AP] Response: Success. Variable: AJ_TRACE_ID. Value: . =20 So the problem is that Asterisk is not reporting the variable = AJ_TRACE_ID back correctly. =20 I was using Asterisk 1.2.12.1 and upgraded to 1.2.13 did not solve the problem. So this is Actually a problem with Asterisk rather than Asterisk-Java. =20 Best Regards, =20 King _____ =20 =B1H=A5=F3=AA=CC: ast...@li... [mailto:ast...@li...] =A5N=B2z King = Ho =B1H=A5=F3=A4=E9=B4=C1: Sunday, 29 October, 2006 11:35 =A6=AC=A5=F3=AA=CC: ast...@li... =A5D=A6=AE: [Asterisk-java-users]=A6^=C2=D0: [Asterisk-java-users] = onDialing() in OriginateCallback does notalways get called =20 I have just upgraded my Java VM from 1.5.0_08 to 1.5.0_09 and the = problem is not there anymore. Looked at the release notes for 1.5.0_09 and cannot = find any fix that maybe related to this.=20 =20 Thanks. =20 King =20 _____ =20 =B1H=A5=F3=AA=CC: ast...@li... [mailto:ast...@li...] =A5N=B2z King = Ho =B1H=A5=F3=A4=E9=B4=C1: Saturday, 28 October, 2006 11:04 =A6=AC=A5=F3=AA=CC: ast...@li... =A5D=A6=AE: [Asterisk-java-users] onDialing() in OriginateCallback does = notalways get called =20 Hi, =20 This is going to be a little long as there is a lot of debugging information.=20 =20 I am trying to use asteriskjava.live with a new project and found that = the onDialing() method in my OriginateCallback class does not always get = called. Below is a small program that I have written to demonstrate this = problem: =20 import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; =20 import org.asteriskjava.live.AsteriskChannel; import org.asteriskjava.live.ChannelState; import org.asteriskjava.live.DefaultAsteriskServer; import org.asteriskjava.live.LiveException; import org.asteriskjava.live.ManagerCommunicationException; import org.asteriskjava.live.NoSuchChannelException; import org.asteriskjava.live.OriginateCallback; =20 =20 public class MakeCall implements OriginateCallback { =20 private DefaultAsteriskServer defaultAsteriskServer =3D null; =20 public MakeCall() { =20 try { defaultAsteriskServer =3D new DefaultAsteriskServer( "192.168.2.102", "testing", "testing123"); defaultAsteriskServer.setSkipQueues(true); defaultAsteriskServer.initialize(); } catch (Exception e) { e.printStackTrace(); } } =20 public void dial() { =20 while (true) { try { defaultAsteriskServer.originateToExtensionAsync( "SIP/king238", "testing", "1000", 1, 30000, = null, null, this); Thread.sleep(1500); } catch (ManagerCommunicationException e) { e.printStackTrace(); } catch (InterruptedException e) { e.printStackTrace(); } =20 } } =20 public void onBusy(AsteriskChannel channel) { System.out.println("onBusy"); } =20 public void onDialing(AsteriskChannel channel) { System.out.println("onDialing - " + channel.getId()); = channel.addPropertyChangeListener(AsteriskChannel.PROPERTY_STATE, new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { System.out.println("New State: " + = evt.getNewValue()); if (evt.getNewValue() =3D=3D ChannelState.RINGING) { try { AsteriskChannel ch =3D (AsteriskChannel) evt.getSource(); System.out.println("Hangup channel " + ch.getName() + "-" + ch.getId()); ch.hangup(); } catch (ManagerCommunicationException e) { e.printStackTrace(); } catch (NoSuchChannelException e) { e.printStackTrace(); } } } }); } =20 public void onFailure(LiveException cause) { System.out.println("onFailure"); } =20 public void onNoAnswer(AsteriskChannel channel) { System.out.println("onNoAnswer"); } =20 public void onSuccess(AsteriskChannel channel) { System.out.println("onSuccess"); } =20 public static void main(String[] args) { new MakeCall().dial(); } } =20 =20 Below is the output I captured from the console: =20 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Connecting to 192.168.2.102:5038 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Connected via Asterisk Call Manager/1.0 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Successfully logged in 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Determined Asterisk version: Asterisk 1.2 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Initializing done onDialing - 1161985584.7314 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-08392ee0(1161985584.7314) New State: RINGING Hangup channel SIP/king238-08392ee0-1161985584.7314 New State: HUNGUP onFailure 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Removing channel SIP/king238-08392ee0 due to hangup (NORMAL) onDialing - 1161985585.7315 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:14 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-08392ee0(1161985585.7315) New State: RINGING Hangup channel SIP/king238-08392ee0-1161985585.7315 New State: HUNGUP onFailure 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:14 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Removing channel SIP/king238-08392ee0 due to hangup (NORMAL) onDialing - 1161985586.7316 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:15 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-08392ee0(1161985586.7316) New State: RINGING Hangup channel SIP/king238-08392ee0-1161985586.7316 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:15 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Removing channel SIP/king238-08392ee0 due to hangup (NORMAL) New State: HUNGUP onFailure 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:17 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-08392ee0(1161985587.7317) onDialing - 1161985588.7318 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:18 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-08398420(1161985588.7318) New State: RINGING Hangup channel SIP/king238-08398420-1161985588.7318 New State: HUNGUP onFailure =20 As seen above, the channel SIP/king238-08392ee0(1161985587.7317) was = created to dial but onDialing() was not called!! Therefore, it wasn=A1=A6t = hangup by the program. I have also capture the communication to and from the asterisk manager = port using ngrep. Below is the part of the output related to the channel SIP/king238-08392ee0(1161985587.7317): =20 T 192.168.2.100:2396 -> 192.168.2.102:5038 [AP] action: Originate. actionid: 27165481_13#AJ_ORIGINATE_3. timeout: 30000. exten: 1000. async: true. variable: __AJ_TRACE_ID=3DAJ_ORIGINATE_3. context: testing. priority: 1. channel: SIP/king238. =20 # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Response: Success. . # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] ActionID: 27165481_13#AJ_ORIGINATE_3. =20 ## T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Message: Originate successfully queued. . # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Event: Newchannel. Privilege: call,all. Channel: SIP/king238-08392ee0. State: Down. CallerID: <unknown>. CallerIDName: <unknown>. Uniqueid: 1161985587.7317. . ## T 192.168.2.100:2396 -> 192.168.2.102:5038 [AP] action: GetVar. actionid: 27165481_14#. variable: AJ_TRACE_ID. channel: SIP/king238-08392ee0. . # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Response: Success. Variable: AJ_TRACE_ID. Value: . =20 # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] ActionID: 27165481_14#. =20 ## T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] . # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Event: Newcallerid. Privilege: call,all. Channel: SIP/king238-08392ee0. CallerID: <Unknown>. CallerIDName: <Unknown>. Uniqueid: 1161985587.7317. CID-CallingPres: 0 (Presentation Allowed, Not Screened). . ## T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Event: Newchannel. Privilege: call,all. Channel: SIP/king238-08392ee0. State: Ringing. CallerID: <unknown>. CallerIDName: <unknown>. Uniqueid: 1161985587.7317. . =20 ## T 192.168.2.100:2396 -> 192.168.2.102:5038 [AP] action: Originate. actionid: 27165481_15#AJ_ORIGINATE_4. timeout: 30000. exten: 1000. async: true. variable: __AJ_TRACE_ID=3DAJ_ORIGINATE_4. context: testing. priority: 1. channel: SIP/king238. . =20 # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Response: Success. =20 # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] ActionID: 27165481_15#AJ_ORIGINATE_4. =20 ## T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Message: Originate successfully queued. . =20 # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Event: Newchannel. Privilege: call,all. Channel: SIP/king238-08398420. State: Down. CallerID: <unknown>. CallerIDName: <unknown>. Uniqueid: 1161985588.7318. . As seen above, the events for the channel SIP/king238-08392ee0 (1161985587.7317) looks OK except there is no hangup action called after = the RINGING event for the channel: SIP/king238-08392ee0 (1161985587.7317). =20 Since I have set a sleep period of 1.5 sec between each originate = action, I don=A1=A6t think I am pushing the system hard. If there is any more = information that is needed to debug this, please let me know and I=A1=A6ll do my = best to provide it. =20 Thanks. =20 Best Regards, =20 King |
From: King H. <kin...@ne...> - 2006-10-29 03:35:34
|
I have just upgraded my Java VM from 1.5.0_08 to 1.5.0_09 and the = problem is not there anymore. Looked at the release notes for 1.5.0_09 and cannot = find any fix that maybe related to this.=20 =20 Thanks. =20 King =20 _____ =20 =B1H=A5=F3=AA=CC: ast...@li... [mailto:ast...@li...] =A5N=B2z King = Ho =B1H=A5=F3=A4=E9=B4=C1: Saturday, 28 October, 2006 11:04 =A6=AC=A5=F3=AA=CC: ast...@li... =A5D=A6=AE: [Asterisk-java-users] onDialing() in OriginateCallback does = notalways get called =20 Hi, =20 This is going to be a little long as there is a lot of debugging information.=20 =20 I am trying to use asteriskjava.live with a new project and found that = the onDialing() method in my OriginateCallback class does not always get = called. Below is a small program that I have written to demonstrate this = problem: =20 import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; =20 import org.asteriskjava.live.AsteriskChannel; import org.asteriskjava.live.ChannelState; import org.asteriskjava.live.DefaultAsteriskServer; import org.asteriskjava.live.LiveException; import org.asteriskjava.live.ManagerCommunicationException; import org.asteriskjava.live.NoSuchChannelException; import org.asteriskjava.live.OriginateCallback; =20 =20 public class MakeCall implements OriginateCallback { =20 private DefaultAsteriskServer defaultAsteriskServer =3D null; =20 public MakeCall() { =20 try { defaultAsteriskServer =3D new DefaultAsteriskServer( "192.168.2.102", "testing", "testing123"); defaultAsteriskServer.setSkipQueues(true); defaultAsteriskServer.initialize(); } catch (Exception e) { e.printStackTrace(); } } =20 public void dial() { =20 while (true) { try { defaultAsteriskServer.originateToExtensionAsync( "SIP/king238", "testing", "1000", 1, 30000, = null, null, this); Thread.sleep(1500); } catch (ManagerCommunicationException e) { e.printStackTrace(); } catch (InterruptedException e) { e.printStackTrace(); } =20 } } =20 public void onBusy(AsteriskChannel channel) { System.out.println("onBusy"); } =20 public void onDialing(AsteriskChannel channel) { System.out.println("onDialing - " + channel.getId()); = channel.addPropertyChangeListener(AsteriskChannel.PROPERTY_STATE, new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { System.out.println("New State: " + = evt.getNewValue()); if (evt.getNewValue() =3D=3D ChannelState.RINGING) { try { AsteriskChannel ch =3D (AsteriskChannel) evt.getSource(); System.out.println("Hangup channel " + ch.getName() + "-" + ch.getId()); ch.hangup(); } catch (ManagerCommunicationException e) { e.printStackTrace(); } catch (NoSuchChannelException e) { e.printStackTrace(); } } } }); } =20 public void onFailure(LiveException cause) { System.out.println("onFailure"); } =20 public void onNoAnswer(AsteriskChannel channel) { System.out.println("onNoAnswer"); } =20 public void onSuccess(AsteriskChannel channel) { System.out.println("onSuccess"); } =20 public static void main(String[] args) { new MakeCall().dial(); } } =20 =20 Below is the output I captured from the console: =20 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Connecting to 192.168.2.102:5038 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Connected via Asterisk Call Manager/1.0 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Successfully logged in 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Determined Asterisk version: Asterisk 1.2 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Initializing done onDialing - 1161985584.7314 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-08392ee0(1161985584.7314) New State: RINGING Hangup channel SIP/king238-08392ee0-1161985584.7314 New State: HUNGUP onFailure 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Removing channel SIP/king238-08392ee0 due to hangup (NORMAL) onDialing - 1161985585.7315 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:14 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-08392ee0(1161985585.7315) New State: RINGING Hangup channel SIP/king238-08392ee0-1161985585.7315 New State: HUNGUP onFailure 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:14 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Removing channel SIP/king238-08392ee0 due to hangup (NORMAL) onDialing - 1161985586.7316 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:15 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-08392ee0(1161985586.7316) New State: RINGING Hangup channel SIP/king238-08392ee0-1161985586.7316 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:15 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Removing channel SIP/king238-08392ee0 due to hangup (NORMAL) New State: HUNGUP onFailure 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:17 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-08392ee0(1161985587.7317) onDialing - 1161985588.7318 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:18 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-08398420(1161985588.7318) New State: RINGING Hangup channel SIP/king238-08398420-1161985588.7318 New State: HUNGUP onFailure =20 As seen above, the channel SIP/king238-08392ee0(1161985587.7317) was = created to dial but onDialing() was not called!! Therefore, it wasn=A1=A6t = hangup by the program. I have also capture the communication to and from the asterisk manager = port using ngrep. Below is the part of the output related to the channel SIP/king238-08392ee0(1161985587.7317): =20 T 192.168.2.100:2396 -> 192.168.2.102:5038 [AP] action: Originate. actionid: 27165481_13#AJ_ORIGINATE_3. timeout: 30000. exten: 1000. async: true. variable: __AJ_TRACE_ID=3DAJ_ORIGINATE_3. context: testing. priority: 1. channel: SIP/king238. =20 # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Response: Success. . # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] ActionID: 27165481_13#AJ_ORIGINATE_3. =20 ## T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Message: Originate successfully queued. . # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Event: Newchannel. Privilege: call,all. Channel: SIP/king238-08392ee0. State: Down. CallerID: <unknown>. CallerIDName: <unknown>. Uniqueid: 1161985587.7317. . ## T 192.168.2.100:2396 -> 192.168.2.102:5038 [AP] action: GetVar. actionid: 27165481_14#. variable: AJ_TRACE_ID. channel: SIP/king238-08392ee0. . # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Response: Success. Variable: AJ_TRACE_ID. Value: . =20 # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] ActionID: 27165481_14#. =20 ## T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] . # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Event: Newcallerid. Privilege: call,all. Channel: SIP/king238-08392ee0. CallerID: <Unknown>. CallerIDName: <Unknown>. Uniqueid: 1161985587.7317. CID-CallingPres: 0 (Presentation Allowed, Not Screened). . ## T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Event: Newchannel. Privilege: call,all. Channel: SIP/king238-08392ee0. State: Ringing. CallerID: <unknown>. CallerIDName: <unknown>. Uniqueid: 1161985587.7317. . =20 ## T 192.168.2.100:2396 -> 192.168.2.102:5038 [AP] action: Originate. actionid: 27165481_15#AJ_ORIGINATE_4. timeout: 30000. exten: 1000. async: true. variable: __AJ_TRACE_ID=3DAJ_ORIGINATE_4. context: testing. priority: 1. channel: SIP/king238. . =20 # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Response: Success. =20 # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] ActionID: 27165481_15#AJ_ORIGINATE_4. =20 ## T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Message: Originate successfully queued. . =20 # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Event: Newchannel. Privilege: call,all. Channel: SIP/king238-08398420. State: Down. CallerID: <unknown>. CallerIDName: <unknown>. Uniqueid: 1161985588.7318. . As seen above, the events for the channel SIP/king238-08392ee0 (1161985587.7317) looks OK except there is no hangup action called after = the RINGING event for the channel: SIP/king238-08392ee0 (1161985587.7317). =20 Since I have set a sleep period of 1.5 sec between each originate = action, I don=A1=A6t think I am pushing the system hard. If there is any more = information that is needed to debug this, please let me know and I=A1=A6ll do my = best to provide it. =20 Thanks. =20 Best Regards, =20 King |
From: King H. <kin...@ne...> - 2006-10-28 03:04:18
|
Hi, =20 This is going to be a little long as there is a lot of debugging information.=20 =20 I am trying to use asteriskjava.live with a new project and found that = the onDialing() method in my OriginateCallback class does not always get = called. Below is a small program that I have written to demonstrate this = problem: =20 import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; =20 import org.asteriskjava.live.AsteriskChannel; import org.asteriskjava.live.ChannelState; import org.asteriskjava.live.DefaultAsteriskServer; import org.asteriskjava.live.LiveException; import org.asteriskjava.live.ManagerCommunicationException; import org.asteriskjava.live.NoSuchChannelException; import org.asteriskjava.live.OriginateCallback; =20 =20 public class MakeCall implements OriginateCallback { =20 private DefaultAsteriskServer defaultAsteriskServer =3D null; =20 public MakeCall() { =20 try { defaultAsteriskServer =3D new DefaultAsteriskServer( "192.168.2.102", "testing", "testing123"); defaultAsteriskServer.setSkipQueues(true); defaultAsteriskServer.initialize(); } catch (Exception e) { e.printStackTrace(); } } =20 public void dial() { =20 while (true) { try { defaultAsteriskServer.originateToExtensionAsync( "SIP/king238", "testing", "1000", 1, 30000, = null, null, this); Thread.sleep(1500); } catch (ManagerCommunicationException e) { e.printStackTrace(); } catch (InterruptedException e) { e.printStackTrace(); } =20 } } =20 public void onBusy(AsteriskChannel channel) { System.out.println("onBusy"); } =20 public void onDialing(AsteriskChannel channel) { System.out.println("onDialing - " + channel.getId()); = channel.addPropertyChangeListener(AsteriskChannel.PROPERTY_STATE, new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { System.out.println("New State: " + = evt.getNewValue()); if (evt.getNewValue() =3D=3D ChannelState.RINGING) { try { AsteriskChannel ch =3D (AsteriskChannel) evt.getSource(); System.out.println("Hangup channel " + ch.getName() + "-" + ch.getId()); ch.hangup(); } catch (ManagerCommunicationException e) { e.printStackTrace(); } catch (NoSuchChannelException e) { e.printStackTrace(); } } } }); } =20 public void onFailure(LiveException cause) { System.out.println("onFailure"); } =20 public void onNoAnswer(AsteriskChannel channel) { System.out.println("onNoAnswer"); } =20 public void onSuccess(AsteriskChannel channel) { System.out.println("onSuccess"); } =20 public static void main(String[] args) { new MakeCall().dial(); } } =20 =20 Below is the output I captured from the console: =20 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Connecting to 192.168.2.102:5038 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Connected via Asterisk Call Manager/1.0 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Successfully logged in 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Determined Asterisk version: Asterisk 1.2 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Initializing done onDialing - 1161985584.7314 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-08392ee0(1161985584.7314) New State: RINGING Hangup channel SIP/king238-08392ee0-1161985584.7314 New State: HUNGUP onFailure 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:12 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Removing channel SIP/king238-08392ee0 due to hangup (NORMAL) onDialing - 1161985585.7315 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:14 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-08392ee0(1161985585.7315) New State: RINGING Hangup channel SIP/king238-08392ee0-1161985585.7315 New State: HUNGUP onFailure 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:14 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Removing channel SIP/king238-08392ee0 due to hangup (NORMAL) onDialing - 1161985586.7316 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:15 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-08392ee0(1161985586.7316) New State: RINGING Hangup channel SIP/king238-08392ee0-1161985586.7316 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:15 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Removing channel SIP/king238-08392ee0 due to hangup (NORMAL) New State: HUNGUP onFailure 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:17 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-08392ee0(1161985587.7317) onDialing - 1161985588.7318 2006=A6~10=A4=EB28=A4=E9 =A4W=A4=C810:25:18 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/king238-08398420(1161985588.7318) New State: RINGING Hangup channel SIP/king238-08398420-1161985588.7318 New State: HUNGUP onFailure =20 As seen above, the channel SIP/king238-08392ee0(1161985587.7317) was = created to dial but onDialing() was not called!! Therefore, it wasn=A1=A6t = hangup by the program. I have also capture the communication to and from the asterisk manager = port using ngrep. Below is the part of the output related to the channel SIP/king238-08392ee0(1161985587.7317): =20 T 192.168.2.100:2396 -> 192.168.2.102:5038 [AP] action: Originate. actionid: 27165481_13#AJ_ORIGINATE_3. timeout: 30000. exten: 1000. async: true. variable: __AJ_TRACE_ID=3DAJ_ORIGINATE_3. context: testing. priority: 1. channel: SIP/king238. =20 # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Response: Success. . # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] ActionID: 27165481_13#AJ_ORIGINATE_3. =20 ## T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Message: Originate successfully queued. . # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Event: Newchannel. Privilege: call,all. Channel: SIP/king238-08392ee0. State: Down. CallerID: <unknown>. CallerIDName: <unknown>. Uniqueid: 1161985587.7317. . ## T 192.168.2.100:2396 -> 192.168.2.102:5038 [AP] action: GetVar. actionid: 27165481_14#. variable: AJ_TRACE_ID. channel: SIP/king238-08392ee0. . # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Response: Success. Variable: AJ_TRACE_ID. Value: . =20 # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] ActionID: 27165481_14#. =20 ## T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] . # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Event: Newcallerid. Privilege: call,all. Channel: SIP/king238-08392ee0. CallerID: <Unknown>. CallerIDName: <Unknown>. Uniqueid: 1161985587.7317. CID-CallingPres: 0 (Presentation Allowed, Not Screened). . ## T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Event: Newchannel. Privilege: call,all. Channel: SIP/king238-08392ee0. State: Ringing. CallerID: <unknown>. CallerIDName: <unknown>. Uniqueid: 1161985587.7317. . =20 ## T 192.168.2.100:2396 -> 192.168.2.102:5038 [AP] action: Originate. actionid: 27165481_15#AJ_ORIGINATE_4. timeout: 30000. exten: 1000. async: true. variable: __AJ_TRACE_ID=3DAJ_ORIGINATE_4. context: testing. priority: 1. channel: SIP/king238. . =20 # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Response: Success. =20 # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] ActionID: 27165481_15#AJ_ORIGINATE_4. =20 ## T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Message: Originate successfully queued. . =20 # T 192.168.2.102:5038 -> 192.168.2.100:2396 [AP] Event: Newchannel. Privilege: call,all. Channel: SIP/king238-08398420. State: Down. CallerID: <unknown>. CallerIDName: <unknown>. Uniqueid: 1161985588.7318. . As seen above, the events for the channel SIP/king238-08392ee0 (1161985587.7317) looks OK except there is no hangup action called after = the RINGING event for the channel: SIP/king238-08392ee0 (1161985587.7317). =20 Since I have set a sleep period of 1.5 sec between each originate = action, I don=A1=A6t think I am pushing the system hard. If there is any more = information that is needed to debug this, please let me know and I=A1=A6ll do my = best to provide it. =20 Thanks. =20 Best Regards, =20 King |
From: Michael Y. <mic...@i9...> - 2006-10-27 20:54:37
|
Hello, Is there any way to redirect a 3-way call to a specified context? I know you can redirect 2 channels at once but is it possible to do 3 at a time, or redirect 2 at a time and then the third without hanging up the third after you redirect the 1st 2? |
From: Eric C. <zip...@ho...> - 2006-10-26 13:32:08
|
Hello, I'm using java-asterisk as a messaging service. It dials a phone number and plays a pre-recorded message. The next thing I need is for the person listening to the phone call to enter a 4 digit code (or pin) and for these numbers to be captured. This is to make sure that the person called actually got the message and so that the system will not call back. Is there a way to do this? thanks, Eric. |
From: King H. <kin...@ne...> - 2006-10-26 09:55:39
|
Stefan, Do you have a chance to look at this problem? My feeling is that the originateToExtension() method may not always be able to return the = channel used. It depends on the order in which responses and events are handled. = Thanks. King -----=AD=EC=A9l=B6l=A5=F3----- =B1H=A5=F3=AA=CC: ast...@li... [mailto:ast...@li...] =A5N=B2z King = Ho =B1H=A5=F3=A4=E9=B4=C1: Thursday, 19 October, 2006 19:03 =A6=AC=A5=F3=AA=CC: ast...@li... =A5D=A6=AE: [Asterisk-java-users] Strange problem with = originateToExtension Hi, I am having a very strange problem (probably a timing problem) with asterisk-java-m1. I am using the = DefaultAsteriskServer.originateToExtension method as follows: defaultAsteriskServer =3D new DefaultAsteriskServer("192.168.0.238", "testing", "testing123"); defaultAsteriskServer.initialize(); =20 defaultAsteriskServer.originateToExtension("SIP/1000@ray_server","testing= "," 1003",1,30000); The call did go through OK but there is a NoSuchChannelException thown. Below is the console output along with stack trace from the exception: 2006=A6~10=A4=EB19=A4=E9 =A4U=A4=C806:19:40 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Connecting to 192.168.0.238:5038 2006=A6~10=A4=EB19=A4=E9 =A4U=A4=C806:19:40 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Connected via Asterisk Call Manager/1.0 2006=A6~10=A4=EB19=A4=E9 =A4U=A4=C806:19:40 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Successfully logged in 2006=A6~10=A4=EB19=A4=E9 =A4U=A4=C806:19:40 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Determined Asterisk version: Asterisk 1.2 2006=A6~10=A4=EB19=A4=E9 =A4U=A4=C806:19:40 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Initializing done org.asteriskjava.live.NoSuchChannelException: Channel = 'SIP/1000@ray_server' is not available at org.asteriskjava.live.internal.AsteriskServerImpl.originate(AsteriskServe= rIm pl.java:339) at org.asteriskjava.live.internal.AsteriskServerImpl.originateToExtension(As= ter iskServerImpl.java:278) at org.asteriskjava.live.internal.AsteriskServerImpl.originateToExtension(As= ter iskServerImpl.java:258) at org.asteriskjava.live.DefaultAsteriskServer.originateToExtension(DefaultA= ste riskServer.java:133) at hk.com.csl.asterisk_java_example.Manager.run(Manager.java:29) at hk.com.csl.asterisk_java_example.Manager.main(Manager.java:40) 2006=A6~10=A4=EB19=A4=E9 =A4U=A4=C806:19:40 = org.asteriskjava.util.internal.JavaLoggingLog info =B8=EA=B0T: Adding channel SIP/ray_server-09e11ee0(1161253134.58) Based on the console output, the problem seems to be that the = "Newchannel" event was processed after the "OriginateSuccess" event so when it tried = to lookup the channel, it wasn't added yet. I have connected to the Asterisk Manager port and look at the order in = which the events are happening and Newchannel is happening before = OriginateSuccess which is correct. The version of Asterisk that I am using is 1.2.12.1 and also tried with = 1.2. 13 with the same problem. Thanks. Best Regards, King __________ NOD32 1.1810 (20061018) Information __________ This message was checked by NOD32 antivirus system. http://www.nod32.com.hk |