asterisk-java-users Mailing List for Asterisk-Java Library (Page 131)
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: Ken N. M. <Ken...@um...> - 2007-07-13 17:42:53
|
Sure thing. Sorry for the delay, had a few days off this week. I've since upgraded to Asterisk 1.4.6 to see if there was perhaps an issue with 1.4.4. Behavior is the same. The callback is pretty simple, just a class that implements OriginateCallback and ManagerEventListener. I implement both as this callback also watches for a few user events that get fired by an AGI script. The callback is primarily used to track call state as well as do some database logging. Presently a callback is instantiated and added to the manager connection as an event listener at the beginning of each series of dials for a particular recipient. AlarmCalloutOriginateCallback callback =3D new AlarmCalloutOriginateCallback(this); asteriskServer().getManagerConnection().addEventListener(callback); asteriskServer.originateToExtensionAsync( recipient.getAddress(), config.getAgiContext(), config.getAgiExtension(), config.getAgiPriority(), config.getDialTimeout(), null, chanVars, callback); ngrep for the conversation is attached. This is one of those calls where callback.onDialing() is never called but callback.onSuccess() is. -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of Martin Smith Sent: Monday, July 09, 2007 7:13 AM To: ast...@li... Subject: Re: [Asterisk-java-users] Problem with originateToExtensionAsync()andLocal/ channels Hello Ken, Could we see a snippet of how you setup your callback and do the originate? And even more useful than that would be an ngrep of the conversation between AJ and Asterisk. Thanks, Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221=20 |
From: CHUCK S. <CSY...@DU...> - 2007-07-13 13:41:47
|
You are my hero. =20 The problem was Perhaps you mean:=20 originateAction.setContext("from-internal-trixbox"); the default was left over from a sample script I was working off of. =20 Thank you so much! >>> ma...@be... 07/13/07 08:35AM >>> Hi Chuck, Before I reply, you should check out the Asterisk-Java live API -- it will handle a lot of the things you probably want to implement in your application, such as channel history and events. Moving on... > I am having a problem, I am using trixbox to send make a=20 > batch of calls. I am using a ManagerConnection to make calls=20 > to external numbers, then connect them to an AGI script that=20 > lives at extension "111". The problem is, if I attempt to=20 > call an internal number and transfer it to the 111 everything=20 > works fine, but if I call an external number, the line rings=20 > but then gets dropped. This may not be a problem related=20 > with the asterisk-java package, if it isn't can anyone point=20 > me is the right direction to allow the calls to connect to=20 > the agi script. Is SIP/t/1630xxxxxxxxx your external number? I don't use SIP to route calls externally, as we have PRIs, but that SIP identifier you're using looks strange to me. With the same thing you are doing, I've had success with originates that take Zap channels to an AGI script. I looked up http://www.voip-info.org/tiki-index.php?page=3DAsterisk%20SIP%20Channels=20= to check if "SIP/t/..." was really valid, and that documention doesn't really show that syntax anywhere, though I know sometimes voip-info's wiki can be old. Also, I noticed: originateAction.setContext("default"); Perhaps you mean:=20 originateAction.setContext("from-internal-trixbox"); Since you said: > The agi script is in the context "[from-internal-trixbox]" The setContext docs: "Sets the name of the context of the extension to connect to." Take care, Martin Smith, Systems Developer ma...@be...=20 Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221=20 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/=20 _______________________________________________ Asterisk-java-users mailing list Ast...@li...=20 https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Martin S. <ma...@be...> - 2007-07-13 13:35:11
|
Hi Chuck, Before I reply, you should check out the Asterisk-Java live API -- it will handle a lot of the things you probably want to implement in your application, such as channel history and events. Moving on... > I am having a problem, I am using trixbox to send make a=20 > batch of calls. I am using a ManagerConnection to make calls=20 > to external numbers, then connect them to an AGI script that=20 > lives at extension "111". The problem is, if I attempt to=20 > call an internal number and transfer it to the 111 everything=20 > works fine, but if I call an external number, the line rings=20 > but then gets dropped. This may not be a problem related=20 > with the asterisk-java package, if it isn't can anyone point=20 > me is the right direction to allow the calls to connect to=20 > the agi script. Is SIP/t/1630xxxxxxxxx your external number? I don't use SIP to route calls externally, as we have PRIs, but that SIP identifier you're using looks strange to me. With the same thing you are doing, I've had success with originates that take Zap channels to an AGI script. I looked up http://www.voip-info.org/tiki-index.php?page=3DAsterisk%20SIP%20Channels to check if "SIP/t/..." was really valid, and that documention doesn't really show that syntax anywhere, though I know sometimes voip-info's wiki can be old. Also, I noticed: originateAction.setContext("default"); Perhaps you mean:=20 originateAction.setContext("from-internal-trixbox"); Since you said: > The agi script is in the context "[from-internal-trixbox]" The setContext docs: "Sets the name of the context of the extension to connect to." Take care, Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221=20 |
From: CHUCK S. <csy...@DU...> - 2007-07-13 13:16:18
|
I am having a problem, I am using trixbox to send make a batch of calls. = I am using a ManagerConnection to make calls to external numbers, then = connect them to an AGI script that lives at extension "111". The problem = is, if I attempt to call an internal number and transfer it to the 111 = everything works fine, but if I call an external number, the line rings = but then gets dropped. This may not be a problem related with the = asterisk-java package, if it isn't can anyone point me is the right = direction to allow the calls to connect to the agi script. Here is some = testing code I am using: import java.io.*; import org.asteriskjava.manager.*; import org.asteriskjava.manager.action.*; import org.asteriskjava.manager.event.*; import org.asteriskjava.manager.response.*; import org.asteriskjava.fastagi.*; public class Test1 implements ManagerEventListener { private ManagerConnection managerConnection; public Test1() { lg( "Starting application..." ); try { =09 ManagerConnectionFactory factory =3D new ManagerCon= nectionFactory("192.168.1.10", "admin", "password"); this.managerConnection =3D factory.createManagerCon= nection(); managerConnection.addEventListener(this); =09 OriginateAction originateAction; RedirectAction transferAction; ManagerResponse originateResponse; ManagerResponse hangupResponse; =09 originateAction =3D new OriginateAction(); originateAction.setChannel("SIP/t/1630xxxxxxx"); originateAction.setContext("default"); originateAction.setExten("111"); originateAction.setCallerId( "test"); originateAction.setPriority(new Integer(1)); originateAction.setTimeout(new Integer(30000)); managerConnection.login();=09 =09 originateResponse =3D managerConnection.sendAction(= originateAction , 30000); =09 lg(""); lg(""); lg(""); lg( originateResponse.getResponse() ); lg (originateResponse.toString()); lg(""); lg(""); lg(""); if ( originateResponse.getResponse().compareTo( = "Success" ) =3D=3D 0 ) { lg( "Call Connected" ); = =09 } managerConnection.logoff();=09 =09 } catch( Exception e ) { lg( e.getMessage() +"" ); e.printStackTrace(); } lg( "Done" ); } =09 private void lg( String s ) { System.out.println( s + "" ); } =09 public void onManagerEvent(ManagerEvent event) { lg(event.toString()); } =09 public static void main( String[] args ) { new Test1(); } } The agi script is in the context "[from-internal-trixbox]" Is this my problem, if so where do I put it? sorry I am new to asterisk, = and asterisk-java. Thanks for any help you can provide. |
From: David R. <dr...@in...> - 2007-07-11 15:04:47
|
David Roden wrote: > Hmm... I could define an extension which does nothing else than > contacting my backend via AGI so that I could use SetCallerPres via the= > AGI channel. I think I'll try that. I can use Originate to simply > execute stuff from a certain context in the dialplan, can I? :) Turns out it's not as simple as I thought. I have the following in my extensions.conf: [javaclient] exten =3D> outgoingagi,1,AGI(agi://192.168.42.201:4573/outgoingCall.agi) exten =3D> ignore,1,Answer() Now when using Originate to jump to the outgoingagi extension (via setContext(), setExten() and setPriority()) I have the problem that I need to specify a channel - but I don't have a channel. The whole point is to create a channel that I can then use to place a call with Dial on (and executing SetCallerPres _before_ the Dial). When using local channels, i.e. Local/outgoingagi@javaclient) my AGI script is called twice, once when the Originate comes in and once when the Dial from within the AGI script connected to a remote party. When using "Local/ignore@javaclient" the call created from the Dial is hung up immediately after connect. Exchanging the extensions in the local channel and the Originate command also didn't help. So my question ultimately remains: How can I create a channel that contacts my AGI script without using Dial? Still hoping for The Ultimate Solution (tm), David --=20 INA Service GmbH Papenreye 63 22453 Hamburg Germany Mail: in...@in... Phone: +49 (0)40 557 07-07 Fax: +49 (0)40 557 07-100 Gesch=C3=A4ftsf=C3=BChrer: Ines M. Hoerner Amtsgericht Hamburg HRB 96470 Ust-IdNr. DE248754961 |
From: Gabriel A. <gab...@gl...> - 2007-07-11 13:12:42
|
I will try to explain better, sorry. I have 2 beans like: <bean id="managerConnection" class="org.asteriskjava.manager.DefaultManagerConnection" ... > <bean id="managerConnectionCaller" class="org.asteriskjava.manager.DefaultManagerConnection" ... > Over the first connection I add an Event Listener. With the second connection I will make a call with Originate Action. If I debug with Eclipse, I see the following Threads: Java Manager Connection 0-Reader 0 Java Manager Connection 1-Reader 0 However while I debug with Eclipse, if I make a call from a phone to Asterisk, the Events come through Java Manager Connection 1-Reader 0. And if I make a call with Originate using bean 2, it will go through Java Manager Connection 1-Reader 0 also. Nothing goes through Java Manager Connection 0-Reader 0. Regards, Gabriel. -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of Stefan Reuter Sent: Martes, 10 de Julio de 2007 05:49 p.m. To: ast...@li... Subject: Re: [Asterisk-java-users] Two Connection but only one Thread for reading... Gabriel Allasia wrote: > I need to make calls through one connection and to receive Events through > another. Events like JoinEvent and LeaveEvent. well that will just work. I really don't understand the problem you seem to encounter. =Stefan -- 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... Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: David R. <dr...@in...> - 2007-07-11 10:33:44
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Stefan, > As the javadocs say: "This property is only available on BRIstuffed > Asterisk servers." Are you using a vanilla Asterisk server or a > BRIstuffed one? Hmm, probably a vanilla one using chan_ss7 which would explain the not-working part. > You could do it in the dialplan and use a Local/ channel to originate > from an extension with that sets the correct calling presentation. Is there any way to do it without dialplan modifications? Hmm... I could define an extension which does nothing else than contacting my backend via AGI so that I could use SetCallerPres via the AGI channel. I think I'll try that. I can use Originate to simply execute stuff from a certain context in the dialplan, can I? :) That would at least help me in the "the least possible changes in the dialplan"-department. :) > =Stefan Thanks, David - -- INA Service GmbH Papenreye 63 22453 Hamburg Germany Mail: in...@in... Phone: +49 (0)40 557 07-07 Fax: +49 (0)40 557 07-100 Geschäftsführer: Ines M. Hoerner Amtsgericht Hamburg HRB 96470 Ust-IdNr. DE248754961 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGlLHwah2J2g3uuwIRAlodAKCpXwWbZIDODDn+lq09pG0xmtULEQCgzUY7 qFOdZP8QNijKtww6KTUXOUU= =zUmD -----END PGP SIGNATURE----- |
From: Stefan R. <ste...@re...> - 2007-07-11 09:52:30
|
Hi David, > I'm trying to create a call using the manager API that has a caller ID > presentation of 35 (presentation restricted, screening > network-provided). Using OriginateAction.setCallingPres(35) does not > work, though, the NewCallerIdEvent emitted as a result of the > OriginateAction always shows a caller ID presentation of 0. We are usin= g > Asterisk 1.2.13 here. As the javadocs say: "This property is only available on BRIstuffed Asterisk servers." Are you using a vanilla Asterisk server or a BRIstuffed one? > Is there any way to set the caller ID presentation using the manager AP= I > before using OriginateAction? You could do it in the dialplan and use a Local/ channel to originate from an extension with that sets the correct calling presentation. =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... Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: David R. <dr...@in...> - 2007-07-11 09:23:13
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, everybody. I'm trying to create a call using the manager API that has a caller ID presentation of 35 (presentation restricted, screening network-provided). Using OriginateAction.setCallingPres(35) does not work, though, the NewCallerIdEvent emitted as a result of the OriginateAction always shows a caller ID presentation of 0. We are using Asterisk 1.2.13 here. Is there any way to set the caller ID presentation using the manager API before using OriginateAction? Thanks in advance, David Roden - -- INA Service GmbH Papenreye 63 22453 Hamburg Germany Mail: in...@in... Phone: +49 (0)40 557 07-07 Fax: +49 (0)40 557 07-100 Geschäftsführer: Ines M. Hoerner Amtsgericht Hamburg HRB 96470 Ust-IdNr. DE248754961 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGlKFcah2J2g3uuwIRAmY9AKC4Eany1b/XqSobSha0Z0g6nfMWLwCdHySn HufiWmr330DzGxkNH/rvbM8= =/YbM -----END PGP SIGNATURE----- |
From: Stefan R. <ste...@re...> - 2007-07-10 20:48:07
|
Gabriel Allasia wrote: > I need to make calls through one connection and to receive Events throu= gh > another. Events like JoinEvent and LeaveEvent. well that will just work. I really don't understand the problem you seem to encounter. =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... Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Gabriel A. <gab...@gl...> - 2007-07-10 20:44:43
|
I need to make calls through one connection and to receive Events through another. Events like JoinEvent and LeaveEvent. Thanks for your reply. Gabriel -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of Stefan Reuter Sent: Martes, 10 de Julio de 2007 05:40 p.m. To: ast...@li... Subject: Re: [Asterisk-java-users] Two Connection but only one Thread for reading... Gabriel Allasia wrote: > I'm creating 2 beans with Spring using DefaultManagerConnection, only one of > them has an EventListener added, the other it will used for making calls. > > Although the javadocs says "Note that the DefaultManagerConnection will > create one new Thread for reading data from Asterisk", I'm receiving the > events through the Connection that it doesn't have an EventListener. how (or where do you receive events) if you did not register an event listener? and which event? =Stefan -- 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... Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Stefan R. <ste...@re...> - 2007-07-10 20:39:17
|
Gabriel Allasia wrote: > I'm creating 2 beans with Spring using DefaultManagerConnection, only o= ne of > them has an EventListener added, the other it will used for making call= s. >=20 > Although the javadocs says "Note that the DefaultManagerConnection will= > create one new Thread for reading data from Asterisk", I'm receiving th= e > events through the Connection that it doesn't have an EventListener. how (or where do you receive events) if you did not register an event listener? and which event? =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... Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Gabriel A. <gab...@gl...> - 2007-07-10 20:27:24
|
Hi, I'm creating 2 beans with Spring using DefaultManagerConnection, only one of them has an EventListener added, the other it will used for making calls. Although the javadocs says "Note that the DefaultManagerConnection will create one new Thread for reading data from Asterisk", I'm receiving the events through the Connection that it doesn't have an EventListener. How can I get 2 real independent connections? Thanks in advance, Gabriel. |
From: Martin S. <ma...@be...> - 2007-07-09 13:35:32
|
Hello Ken, Could we see a snippet of how you setup your callback and do the originate? And even more useful than that would be an ngrep of the conversation between AJ and Asterisk. Thanks, Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221=20 =20 > -----Original Message----- > From: ast...@li...=20 > [mailto:ast...@li...] On=20 > Behalf Of Ken N. March > Sent: Friday, July 06, 2007 3:30 PM > To: ast...@li... > Subject: [Asterisk-java-users] Problem with=20 > originateToExtensionAsync() andLocal/ channels >=20 > Hi there, >=20 > I'm having a problem with > DefaultAsteriskServer.originateToExtensionAsync() with=20 > asterisk-java 0.3 > and Asterisk 1.4 (1.4.4 presently) when using Local channels.=20 > On about > 50% or so of the calls I originate using this method, the onDialing() > method on my callback is not called. =20 >=20 > Here's some logging for a call that works, and a call that doesn't > (sorry for the really long lines!). In this case, both calls=20 > are being > sent to Local/7777@longdistance, which is just a simple extension that > answers and plays back some DTMF digits, simulating a user. >=20 > 2007-07-06 12:44:32,830 DEBUG > [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching > response with internalActionId '25769070_6': > org.asteriskjava.manager.response.ManagerResponse: > actionId=3D'AJ_ORIGINATE_0'; message=3D'Originate successfully = queued'; > response=3D'Success'; uniqueId=3D'null'; systemHashcode=3D19072308 > 2007-07-06 12:44:32,831 DEBUG > [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching > event: > org.asteriskjava.manager.event.NewChannelEvent[dateReceived=3DFri Jul = 06 > 12:44:32 MDT > 2007,privilege=3D'call,all',calleridnum=3D'<unknown>',calleridname > =3D'<unknown > >',callerid=3D'<unknown>',uniqueid=3D'1183747472.797',state=3D'Down' > ,timestamp > =3D'null',channel=3D'Local/7777@longdistance-c4d6,1',systemHashcod > e=3D2796536] > 2007-07-06 12:44:32,840 DEBUG > [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching > event: > org.asteriskjava.manager.event.NewChannelEvent[dateReceived=3DFri Jul = 06 > 12:44:32 MDT > 2007,privilege=3D'call,all',calleridnum=3D'<unknown>',calleridname > =3D'<unknown > >',callerid=3D'<unknown>',uniqueid=3D'1183747472.798',state=3D'Ring' > ,timestamp > =3D'null',channel=3D'Local/7777@longdistance-c4d6,2',systemHashcod > e=3D20830161 > ] > 2007-07-06 12:44:32,841 DEBUG > [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching > event: > org.asteriskjava.manager.event.NewCallerIdEvent[dateReceived=3DF > ri Jul 06 > 12:44:32 MDT > 2007,privilege=3D'call,all',calleridnum=3D'<Unknown>',cidcallingpr > es=3D'0',cal > leridname=3D'<Unknown>',callerid=3D'<Unknown>',uniqueid=3D'118374747 > 2.797',cid > callingprestxt=3D'Presentation Allowed, Not > Screened',timestamp=3D'null',channel=3D'Local/7777@longdistance-c4 > d6,1',syst > emHashcode=3D19136225] > 2007-07-06 12:44:32,865 INFO > [org.asteriskjava.live.internal.ChannelManager] Adding channel > Local/7777@longdistance-c4d6,1(1183747472.797) > 2007-07-06 12:44:32,867 DEBUG > [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching > response with internalActionId '25769070_7': > org.asteriskjava.manager.response.ManagerResponse: actionId=3D'null'; > message=3D'null'; response=3D'Success'; uniqueId=3D'null'; > systemHashcode=3D5942570 > 2007-07-06 12:44:32,867 INFO > [ca.ums.mdc.service.AlarmCalloutOriginateCallback] > Local/7777@longdistance-c4d6,1: Beginning dial. >=20 > In this case, onDialing() is called (which is what logs the final > "Beginning dial" line above), and then eventually onSuccess()=20 > is called > once the line is answered. However, the next call, things=20 > don't work so > well: >=20 > 2007-07-06 12:44:48,050 DEBUG > [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching > response with internalActionId '25769070_9': > org.asteriskjava.manager.response.ManagerResponse: > actionId=3D'AJ_ORIGINATE_1'; message=3D'Originate successfully = queued'; > response=3D'Success'; uniqueId=3D'null'; systemHashcode=3D30123815 > 2007-07-06 12:44:48,062 DEBUG > [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching > event: > org.asteriskjava.manager.event.NewChannelEvent[dateReceived=3DFri Jul = 06 > 12:44:48 MDT > 2007,privilege=3D'call,all',calleridnum=3D'<unknown>',calleridname > =3D'<unknown > >',callerid=3D'<unknown>',uniqueid=3D'1183747488.799',state=3D'Down' > ,timestamp > =3D'null',channel=3D'Local/7777@longdistance-6370,1',systemHashcod > e=3D21689449 > ] > 2007-07-06 12:44:48,063 INFO > [org.asteriskjava.live.internal.ChannelManager] Adding channel > Local/7777@longdistance-6370,1(1183747488.799) > 2007-07-06 12:44:48,100 DEBUG > [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching > response with internalActionId '25769070_10': > org.asteriskjava.manager.response.ManagerError: actionId=3D'null'; > message=3D'No such channel'; response=3D'Error'; uniqueId=3D'null'; > systemHashcode=3D32790978 > 2007-07-06 12:44:48,190 DEBUG > [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching > event: > org.asteriskjava.manager.event.NewChannelEvent[dateReceived=3DFri Jul = 06 > 12:44:48 MDT > 2007,privilege=3D'call,all',calleridnum=3D'<unknown>',calleridname > =3D'<unknown > >',callerid=3D'<unknown>',uniqueid=3D'1183747488.800',state=3D'Ring' > ,timestamp > =3D'null',channel=3D'Local/7777@longdistance-6370,2',systemHashcod > e=3D8043179] > 2007-07-06 12:44:48,190 DEBUG > [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching > event: > org.asteriskjava.manager.event.NewCallerIdEvent[dateReceived=3DF > ri Jul 06 > 12:44:48 MDT > 2007,privilege=3D'call,all',calleridnum=3D'<Unknown>',cidcallingpr > es=3D'0',cal > leridname=3D'<Unknown>',callerid=3D'<Unknown>',uniqueid=3D'118374748 > 8.799',cid > callingprestxt=3D'Presentation Allowed, Not > Screened',timestamp=3D'null',channel=3D'Local/7777@longdistance-63 > 70,1',syst > emHashcode=3D24458207] > 2007-07-06 12:44:48,191 DEBUG > [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching > event: > org.asteriskjava.manager.event.NewExtenEvent[dateReceived=3DFri Jul 06 > 12:44:48 MDT > 2007,privilege=3D'call,all',extension=3D'7777',appdata=3D'null',uniq > ueid=3D'1183 > 747488.800',context=3D'longdistance',timestamp=3D'null',channel=3D'L > ocal/7777@ > longdistance-6370,2',priority=3D'1',application=3D'Answer',systemH > ashcode=3D27 > 306108] > 2007-07-06 12:44:48,192 DEBUG > [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching > event: > org.asteriskjava.manager.event.NewStateEvent[dateReceived=3DFri Jul 06 > 12:44:48 MDT > 2007,privilege=3D'call,all',calleridnum=3D'<unknown>',calleridname > =3D'<unknown > >',callerid=3D'<unknown>',uniqueid=3D'1183747488.799',state=3D'Up',t > imestamp=3D' > = null',channel=3D'Local/7777@longdistance-6370,1',systemHashcode=3D9795370= ] > 2007-07-06 12:44:48,192 DEBUG > [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching > event: > = org.asteriskjava.manager.event.OriginateResponseEvent[dateReceived=3DFri > Jul 06 12:44:48 MDT > 2007,privilege=3D'call,all',internalactionid=3D'25769070_9',caller > idname=3D'<u > nknown>',exten=3D's',actionid=3D'AJ_ORIGINATE_1',response=3D'Success > ',callerid > num=3D'<unknown>',reason=3D'4',context=3D'ExecAGIApp',uniqueid=3D'1183 > 747488.799 > ',timestamp=3D'null',channel=3D'Local/7777@longdistance-6370,1',sy > stemHashco > de=3D12741325] > 2007-07-06 12:44:48,193 DEBUG > [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching > event: > org.asteriskjava.manager.event.NewStateEvent[dateReceived=3DFri Jul 06 > 12:44:48 MDT > 2007,privilege=3D'call,all',calleridnum=3D'<unknown>',calleridname > =3D'<unknown > >',callerid=3D'<unknown>',uniqueid=3D'1183747488.800',state=3D'Up',t > imestamp=3D' > null',channel=3D'Local/7777@longdistance-6370,2',systemHashcode=3D > 32620358] > 2007-07-06 12:44:48,193 DEBUG > [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching > event: > org.asteriskjava.manager.event.NewExtenEvent[dateReceived=3DFri Jul 06 > 12:44:48 MDT > 2007,privilege=3D'call,all',extension=3D'7777',appdata=3D'3.5',uniqu > eid=3D'11837 > 47488.800',context=3D'longdistance',timestamp=3D'null',channel=3D'Lo > cal/7777@l > ongdistance-6370,2',priority=3D'2',application=3D'Wait',systemHash > code=3D44987 > 53] > 2007-07-06 12:44:48,194 DEBUG > [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching > event: > org.asteriskjava.manager.event.NewExtenEvent[dateReceived=3DFri Jul 06 > 12:44:48 MDT > 2007,privilege=3D'call,all',extension=3D's',appdata=3D'agi://127.0.0 > .1:4573/ca > llout.agi?acked=3D0',uniqueid=3D'1183747488.799',context=3D'ExecAGIA > pp',timest > amp=3D'null',channel=3D'Local/7777@longdistance-6370,1',priority=3D' > 1',applica > tion=3D'AGI',systemHashcode=3D12411662] > 2007-07-06 12:44:48,195 DEBUG > [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching > event: > ca.ums.mdc.voice.asterisk.userevents.AlarmCalloutAnsweredEvent > [dateRecei > ved=3DFri Jul 06 12:44:48 MDT > 2007,privilege=3D'user,all',answerchannel=3D'Local/7777@longdistan > ce-6370,1' > ,messageid=3D'1825',uniqueid=3D'null',timestamp=3D'null',userevent=3D' > AlarmCallo > utAnswered',channel=3D'null',systemHashcode=3D28460584] > 2007-07-06 12:44:48,195 INFO > [ca.ums.mdc.service.AlarmCalloutOriginateCallback] 1825: answered > (Local/7777@longdistance-6370,1) > 2007-07-06 12:44:48,200 INFO > [org.asteriskjava.live.internal.ChannelManager] Adding channel > Local/7777@longdistance-6370,2(1183747488.800) > 2007-07-06 12:44:48,210 DEBUG > [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching > response with internalActionId '25769070_11': > org.asteriskjava.manager.response.ManagerResponse: actionId=3D'null'; > message=3D'null'; response=3D'Success'; uniqueId=3D'null'; > systemHashcode=3D18613390 > 2007-07-06 12:44:48,220 INFO > [ca.ums.mdc.service.AlarmCalloutOriginateCallback] > Local/7777@longdistance-6370,1: Call Answered. > 2007-07-06 12:44:48,230 DEBUG > [ca.ums.mdc.service.AlarmCalloutOriginateCallback] > Local/7777@longdistance-6370,1: *** No dial event received prior to > answer *** >=20 > In this case, onDialing() is never called, even though=20 > onSuccess() does > get called once the call is answered (last 2 log lines). >=20 > Any ideas? About the only thing "odd" about this application=20 > is that it > runs within JBoss (4.0.5), but other than that it's pretty straight > forward. >=20 > The other thing I've noticed is that the very first call I originate > when the application starts always works, but it's hit or miss whether > or not the next call that is made works. Not sure if that helps? >=20 > -- > Ken March, Senior IT Administrator > Universal Measurement Solutions (UMS) Ltd. / Kilowatts Design Company > Inc. >=20 >=20 > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >=20 |
From: Stefan R. <ste...@re...> - 2007-07-07 23:37:47
|
Marcus Carlson wrote: > OK, thanks. But how do I put the calls together again, as I understand = > the bridge application (and manager interface) is not finished or is in= =20 > svn(?), so my only option is to put the channels in a MeetMe room? well meetme will probably work. The bridge patch is in SVN since April, so if it's an option to run a bleeding edge Asterisk server you could give it a try. =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... Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Marcus C. <ma...@me...> - 2007-07-07 23:09:39
|
Stefan, OK, thanks. But how do I put the calls together again, as I understand the bridge application (and manager interface) is not finished or is in svn(?), so my only option is to put the channels in a MeetMe room? Marcus Stefan Reuter wrote: > Marcus, > > there is no direct support for this in the Manager API. > You could redirect both legs to music on hold which should have a > similar effect depending on the exact circumstances. > > =Stefan > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Stefan R. <ste...@re...> - 2007-07-07 23:06:21
|
Marcus, there is no direct support for this in the Manager API. You could redirect both legs to music on hold which should have a similar effect depending on the exact circumstances. =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... Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Marcus C. <ma...@me...> - 2007-07-07 16:09:42
|
Hi, Is there a way of to put a call on hold from AMI? I couldn't find anything about it, only parking. Is there a way or should I put both ends in a meetme room (both muted) or just send both to an endless musiconhold extension? Thanks, Marcus |
From: Ken N. M. <Ken...@um...> - 2007-07-06 19:23:51
|
Hi there, I'm having a problem with DefaultAsteriskServer.originateToExtensionAsync() with asterisk-java 0.3 and Asterisk 1.4 (1.4.4 presently) when using Local channels. On about 50% or so of the calls I originate using this method, the onDialing() method on my callback is not called. =20 Here's some logging for a call that works, and a call that doesn't (sorry for the really long lines!). In this case, both calls are being sent to Local/7777@longdistance, which is just a simple extension that answers and plays back some DTMF digits, simulating a user. 2007-07-06 12:44:32,830 DEBUG [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching response with internalActionId '25769070_6': org.asteriskjava.manager.response.ManagerResponse: actionId=3D'AJ_ORIGINATE_0'; message=3D'Originate successfully queued'; response=3D'Success'; uniqueId=3D'null'; systemHashcode=3D19072308 2007-07-06 12:44:32,831 DEBUG [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching event: org.asteriskjava.manager.event.NewChannelEvent[dateReceived=3DFri Jul 06 12:44:32 MDT 2007,privilege=3D'call,all',calleridnum=3D'<unknown>',calleridname=3D'<un= known >',callerid=3D'<unknown>',uniqueid=3D'1183747472.797',state=3D'Down',time= stamp =3D'null',channel=3D'Local/7777@longdistance-c4d6,1',systemHashcode=3D279= 6536] 2007-07-06 12:44:32,840 DEBUG [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching event: org.asteriskjava.manager.event.NewChannelEvent[dateReceived=3DFri Jul 06 12:44:32 MDT 2007,privilege=3D'call,all',calleridnum=3D'<unknown>',calleridname=3D'<un= known >',callerid=3D'<unknown>',uniqueid=3D'1183747472.798',state=3D'Ring',time= stamp =3D'null',channel=3D'Local/7777@longdistance-c4d6,2',systemHashcode=3D208= 30161 ] 2007-07-06 12:44:32,841 DEBUG [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching event: org.asteriskjava.manager.event.NewCallerIdEvent[dateReceived=3DFri Jul = 06 12:44:32 MDT 2007,privilege=3D'call,all',calleridnum=3D'<Unknown>',cidcallingpres=3D'0= ',cal leridname=3D'<Unknown>',callerid=3D'<Unknown>',uniqueid=3D'1183747472.797= ',cid callingprestxt=3D'Presentation Allowed, Not Screened',timestamp=3D'null',channel=3D'Local/7777@longdistance-c4d6,1',s= yst emHashcode=3D19136225] 2007-07-06 12:44:32,865 INFO [org.asteriskjava.live.internal.ChannelManager] Adding channel Local/7777@longdistance-c4d6,1(1183747472.797) 2007-07-06 12:44:32,867 DEBUG [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching response with internalActionId '25769070_7': org.asteriskjava.manager.response.ManagerResponse: actionId=3D'null'; message=3D'null'; response=3D'Success'; uniqueId=3D'null'; systemHashcode=3D5942570 2007-07-06 12:44:32,867 INFO [ca.ums.mdc.service.AlarmCalloutOriginateCallback] Local/7777@longdistance-c4d6,1: Beginning dial. In this case, onDialing() is called (which is what logs the final "Beginning dial" line above), and then eventually onSuccess() is called once the line is answered. However, the next call, things don't work so well: 2007-07-06 12:44:48,050 DEBUG [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching response with internalActionId '25769070_9': org.asteriskjava.manager.response.ManagerResponse: actionId=3D'AJ_ORIGINATE_1'; message=3D'Originate successfully queued'; response=3D'Success'; uniqueId=3D'null'; systemHashcode=3D30123815 2007-07-06 12:44:48,062 DEBUG [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching event: org.asteriskjava.manager.event.NewChannelEvent[dateReceived=3DFri Jul 06 12:44:48 MDT 2007,privilege=3D'call,all',calleridnum=3D'<unknown>',calleridname=3D'<un= known >',callerid=3D'<unknown>',uniqueid=3D'1183747488.799',state=3D'Down',time= stamp =3D'null',channel=3D'Local/7777@longdistance-6370,1',systemHashcode=3D216= 89449 ] 2007-07-06 12:44:48,063 INFO [org.asteriskjava.live.internal.ChannelManager] Adding channel Local/7777@longdistance-6370,1(1183747488.799) 2007-07-06 12:44:48,100 DEBUG [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching response with internalActionId '25769070_10': org.asteriskjava.manager.response.ManagerError: actionId=3D'null'; message=3D'No such channel'; response=3D'Error'; uniqueId=3D'null'; systemHashcode=3D32790978 2007-07-06 12:44:48,190 DEBUG [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching event: org.asteriskjava.manager.event.NewChannelEvent[dateReceived=3DFri Jul 06 12:44:48 MDT 2007,privilege=3D'call,all',calleridnum=3D'<unknown>',calleridname=3D'<un= known >',callerid=3D'<unknown>',uniqueid=3D'1183747488.800',state=3D'Ring',time= stamp =3D'null',channel=3D'Local/7777@longdistance-6370,2',systemHashcode=3D804= 3179] 2007-07-06 12:44:48,190 DEBUG [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching event: org.asteriskjava.manager.event.NewCallerIdEvent[dateReceived=3DFri Jul = 06 12:44:48 MDT 2007,privilege=3D'call,all',calleridnum=3D'<Unknown>',cidcallingpres=3D'0= ',cal leridname=3D'<Unknown>',callerid=3D'<Unknown>',uniqueid=3D'1183747488.799= ',cid callingprestxt=3D'Presentation Allowed, Not Screened',timestamp=3D'null',channel=3D'Local/7777@longdistance-6370,1',s= yst emHashcode=3D24458207] 2007-07-06 12:44:48,191 DEBUG [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching event: org.asteriskjava.manager.event.NewExtenEvent[dateReceived=3DFri Jul 06 12:44:48 MDT 2007,privilege=3D'call,all',extension=3D'7777',appdata=3D'null',uniqueid=3D= '1183 747488.800',context=3D'longdistance',timestamp=3D'null',channel=3D'Local/= 7777@ longdistance-6370,2',priority=3D'1',application=3D'Answer',systemHashcode= =3D27 306108] 2007-07-06 12:44:48,192 DEBUG [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching event: org.asteriskjava.manager.event.NewStateEvent[dateReceived=3DFri Jul 06 12:44:48 MDT 2007,privilege=3D'call,all',calleridnum=3D'<unknown>',calleridname=3D'<un= known >',callerid=3D'<unknown>',uniqueid=3D'1183747488.799',state=3D'Up',timest= amp=3D' null',channel=3D'Local/7777@longdistance-6370,1',systemHashcode=3D9795370= ] 2007-07-06 12:44:48,192 DEBUG [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching event: org.asteriskjava.manager.event.OriginateResponseEvent[dateReceived=3DFri Jul 06 12:44:48 MDT 2007,privilege=3D'call,all',internalactionid=3D'25769070_9',calleridname=3D= '<u nknown>',exten=3D's',actionid=3D'AJ_ORIGINATE_1',response=3D'Success',cal= lerid num=3D'<unknown>',reason=3D'4',context=3D'ExecAGIApp',uniqueid=3D'1183747= 488.799 ',timestamp=3D'null',channel=3D'Local/7777@longdistance-6370,1',systemHas= hco de=3D12741325] 2007-07-06 12:44:48,193 DEBUG [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching event: org.asteriskjava.manager.event.NewStateEvent[dateReceived=3DFri Jul 06 12:44:48 MDT 2007,privilege=3D'call,all',calleridnum=3D'<unknown>',calleridname=3D'<un= known >',callerid=3D'<unknown>',uniqueid=3D'1183747488.800',state=3D'Up',timest= amp=3D' null',channel=3D'Local/7777@longdistance-6370,2',systemHashcode=3D3262035= 8] 2007-07-06 12:44:48,193 DEBUG [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching event: org.asteriskjava.manager.event.NewExtenEvent[dateReceived=3DFri Jul 06 12:44:48 MDT 2007,privilege=3D'call,all',extension=3D'7777',appdata=3D'3.5',uniqueid=3D= '11837 47488.800',context=3D'longdistance',timestamp=3D'null',channel=3D'Local/7= 777@l ongdistance-6370,2',priority=3D'2',application=3D'Wait',systemHashcode=3D= 44987 53] 2007-07-06 12:44:48,194 DEBUG [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching event: org.asteriskjava.manager.event.NewExtenEvent[dateReceived=3DFri Jul 06 12:44:48 MDT 2007,privilege=3D'call,all',extension=3D's',appdata=3D'agi://127.0.0.1:45= 73/ca llout.agi?acked=3D0',uniqueid=3D'1183747488.799',context=3D'ExecAGIApp',t= imest amp=3D'null',channel=3D'Local/7777@longdistance-6370,1',priority=3D'1',ap= plica tion=3D'AGI',systemHashcode=3D12411662] 2007-07-06 12:44:48,195 DEBUG [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching event: ca.ums.mdc.voice.asterisk.userevents.AlarmCalloutAnsweredEvent[dateRecei ved=3DFri Jul 06 12:44:48 MDT 2007,privilege=3D'user,all',answerchannel=3D'Local/7777@longdistance-6370= ,1' ,messageid=3D'1825',uniqueid=3D'null',timestamp=3D'null',userevent=3D'Ala= rmCallo utAnswered',channel=3D'null',systemHashcode=3D28460584] 2007-07-06 12:44:48,195 INFO [ca.ums.mdc.service.AlarmCalloutOriginateCallback] 1825: answered (Local/7777@longdistance-6370,1) 2007-07-06 12:44:48,200 INFO [org.asteriskjava.live.internal.ChannelManager] Adding channel Local/7777@longdistance-6370,2(1183747488.800) 2007-07-06 12:44:48,210 DEBUG [org.asteriskjava.manager.internal.ManagerConnectionImpl] Dispatching response with internalActionId '25769070_11': org.asteriskjava.manager.response.ManagerResponse: actionId=3D'null'; message=3D'null'; response=3D'Success'; uniqueId=3D'null'; systemHashcode=3D18613390 2007-07-06 12:44:48,220 INFO [ca.ums.mdc.service.AlarmCalloutOriginateCallback] Local/7777@longdistance-6370,1: Call Answered. 2007-07-06 12:44:48,230 DEBUG [ca.ums.mdc.service.AlarmCalloutOriginateCallback] Local/7777@longdistance-6370,1: *** No dial event received prior to answer *** In this case, onDialing() is never called, even though onSuccess() does get called once the call is answered (last 2 log lines). Any ideas? About the only thing "odd" about this application is that it runs within JBoss (4.0.5), but other than that it's pretty straight forward. The other thing I've noticed is that the very first call I originate when the application starts always works, but it's hit or miss whether or not the next call that is made works. Not sure if that helps? -- Ken March, Senior IT Administrator Universal Measurement Solutions (UMS) Ltd. / Kilowatts Design Company Inc. |
From: David R. <dr...@in...> - 2007-07-06 10:06:39
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Silvio Bierman wrote: > The problem is that we get a very limited number of events. We never see > events like RINGING, BUSY or whatever. Just an immediate UP event and > finally a DOWN event. Any idea if we are doing something wrong or should > configure things differently? Make sure that Asterisk is configured to deliver all events to your Manager API user. - From my manager.conf: - ---- SNIP ---- [javaclient] secret = haha-you-bet permit = 127.0.0.1/255.0.0.0 read = all write = all - ---- SNAP ---- With this configuration I get to see all kinds of event, NewChannelEvents, NewExtenEvents, NewStateEvents and what not. > Silvio Bierman David - -- INA Service GmbH Papenreye 63 22453 Hamburg Germany Mail: in...@in... Phone: +49 (0)40 557 07-07 Fax: +49 (0)40 557 07-100 Geschäftsführer: Ines M. Hoerner Amtsgericht Hamburg HRB 96470 Ust-IdNr. DE248754961 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGjhQOah2J2g3uuwIRAnM5AJ0fktvsvAtm3GzjsdWupPjOuwBcwgCfQO7S FUSOK8FxxL0k3x6B7rgIB7I= =BvIQ -----END PGP SIGNATURE----- |
From: Silvio B. <sbi...@ja...> - 2007-07-06 09:43:13
|
Hello Stefan, That is very helpful. We will look into this code and see if we can get a better grasp on this whole Asterisk thing. If we still can't get things working than I will definitely come back with some code. Regards, Silvio Bierman Stefan Reuter wrote: > Silvio Bierman wrote: > >> The problem is that we get a very limited number of events. We never see >> events like RINGING, BUSY or whatever. Just an immediate UP event and >> finally a DOWN event. Any idea if we are doing something wrong or should >> configure things differently? >> > > You could either post your code so we can comment on it or you might > have a look at > http://svn.reucon.net/repos/asterisk-java/trunk/src/integrationtest/org/asteriskjava/live/ > and especially OriginateCauseAsyncTest.java which might give you some > insights. > > =Stefan > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Stefan R. <ste...@re...> - 2007-07-06 09:35:28
|
Silvio Bierman wrote: > The problem is that we get a very limited number of events. We never se= e=20 > events like RINGING, BUSY or whatever. Just an immediate UP event and=20 > finally a DOWN event. Any idea if we are doing something wrong or shoul= d=20 > configure things differently? You could either post your code so we can comment on it or you might have a look at http://svn.reucon.net/repos/asterisk-java/trunk/src/integrationtest/org/a= steriskjava/live/ and especially OriginateCauseAsyncTest.java which might give you some insights. =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... Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Silvio B. <sbi...@ja...> - 2007-07-06 09:27:11
|
Hello David, Thank you and Stefan for your responses. We tried this earlier, and after reading your messages also the async way. The problem is that we get a very limited number of events. We never see events like RINGING, BUSY or whatever. Just an immediate UP event and finally a DOWN event. Any idea if we are doing something wrong or should configure things differently? Kind regards, Silvio Bierman David Roden wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Silvio Bierman wrote: > > >> Can anyone point us in the right direction (preferably a small code >> sample) of how to initiate a call and then track the status of that call >> (connecting, ringing, answered and various error statusses)? >> > > When initiating a call (using the Manager API and the Originate > command), set a variable on that call. Then track the events the Manager > API emits, if you encounter a NewChannelEvent get the variable from that > channel and match it to a call. From there on you can use the channel > name to track events. > > > Hope that helps, > > David Roden > - -- > INA Service GmbH > Papenreye 63 > 22453 Hamburg > Germany > > Mail: in...@in... > Phone: +49 (0)40 557 07-07 > Fax: +49 (0)40 557 07-100 > > Geschäftsführer: Ines M. Hoerner > > Amtsgericht Hamburg > HRB 96470 > Ust-IdNr. DE248754961 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFGjNAXah2J2g3uuwIRAtIKAJwL+/S6KwzZYN8mhE8veYxpW0/N0QCdHObv > paHpMSmx/Dz+mSfbxbf/570= > =vDFB > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: David R. <dr...@in...> - 2007-07-06 08:17:41
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gabriel Allasia wrote: > We are using synchronous OriginateCall because we need to know in the > moment the call's result (if the called really answered or not). Make it asynchron and watch for NewStateEvents with State == "Up", that will tell you when a channel has been answered. > Gabriel. Hope that helps, David - -- INA Service GmbH Papenreye 63 22453 Hamburg Germany Mail: in...@in... Phone: +49 (0)40 557 07-07 Fax: +49 (0)40 557 07-100 Geschäftsführer: Ines M. Hoerner Amtsgericht Hamburg HRB 96470 Ust-IdNr. DE248754961 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGjfqFah2J2g3uuwIRAlePAKCFOjB13+u6uRDgxa2U/8MA0h1/GACg09GW ABa4bPEnahqzOPao26FAQAA= =+RNK -----END PGP SIGNATURE----- |
From: Gabriel A. <gab...@gl...> - 2007-07-05 18:51:54
|
Hi All, We are using asterisk-java 0.2 to handle Events and to do Calls with OriginateAction. Due to applications requirements we need to handle events all the time, but when we make an OriginateCall the Events Handling stops (ie. JoinEvent and LeaveEvent). We are using synchronous OriginateCall because we need to know in the moment the call's result (if the called really answered or not). We are using 2 different Manager Connections with 2 different Manager User in Asterisk. In spite of that the Events Handling stops until OriginateCall sends the response. Although there are 2 several connections it seems that there is only one tunnel. How can we have 2 real independents connections? Why does one connection stop to handle events if the other connection is making an OriginateAction? Any suggestion would be appreciated. Thanks in advance. Gabriel. |