asterisk-java-users Mailing List for Asterisk-Java Library (Page 110)
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: Hakan L. <di...@gm...> - 2008-06-28 16:57:05
|
Hi, Thank you, I was aware of the Originate Action, but my problem is that I don't know how to connnect it to 'dial plan magic' or a AGI script. Do you have any example? Regrads Hakan 2008/6/28 Maciek Tokarski <mlo...@gm...>: > Hey, > > Call files aren't good way- with call files it's hard to implement service > of failed calls. Best way is to use originate action via AMI. Look at > http://asterisk-java.org/latest/apidocs/org/asteriskjava/manager/action/OriginateAction.html. > > Conjunct originate action and some dialplan magic or Agi script and you > have recipe. > > Cheers, Maciek > > > ------------------------------ > > *From:* ast...@li... [mailto: > ast...@li...] *On Behalf Of *Hakan > Lager > *Sent:* Saturday, June 28, 2008 5:45 PM > *To:* ast...@li... > *Subject:* [Asterisk-java-users] Auto-dial > > > > Hi, > > What is the best way to automatically dial out to a certain phone number > and deliver a specified pre-recorded message, and take > care of possible DTML response, via asterisk java > > Regards > Hakan > > > > PS > Sorry for sending this question both asterisk java mailing list, but this > should be the correct one ;-) > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: Maciek T. <mlo...@gm...> - 2008-06-28 16:01:54
|
Hey, Call files aren't good way- with call files it's hard to implement service of failed calls. Best way is to use originate action via AMI. Look at http://asterisk-java.org/latest/apidocs/org/asteriskjava/manager/action/Orig inateAction.html . Conjunct originate action and some dialplan magic or Agi script and you have recipe. Cheers, Maciek _____ From: ast...@li... [mailto:ast...@li...] On Behalf Of Hakan Lager Sent: Saturday, June 28, 2008 5:45 PM To: ast...@li... Subject: [Asterisk-java-users] Auto-dial Hi, What is the best way to automatically dial out to a certain phone number and deliver a specified pre-recorded message, and take care of possible DTML response, via asterisk java Regards Hakan PS Sorry for sending this question both asterisk java mailing list, but this should be the correct one ;-) |
From: Hakan L. <di...@gm...> - 2008-06-28 15:45:19
|
Hi, What is the best way to automatically dial out to a certain phone number and deliver a specified pre-recorded message, and take care of possible DTML response, via asterisk java Regards Hakan PS Sorry for sending this question both asterisk java mailing list, but this should be the correct one ;-) |
From: Martin S. <ma...@be...> - 2008-06-25 13:23:21
|
Howdy, Usually these MBeans have very simple interfaces. The one for AgiManagement using the example from the FAQ should look like: public interface AgiManagement { public void start() throws Exception; public void stop() throws Exception; } I'll add that to the FAQ :) If you check out http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html/ jboss_extensions.html, it documents the @Management and @Service JBoss extensions to EJB3, and how they work. The example in the FAQ uses the extensions to ensure it can get startup/shutdown methods called. Cheers, Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 > -----Original Message----- > From: ast...@li... > [mailto:ast...@li...] On > Behalf Of Svante Paldan > Sent: Wednesday, June 25, 2008 8:16 AM > To: ast...@li... > Subject: [Asterisk-java-users] Newbie Asterisk-java & JBoss question > > Hi, > > First of all, I've read the previous posts on the matter of JBoss and > Asterisk-Java, and I've read the very brief example on the FAQ. > Still, I can't really get it to work. I just don't seem to find > AgiManagement interface that the MBean implements. > It would also be nice to see a bit more elaborate example of using > this approach, with all the fastagi-mapping.properties files set etc. > > I'm sorry if I have missed some info. > > Best Regards, > > Svante Paldan > > -------------------------------------------------------------- > ----------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Svante P. <sva...@tr...> - 2008-06-25 12:16:15
|
Hi, First of all, I've read the previous posts on the matter of JBoss and Asterisk-Java, and I've read the very brief example on the FAQ. Still, I can't really get it to work. I just don't seem to find AgiManagement interface that the MBean implements. It would also be nice to see a bit more elaborate example of using this approach, with all the fastagi-mapping.properties files set etc. I'm sorry if I have missed some info. Best Regards, Svante Paldan |
From: Stefan R. <ste...@re...> - 2008-06-25 02:49:29
|
Jesus Mogollon wrote: > Does anybody know what the "status" number mean within the context of > ExtensionStatusEvent? I know 8 is ringing, 1 is INUSE but I can't infer > the others. I know I saw a table a while ago but I can't find it anywhere... They are defined in ExtensionStatusEvent: /** * No device INUSE or BUSY. */ public static final int NOT_INUSE = 0; /** * One or more devices INUSE. */ public static final int INUSE = 1 << 0; /** * All devices BUSY. */ public static final int BUSY = 1 << 1; /** * All devices UNAVAILABLE/UNREGISTERED. */ public static final int UNAVAILABLE = 1 << 2; /** * One or more devices RINGING. */ public static final int RINGING = 1 << 3; =Stefan > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > > > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users -- 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... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Jesus M. <jmo...@gm...> - 2008-06-25 02:31:29
|
Does anybody know what the "status" number mean within the context of ExtensionStatusEvent? I know 8 is ringing, 1 is INUSE but I can't infer the others. I know I saw a table a while ago but I can't find it anywhere... |
From: Stefan R. <ste...@re...> - 2008-06-21 08:05:26
|
There is an AgentCallbackLogin action - does that provide what you are looking for? =Stefan Eric Windham wrote: > Does this exist? It is mentioned in the AgentLoginEvent page, but it is > not in the API. > > How do you log an agent in using Asterisk-Java? > > -- > ------------------------------------------------------------ > Eric Windham > ------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > > > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users -- 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... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Martin S. <ma...@be...> - 2008-06-20 23:23:40
|
Hi Eric, The documentation of the API is generated from the source itself. Are you sure you're looking at the same documentation *version* as the distribution *version* you're using. The latest snapshot has the AgentLoginEvent class in it. Cheers, Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 ________________________________ From: ast...@li... [mailto:ast...@li...] On Behalf Of Eric Windham Sent: Friday, June 20, 2008 10:52 AM To: ast...@li... Subject: [Asterisk-java-users] AgentLoginAction... Does this exist? It is mentioned in the AgentLoginEvent page, but it is not in the API. How do you log an agent in using Asterisk-Java? -- ------------------------------------------------------------ Eric Windham ------------------------------------------------------------ |
From: Eric W. <eri...@gm...> - 2008-06-20 14:52:20
|
Does this exist? It is mentioned in the AgentLoginEvent page, but it is not in the API. How do you log an agent in using Asterisk-Java? -- ------------------------------------------------------------ Eric Windham ------------------------------------------------------------ |
From: preetha A. <pre...@gm...> - 2008-06-19 10:24:39
|
Hi, I am trying to get the status of the extension using manager API.I have used extensionstatusevent.getStatus() which is in org.asteriskjava.manager.event.ExtensionStatusEvent.But i am getting null pointer exception.please assist me to do this. Thanks. -- Preetha.A |
From: Martin S. <ma...@be...> - 2008-06-18 12:19:38
|
Hello Satya, You are correct -- the AgiScript does not serialize execution to enforce any kind of thread safety. This is the usual case for highly parallel operations in Java -- there's always a tradeoff between synchronization and performance. I suggest this is a good default behavior for Asterisk-Java. I'd advise you design parallel requests to require as little shared data as possible, avoiding things like static members. If you *must* share some data, use everyone's favorite parallel data structure -- the database (or any of the thread safe collections in a static member). You'll still probably have opportunities where you can deadlock if you're not careful. There's never a free lunch :) Best of luck, Martin -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of Satya Parimi Sent: Tuesday, June 17, 2008 7:12 PM To: ast...@li... Subject: [Asterisk-java-users] Handling parallel requests toAgiScript.service() method Hello I'm setting up IVR using fastagi. I have to execute some business logic during the IVR flow I'm wondering how to handle parallel requests that come to service method. I guess at runtime a single instance of the AgiScript will serve all requests, please confirm If so, I should make my business logic thread safe, but I'm afraid that slows down the calls. What is advisable to handle parallel requests? Can I use Queues, but the AgiChannel is not Serializable Thanks for any pointers Satya ------------------------------------------------------------------------ - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Satya P. <sat...@dh...> - 2008-06-17 23:12:00
|
Hello I'm setting up IVR using fastagi. I have to execute some business logic during the IVR flow I'm wondering how to handle parallel requests that come to service method. I guess at runtime a single instance of the AgiScript will serve all requests, please confirm If so, I should make my business logic thread safe, but I'm afraid that slows down the calls. What is advisable to handle parallel requests? Can I use Queues, but the AgiChannel is not Serializable Thanks for any pointers Satya |
From: Martin S. <ma...@be...> - 2008-06-17 20:40:57
|
Hello Satya, This sounds like an Asterisk problem. You may want to ask the asterisk-users listserv hosted by Digium. Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 > -----Original Message----- > From: ast...@li... > [mailto:ast...@li...] On > Behalf Of Satya Parimi > Sent: Tuesday, June 17, 2008 4:30 PM > To: ast...@li... > Subject: [Asterisk-java-users] > AgiOperations.getData(sound_file) returnswrong data > > Hi > > I'm trying to setup an IVR using Asterisk-Java with fastagi > I tried using fastagi.AgiOperations.getData(String), it plays > the sound, > but when I enter the pin 1212 (quickly) it reads it as > 122112. I tried > different pins 50% of the times I got the wrong number. Am I doing > anything wrong here? Is there a better way to pickup pin from > the caller? > > Thanks for help > Satya > > -------------------------------------------------------------- > ----------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Satya P. <sat...@dh...> - 2008-06-17 20:30:11
|
Hi I'm trying to setup an IVR using Asterisk-Java with fastagi I tried using fastagi.AgiOperations.getData(String), it plays the sound, but when I enter the pin 1212 (quickly) it reads it as 122112. I tried different pins 50% of the times I got the wrong number. Am I doing anything wrong here? Is there a better way to pickup pin from the caller? Thanks for help Satya |
From: Daniel G. <da...@gr...> - 2008-06-16 12:45:16
|
Hi all, does anyone know how to simply detect that a channel was transffered? I would like to do that without setting a variable via AJ and to use the "default" Asterisk dialplan. Actually, if it is not possible that way, what is the most appropriated way to do that? Kind regards, Daniel |
From: Martin S. <ma...@be...> - 2008-06-12 18:43:04
|
Hi Richard, The contract for the method, according to the javadoc, is: In case of a failure onFailure(LiveException) is the only method that is called and it is called exactly once. Otherwise one of onSuccess(AsteriskChannel) onBusy(AsteriskChannel) or onNoAnswer(AsteriskChannel) is called exactly once. Perhaps because your originate is to a local channel, and not actually the destination, the extra hop makes a busy into a failure? That's my guess, since your log shows the local channel ended with a HANGUP and not a busy. Maybe Stefan can speak more to this :) Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 > -----Original Message----- > From: ast...@li... > [mailto:ast...@li...] On > Behalf Of Richard Hamnett > Sent: Thursday, June 12, 2008 7:31 AM > To: ast...@li... > Subject: [Asterisk-java-users] Problems getting the BUSY > state from anoriginateToExtensionAsync() > > I'm using an asynchronous originateToExtensionAsync and the > implementation of OriginateCallback i pass in has an onBusy method as > well as an onFailure > > > When i make the originate request, if the originating channel > is busy, > asterisk-java always hits the onFailure() method and never > the onBusy() > method. > > Can someone please tell me where I am going wrong? > > > > > > 2008-06-12 12:25:57,823 > com.yaptele.clicktocall.asterisk.CallServiceImpl > DEBUG - WE GOT A CDR EVENT ++++++++++++++ CHANNEL ID WAS: > 1213270203.899 CHANNEL NAME WAS: Local/301612355046@clickToCall-ddab,2 > 2008-06-12 12:25:58,018 com.yaptele.rateEngine.RateEngine > INFO - Total > cost of calls was 0.0 > 2008-06-12 12:25:58,107 org.asteriskjava.live.internal.ChannelManager > INFO - Adding channel > Local/301612355046@clickToCall-ddab,2(1213270203.899) > 2008-06-12 12:25:58,211 org.asteriskjava.live.internal.ChannelManager > INFO - Adding channel IAX2/switch-893(1213270203.900) > 2008-06-12 12:25:58,468 org.asteriskjava.live.internal.ChannelManager > INFO - Local/301612355046@clickToCall-ddab,2 dialed IAX2/switch-893 > 2008-06-12 12:25:58,494 > com.yaptele.clicktocall.asterisk.CallServiceImpl > DEBUG - pollCallStatus() - Returning status Hungup > 2008-06-12 12:25:58,607 org.asteriskjava.live.internal.ChannelManager > INFO - Removing channel IAX2/switch-893 due to hangup (NOTDEFINED) > 2008-06-12 12:25:58,608 org.asteriskjava.live.internal.ChannelManager > INFO - Removing channel Local/301612355046@clickToCall-ddab,1 due to > hangup (NOTDEFINED) > 2008-06-12 12:25:58,608 > com.yaptele.clicktocall.spring.OriginateCallbackBean DEBUG - FAILURE > MESSAGE WAS %%%%%%%%%%%%%%%%%%%%%%%%%%%% Channel > 'Local/301612355046@clickToCall/n' is not available > 2008-06-12 12:25:58,608 org.asteriskjava.live.internal.ChannelManager > INFO - Removing channel Local/301612355046@clickToCall-ddab,2 due to > hangup (NOTDEFINED) > > > from asterisk CLI > == Everyone is busy/congested at this time (1:1/0/0) > == Auto fallthrough, channel > 'Local/301612355046@clickToCall-ddab,2' > status is 'BUSY' > > Channel Local/301612355046@clickToCall-ddab,1 was > never answered. > web0*CLI> > > > > > -------------------------------------------------------------- > ----------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Richard H. <ri...@ha...> - 2008-06-12 11:30:53
|
I'm using an asynchronous originateToExtensionAsync and the implementation of OriginateCallback i pass in has an onBusy method as well as an onFailure When i make the originate request, if the originating channel is busy, asterisk-java always hits the onFailure() method and never the onBusy() method. Can someone please tell me where I am going wrong? 2008-06-12 12:25:57,823 com.yaptele.clicktocall.asterisk.CallServiceImpl DEBUG - WE GOT A CDR EVENT ++++++++++++++ CHANNEL ID WAS: 1213270203.899 CHANNEL NAME WAS: Local/301612355046@clickToCall-ddab,2 2008-06-12 12:25:58,018 com.yaptele.rateEngine.RateEngine INFO - Total cost of calls was 0.0 2008-06-12 12:25:58,107 org.asteriskjava.live.internal.ChannelManager INFO - Adding channel Local/301612355046@clickToCall-ddab,2(1213270203.899) 2008-06-12 12:25:58,211 org.asteriskjava.live.internal.ChannelManager INFO - Adding channel IAX2/switch-893(1213270203.900) 2008-06-12 12:25:58,468 org.asteriskjava.live.internal.ChannelManager INFO - Local/301612355046@clickToCall-ddab,2 dialed IAX2/switch-893 2008-06-12 12:25:58,494 com.yaptele.clicktocall.asterisk.CallServiceImpl DEBUG - pollCallStatus() - Returning status Hungup 2008-06-12 12:25:58,607 org.asteriskjava.live.internal.ChannelManager INFO - Removing channel IAX2/switch-893 due to hangup (NOTDEFINED) 2008-06-12 12:25:58,608 org.asteriskjava.live.internal.ChannelManager INFO - Removing channel Local/301612355046@clickToCall-ddab,1 due to hangup (NOTDEFINED) 2008-06-12 12:25:58,608 com.yaptele.clicktocall.spring.OriginateCallbackBean DEBUG - FAILURE MESSAGE WAS %%%%%%%%%%%%%%%%%%%%%%%%%%%% Channel 'Local/301612355046@clickToCall/n' is not available 2008-06-12 12:25:58,608 org.asteriskjava.live.internal.ChannelManager INFO - Removing channel Local/301612355046@clickToCall-ddab,2 due to hangup (NOTDEFINED) from asterisk CLI == Everyone is busy/congested at this time (1:1/0/0) == Auto fallthrough, channel 'Local/301612355046@clickToCall-ddab,2' status is 'BUSY' > Channel Local/301612355046@clickToCall-ddab,1 was never answered. web0*CLI> |
From: Martin S. <ma...@be...> - 2008-06-11 18:07:52
|
Hey all, Is anyone using the Manager or Live APIs over JMS? I'd like to use it sort of like AstManProxy, i.e. bidirectionally, but I think that might take more than one JMS topic or queue. Is anyone doing this now in case they might be willing to share some insight or work? Thanks :) Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 |
From: Stefan R. <ste...@re...> - 2008-06-11 15:02:14
|
Hi, > I have the situation in my project that needs to run thread for > getting DTMF input dynamically. So I have created a new thread and > started it from "service" method of the class which extends > BaseAgiScript. But AGI commands are not worked in the thread class. I > got the exception as Generally it is not recommended to spawn your own threads for AGI scripts. If you still can't avoid it you can pass around the AgiChannel object and call its methods directly rather than using the corresponding methods of AgiScript. =Stefan |
From: Balaji C. <bal...@gm...> - 2008-06-11 13:28:21
|
Hi All, I have the situation in my project that needs to run thread for getting DTMF input dynamically. So I have created a new thread and started it from "service" method of the class which extends BaseAgiScript. But AGI commands are not worked in the thread class. I got the exception as Exception in thread "Thread-3" java.lang.IllegalStateException: Trying to send command from an invalid thread at org.asteriskjava.fastagi.AgiOperations.getChannel(AgiOperations.java:74) at org.asteriskjava.fastagi.AgiOperations.sayAlpha(AgiOperations.java:268) at HelloAgiScript$RecordingThread.run(HelloAgiScript.java:195) Can anyone tell whether this can be feasible or not?. How can I achieve the above situation? Thanking you well in advance, Regards, Balaji |
From: Andy B. <and...@pr...> - 2008-06-10 16:36:52
|
On 10/06/2008 17:22, Todd Fulton wrote: > Martin Smith wrote: > >> Those variables are channel variables to set on the resulting >> channel. They should be the same as anything you can set with the >> dialplan Set() or SetIf() statements. > > excellent. thank you!! Also you can add your own variables to the Map before oritinating the call and then retrieve them e.g. within a FastAGI script which is processing an IVR application. |
From: Todd F. <tod...@ya...> - 2008-06-10 16:22:23
|
<html><body>excellent. thank you!!<br><br><br>todd<br><br> <blockquote webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px;"> -------- Original Message --------<br> Subject: Re: [Asterisk-java-users] OriginateAction and variables<br> From: "Martin Smith" <<a href="mailto:martins@bebr.ufl">martins@bebr.ufl</a>.edu><br> Date: Tue, June 10, 2008 8:21 am<br> To: <<a href="mailto:ast...@li...urceforge">ast...@li...urceforge</a>.net><br> <br> <div dir="ltr" align="left"><span class="100102015-10062008"><font face="Arial" size="2">Hi Todd,</font></span></div> <div dir="ltr" align="left"><span class="100102015-10062008"><font face="Arial" size="2"></font></span> </div> <div dir="ltr" align="left"><span class="100102015-10062008"><font face="Arial" size="2">Those variables are channel variables to set on the resulting channel. They should be the same as anything you can set with the dialplan Set() or SetIf() statements. They aren't for originate action, but for the resulting channel.</font></span></div> <div dir="ltr" align="left"><span class="100102015-10062008"><font face="Arial" size="2"></font></span> </div> <div dir="ltr" align="left"><span class="100102015-10062008"><font face="Arial" size="2">Cheers,</font></span></div> <div> </div> <div align="left"><font size="2">Martin Smith, Systems Developer<br><a href="mailto:ma...@be...">ma...@be...</a><br>Bureau of Economic and Business Research<br>University of Florida<br>(352) 392-0171 Ext. 221</font> </div> <div> </div><br> <blockquote dir="ltr" style="border-left: 2px solid rgb(0, 0, 0); padding-left: 5px; margin-left: 5px; margin-right: 0px;"> <div class="OutlookMessageHeader" dir="ltr" align="left" lang="en-us"> <hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b> <a href="mailto:ast...@li...">ast...@li...</a> [<a href="mailto:ast...@li..." target="_blank" onclick="Popup.composeWindow('pcompose.php?sendto=asterisk-java-users-bounces%40lists.sourceforge.net');; return false;"><a href="mailto:ast...@li...">mailto:ast...@li...</a></a>] <b>On Behalf Of </b>Todd Fulton<br><b>Sent:</b> Tuesday, June 10, 2008 10:44 AM<br><b>To:</b> <a href="mailto:ast...@li...">ast...@li...</a><br><b>Subject:</b> [Asterisk-java-users] OriginateAction and variables<br></font><br></div> <div></div> <div>Hi,</div> <div> </div> <div>Does anyone know how I can figure out the list of possible variables to set on the OriginateAction? i.e. the method setVariables(java.util.Map vars)</div> <div> </div> <div>Any help would be greatly appreciated.</div> <div><span id="tempCursorPos"></span> </div> <div><span></span> </div> <div><span>Todd</span></div> <div><span></span> </div> <div> </div> <div> </div></blockquote> <hr>-------------------------------------------------------------------------<br> Check out the new <a href="http://SourceForge.net">SourceForge.net</a> Marketplace.<br> It's the best place to buy or sell services for<br> just about anything Open Source.<br> <a href="http://sourceforge.net/services/buy/index.php" target="_blank"><a href="http://sourceforge.net/services/buy/index.php">http://sourceforge.net/services/buy/index.php</a></a><hr>_______________________________________________<br> Asterisk-java-users mailing list<br> <a href="http://email.secureserver.net/pcompose.php#Compose" onclick="Popup.composeWindow('pcompose.php?sendto=Asterisk-java-users%40lists.sourceforge.net'); return false;">Asterisk-java-users<b></b>@lists.sourceforge.net</a><br> <a href="https://lists.sourceforge.net/lists/listinfo/asterisk-java-users" target="_blank"><a href="https://lists.sourceforge.net/lists/listinfo/asterisk-java-users">https://lists.sourceforge.net/lists/listinfo/asterisk-java-users</a></a><br> </blockquote></body></html> |
From: Martin S. <ma...@be...> - 2008-06-10 15:21:09
|
Hi Todd, Those variables are channel variables to set on the resulting channel. They should be the same as anything you can set with the dialplan Set() or SetIf() statements. They aren't for originate action, but for the resulting channel. Cheers, Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 ________________________________ From: ast...@li... [mailto:ast...@li...] On Behalf Of Todd Fulton Sent: Tuesday, June 10, 2008 10:44 AM To: ast...@li... Subject: [Asterisk-java-users] OriginateAction and variables Hi, Does anyone know how I can figure out the list of possible variables to set on the OriginateAction? i.e. the method setVariables(java.util.Map vars) Any help would be greatly appreciated. Todd |
From: Todd F. <tod...@ya...> - 2008-06-10 14:44:24
|
<html><body><div>Hi,</div> <div> </div> <div>Does anyone know how I can figure out the list of possible variables to set on the OriginateAction? i.e. the method setVariables(java.util.Map vars)</div> <div> </div> <div>Any help would be greatly appreciated.</div> <div><SPAN id=tempCursorPos></SPAN> </div> <div><SPAN></SPAN> </div> <div><SPAN>Todd</SPAN></div> <div><SPAN></SPAN> </div> <div> </div> <div> </div></body></html> |