asterisk-java-users Mailing List for Asterisk-Java Library (Page 109)
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: Martin S. <ma...@be...> - 2008-07-10 15:59:45
|
Hi Aaron, Good question. It appears that Asterisk Java's AgiConnectionHandler will set the AGISTATUS channel variable under the following conditions: 1. If the mapping strategy can't find the specified script to execute, AGISTATUS=NOT_FOUND 2. If the script throws an AgiException or class/subclass of Exception, AGISTATUS=FAILED 3. If the script completes without throwing any exception, AGISTATUS=SUCCESS Keep in mind that if the channel, say, disconnects entirely (you pull an ethernet plug), Asterisk-Java won't be able to set anything. Most of my scripts are data-driven, in that they look things up or compute information that Asterisk can't, usually related to permissions. Most of my error cases simply have Asterisk play the same sound file as if the user failed the check. If I were doing something more elaborate, I'd almost certainly catch more than just checked exceptions, log them, and wrap them in an AgiException, since I would want a null pointer error to be handled gracefully too. 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 Aaron Evans > Sent: Thursday, July 10, 2008 10:49 AM > To: ast...@li... > Subject: [Asterisk-java-users] Error Handling with FastAGI > > With asterisk 1.4 and above, there is a channel variable AGISTATUS > that can be set to SUCCESS or FAILURE to indicate whether the AGI > execution was successful. > > In asterisk-java, there is an AgiException class that can be thrown > from the service method of an AgiScript implementation. > > Question: If I throw an AgiException, does the server handle setting > the AGISTATUS variable? > > Or should I gracefully handle all exceptions and execution errors and > set the channel variable myself? > > What do most people do? > > Thanks in advance for your suggestions... > > -------------------------------------------------------------- > ----------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Aaron E. <aar...@gm...> - 2008-07-10 14:48:26
|
With asterisk 1.4 and above, there is a channel variable AGISTATUS that can be set to SUCCESS or FAILURE to indicate whether the AGI execution was successful. In asterisk-java, there is an AgiException class that can be thrown from the service method of an AgiScript implementation. Question: If I throw an AgiException, does the server handle setting the AGISTATUS variable? Or should I gracefully handle all exceptions and execution errors and set the channel variable myself? What do most people do? Thanks in advance for your suggestions... |
From: Gopal k. <sa...@gm...> - 2008-07-10 11:49:53
|
Hi, How to transfer a established call to another idle extension. I tried redirectAction, but nothing effects. Any help would be appreciated. thanks -- Thank you with regards, Gopal, PeopleTech Systems Private Limited www.peopletech.co.in |
From: preetha A. <pre...@gm...> - 2008-07-08 10:24:26
|
Hi, How can the attended calls can be transfered to another extension and also put in hold via manager api?Is it possible to do these via manager api? Thanks -- Preetha.A |
From: Gabriel B. <elg...@gm...> - 2008-07-03 21:36:12
|
Hi list, Here is my problem, I register my AsteriskServerListener and receive through the onNewAsteriskChannel() method all the new channels without a problem. I always receive two new channels, a "dialing channel" and a "dialed channel", one after the other. The thing is that when I hang up the "dialing channel" the "dialed channel" doesn't hangs up too, so the call keeps on going. I hang up the channel right from the start, search in a database by the caller id number if the line can make the call and if not I hang up the channel. Do you have any idea why this is happening Regards, |
From: Gabriel B. <elg...@gm...> - 2008-07-03 21:35:25
|
Hi list, Here is my problem, I register my AsteriskServerListener and receive through the onNewAsteriskChannel() method all the new channels without a problem. I always receive two new channels, a "dialing channel" and a "dialed channel", one after the other. The thing is that when I hang up the "dialing channel" the "dialed channel" doesn't hangs up too, so the call keeps on going. I hang up the channel right from the start, search in a database by the caller id number if the line can make the call and if not I hang up the channel. Do you have any idea why this is happening Regards, |
From: Aaron E. <aar...@gm...> - 2008-07-03 17:39:39
|
No, I don't. But let me do some more testing tonight to be sure that this is in fact the case and see what else I can figure out. But at least I know that I'm using the correct API calls as they were desgined. I'll get back to you when I know more... thanks, aaron On Thu, Jul 3, 2008 at 1:00 PM, Stefan Reuter <ste...@re...> wrote: > Aaron, > > sending the logoff action to Asterisk should cause Asterisk to close the > connection. It seems that's not happening... do you see why? > > =Stefan > > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: Stefan R. <ste...@re...> - 2008-07-03 17:01:08
|
Aaron, sending the logoff action to Asterisk should cause Asterisk to close the connection. It seems that's not happening... do you see why? =Stefan |
From: Aaron E. <aar...@gm...> - 2008-07-03 16:04:39
|
Shouldn't the logoff method of any implementation of the ManagerConnection interface also close the socket? I'm uising a ManagerConnectionFactory to create connections to asterisk, logging in and then doing something and then in a finally, calling logoff. This is in a tomcat environment so there is no JVM exit and it seems on the server that there are still open connections to the asterisk server on 5038. Am I missing something? I see that ManagerConnectionImpl has a disconnect method to close the socket but this method is not exposed in the API. any help would be appreciated. thanks, aaron |
From: Gopal k. <sa...@gm...> - 2008-07-03 12:50:42
|
Hi, I would like to do a voice broadcasting with asterisk java. where a manager api program will fetch phone numbers from database and it will dial automatically. when call connected a recorded message has to be played based on the user input the ivr will be played. I am trying with originate action, but the problem i am facing is in originate action with set channel we need to give a channel name where if we run the program it will dial the channel first after picking up the channel the outbound number will be dialed. instead of that the channel has to be set automatically and the number has to dial automatically. any help would be appreciated. thanks -- Thank you with regards, Gopal, PeopleTech Systems Private Limited www.peopletech.co.in |
From: Thameem A. <tha...@ya...> - 2008-07-02 15:45:05
|
As per DeadAgi behaviour, asterisk will not hangup the call and its the agi scripts responsibility to hangup the call. -Thameem --- On Wed, 7/2/08, Maciek Tokarski <mlo...@gm...> wrote: From: Maciek Tokarski <mlo...@gm...> Subject: Re: [Asterisk-java-users] never hangsup agi php To: ast...@li... Date: Wednesday, July 2, 2008, 1:49 AM I think this is not right list to question about php-agi but while you are about it.... I have the same problem, I use DeadAgi via FastAgi and i mentioned taht some response to Agi commands do not reach FastAgi server. I think that is the problem with Asterisk's implemantation. Cheers, Maciek 2008/7/2 chetherston miles <mil...@gm...>: Hello, I created an php-agi script to call using dial command (SIP/destination@provider|60|HRrL(132532000:61000:30000)), for some reason when leg2 is disconnected the asterisk still waiting and don't hangsup only when leg1 is disconnected? Someone have experienced something like this? Thanks, ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users -- Pozdrawiam Maciek Tokarski ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08_______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Maciek T. <mlo...@gm...> - 2008-07-02 08:49:05
|
I think this is not right list to question about php-agi but while you are about it.... I have the same problem, I use DeadAgi via FastAgi and i mentioned taht some response to Agi commands do not reach FastAgi server. I think that is the problem with Asterisk's implemantation. Cheers, Maciek 2008/7/2 chetherston miles <mil...@gm...>: > Hello, > > I created an php-agi script to call using dial command > (SIP/destination@provider|60|HRrL(132532000:61000:30000)), for some reason > when leg2 is disconnected the asterisk still waiting and don't hangsup only > when leg1 is disconnected? > > Someone have experienced something like this? > > Thanks, > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- Pozdrawiam Maciek Tokarski |
From: chetherston m. <mil...@gm...> - 2008-07-02 02:38:45
|
Hello, I created an php-agi script to call using dial command (SIP/destination@provider|60|HRrL(132532000:61000:30000)), for some reason when leg2 is disconnected the asterisk still waiting and don't hangsup only when leg1 is disconnected? Someone have experienced something like this? Thanks, |
From: Eric W. <eri...@gm...> - 2008-07-01 21:03:03
|
I'm working on the logs. It seems as though the Asterisk server is dropping the connection from my server app. The clients remain connected to my app, but my server is no longer connected to Asterisk to send/receive Actions/Events, etc. We had this problem with HudLite which is why I was tasked with building this app server, but it's looking more and more like it could be a problem with the asterisk server itself. Something else funny. I was running this app ON the asterisk server box along side asterisk. So it was connecting to localhost on port 5038. The app would lose it's connection after about 2 to 3 hours and not try to reconnect. I have been running the same app on my work pc connecting to asterisk remotely and it's been running since 10:30am Eastern this morning. It reconnects periodically, but it is not completely losing the connection and sitting in limbo. I can't explain it. Thanks again for all your responses. On Tue, Jul 1, 2008 at 4:50 PM, Martin Smith <ma...@be...> wrote: > Hi Eric, > > > > The situation seems to be that your clients are getting disconnected from > your server application, which in turn talks to Asterisk-Java. I was asking > if your server application would tell your clients about Asterisk-Java > problems/events, or just silently eat them, with the client never knowing. > Either way, logs would be really helpful before I could help more. > > > > Martin > > > ------------------------------ > > *From:* ast...@li... [mailto: > ast...@li...] *On Behalf Of *Eric > Windham > *Sent:* Tuesday, July 01, 2008 4:31 PM > > *To:* ast...@li... > *Subject:* Re: [Asterisk-java-users] Losing connection to Asterisk Manager > API > > > > Thanks Martin > > I'm looking into this now. > > I'm not sure I understand your statement about my app not handing out every > possible event that Asterisk-Java can throw. My proxy is using the > asterisk-java package to connect to the Asterisk Manager and get events. Am > I doing this wrong? > > > On Tue, Jul 1, 2008 at 4:12 PM, Martin Smith <ma...@be...> > wrote: > > Hi Eric, > > Yes, it has built in logging -- see "How do I disable the debug or "INFO" > output from asterisk-java?" at > http://asterisk-java.org/development/faq.html. That should explain how you > can turn more logging on as well. The logging info may be going to > where-ever your server application has configured System.out to be. > > Asterisk-Java's Manager connection starts a thread for pinging the > connection, so I'd have to guess that you're actually hitting a problem on > your server application. 'Broken pipe' shouldn't have anything to do with > Asterisk-Java, unless the JVM itself is crashing (which I doubt, as it > crashes with a crash dump to a text file). > > If you're actually using your application as a proxy <--> Asterisk-Java > <--> Asterisk, you may want to consider that your application isn't handing > out every possible event that Asterisk-Java can throw. Either way, without a > lot more of your source code or software, or a log from A-J (preferably >= > debug level), or a capture of the conversation, I can't really propose what > else it might be that you're running into. > > Good luck, > > > 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: Tuesday, July 01, 2008 11:11 AM > > To: ast...@li... > > Subject: Re: [Asterisk-java-users] Losing connection to Asterisk Manager > API > > > Does Asterisk-Java having built in logging? Or is this something I need to > add myself? > > The only thing I'm seeing is in the actual asterisk logs. I'm connecting > to asterisk manager api with a specific user, so I check the logs for when > that user logs on. > > As for my server app, I'm using the Live api and the app runs great for > about 45 minutes to an hour and then it just stops. It doesn't tell me it's > disconnected or anything. The clients connected to it think it's still > connected. Only when I try to connect a new client, the server will throw a > 'Broken Pipe' error. > > > On Tue, Jul 1, 2008 at 11:03 AM, Martin Smith <ma...@be...> > wrote: > Hi Eric, > > Do you have any logs from Asterisk-Java when this reconnect happens? That > is the most definitive way to see what's going on. If you're running a > non-current version of Asterisk, you might also want to take note that some > versions in the past allowed manager connections *before* important things > like pbx.c were even loaded, making it impossible for Asterisk-Java to > determine what version of Asterisk it has connected to, and also making it > impossible to perform almost any operation, for a second or so. > > I'm not familiar with TrixBox, but if this setup involves modifications to > Asterisk itself (as TrixBox usually does -- not sure about HudLite), you may > also be having problems with Asterisk-Java determining the version because > of that. > > Either way, some logs when it happens are your best bet. And unless you > have hundreds of events per second in the PBX, Asterisk-Java and Java > shouldn't be hogging much CPU. > > 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: Tuesday, July 01, 2008 10:58 AM > To: ast...@li... > Subject: [Asterisk-java-users] Losing connection to Asterisk Manager API > Hi all, > > My company has been using the Trixbox HudLite server to connect a client > app to and get info about the asterisk server. However, the HudLite server > seems to lose it's connection to the Manager API quite frequently making the > client app software work incorrectly(callerid, screenpops, etc.) > > So I built a small java server app that connects to the Manager API through > asterisk-java and allows a new client app(similar to the old one). This > server app seems to be losing it connections to the Manager API also. The > asteriskDefaultServer does not seem to be reconnecting and we're also > noticing that the java process seems to be eating up a lot of the cpu. > > Is anyone else having this problem? Is there a way to ensure a reconnect? > And is java that much of a cpu hog? > > > -- > ------------------------------------------------------------ > 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 > > > > -- > ------------------------------------------------------------ > Eric Windham > ------------------------------------------------------------ > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > -- > ------------------------------------------------------------ > Eric Windham > ------------------------------------------------------------ > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- ------------------------------------------------------------ Eric Windham ------------------------------------------------------------ |
From: Martin S. <ma...@be...> - 2008-07-01 20:50:44
|
Hi Eric, The situation seems to be that your clients are getting disconnected from your server application, which in turn talks to Asterisk-Java. I was asking if your server application would tell your clients about Asterisk-Java problems/events, or just silently eat them, with the client never knowing. Either way, logs would be really helpful before I could help more. Martin ________________________________ From: ast...@li... [mailto:ast...@li...] On Behalf Of Eric Windham Sent: Tuesday, July 01, 2008 4:31 PM To: ast...@li... Subject: Re: [Asterisk-java-users] Losing connection to Asterisk Manager API Thanks Martin I'm looking into this now. I'm not sure I understand your statement about my app not handing out every possible event that Asterisk-Java can throw. My proxy is using the asterisk-java package to connect to the Asterisk Manager and get events. Am I doing this wrong? On Tue, Jul 1, 2008 at 4:12 PM, Martin Smith <ma...@be...> wrote: Hi Eric, Yes, it has built in logging -- see "How do I disable the debug or "INFO" output from asterisk-java?" at http://asterisk-java.org/development/faq.html. That should explain how you can turn more logging on as well. The logging info may be going to where-ever your server application has configured System.out to be. Asterisk-Java's Manager connection starts a thread for pinging the connection, so I'd have to guess that you're actually hitting a problem on your server application. 'Broken pipe' shouldn't have anything to do with Asterisk-Java, unless the JVM itself is crashing (which I doubt, as it crashes with a crash dump to a text file). If you're actually using your application as a proxy <--> Asterisk-Java <--> Asterisk, you may want to consider that your application isn't handing out every possible event that Asterisk-Java can throw. Either way, without a lot more of your source code or software, or a log from A-J (preferably >= debug level), or a capture of the conversation, I can't really propose what else it might be that you're running into. Good luck, 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: Tuesday, July 01, 2008 11:11 AM To: ast...@li... Subject: Re: [Asterisk-java-users] Losing connection to Asterisk Manager API Does Asterisk-Java having built in logging? Or is this something I need to add myself? The only thing I'm seeing is in the actual asterisk logs. I'm connecting to asterisk manager api with a specific user, so I check the logs for when that user logs on. As for my server app, I'm using the Live api and the app runs great for about 45 minutes to an hour and then it just stops. It doesn't tell me it's disconnected or anything. The clients connected to it think it's still connected. Only when I try to connect a new client, the server will throw a 'Broken Pipe' error. On Tue, Jul 1, 2008 at 11:03 AM, Martin Smith <ma...@be...> wrote: Hi Eric, Do you have any logs from Asterisk-Java when this reconnect happens? That is the most definitive way to see what's going on. If you're running a non-current version of Asterisk, you might also want to take note that some versions in the past allowed manager connections *before* important things like pbx.c were even loaded, making it impossible for Asterisk-Java to determine what version of Asterisk it has connected to, and also making it impossible to perform almost any operation, for a second or so. I'm not familiar with TrixBox, but if this setup involves modifications to Asterisk itself (as TrixBox usually does -- not sure about HudLite), you may also be having problems with Asterisk-Java determining the version because of that. Either way, some logs when it happens are your best bet. And unless you have hundreds of events per second in the PBX, Asterisk-Java and Java shouldn't be hogging much CPU. 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: Tuesday, July 01, 2008 10:58 AM To: ast...@li... Subject: [Asterisk-java-users] Losing connection to Asterisk Manager API Hi all, My company has been using the Trixbox HudLite server to connect a client app to and get info about the asterisk server. However, the HudLite server seems to lose it's connection to the Manager API quite frequently making the client app software work incorrectly(callerid, screenpops, etc.) So I built a small java server app that connects to the Manager API through asterisk-java and allows a new client app(similar to the old one). This server app seems to be losing it connections to the Manager API also. The asteriskDefaultServer does not seem to be reconnecting and we're also noticing that the java process seems to be eating up a lot of the cpu. Is anyone else having this problem? Is there a way to ensure a reconnect? And is java that much of a cpu hog? -- ------------------------------------------------------------ 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 -- ------------------------------------------------------------ Eric Windham ------------------------------------------------------------ ------------------------------------------------------------------------ - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users -- ------------------------------------------------------------ Eric Windham ------------------------------------------------------------ |
From: Eric W. <eri...@gm...> - 2008-07-01 20:31:07
|
Thanks Martin I'm looking into this now. I'm not sure I understand your statement about my app not handing out every possible event that Asterisk-Java can throw. My proxy is using the asterisk-java package to connect to the Asterisk Manager and get events. Am I doing this wrong? On Tue, Jul 1, 2008 at 4:12 PM, Martin Smith <ma...@be...> wrote: > Hi Eric, > > Yes, it has built in logging -- see "How do I disable the debug or "INFO" > output from asterisk-java?" at > http://asterisk-java.org/development/faq.html. That should explain how you > can turn more logging on as well. The logging info may be going to > where-ever your server application has configured System.out to be. > > Asterisk-Java's Manager connection starts a thread for pinging the > connection, so I'd have to guess that you're actually hitting a problem on > your server application. 'Broken pipe' shouldn't have anything to do with > Asterisk-Java, unless the JVM itself is crashing (which I doubt, as it > crashes with a crash dump to a text file). > > If you're actually using your application as a proxy <--> Asterisk-Java > <--> Asterisk, you may want to consider that your application isn't handing > out every possible event that Asterisk-Java can throw. Either way, without a > lot more of your source code or software, or a log from A-J (preferably >= > debug level), or a capture of the conversation, I can't really propose what > else it might be that you're running into. > > Good luck, > > 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: Tuesday, July 01, 2008 11:11 AM > To: ast...@li... > Subject: Re: [Asterisk-java-users] Losing connection to Asterisk Manager > API > > Does Asterisk-Java having built in logging? Or is this something I need to > add myself? > > The only thing I'm seeing is in the actual asterisk logs. I'm connecting > to asterisk manager api with a specific user, so I check the logs for when > that user logs on. > > As for my server app, I'm using the Live api and the app runs great for > about 45 minutes to an hour and then it just stops. It doesn't tell me it's > disconnected or anything. The clients connected to it think it's still > connected. Only when I try to connect a new client, the server will throw a > 'Broken Pipe' error. > > > On Tue, Jul 1, 2008 at 11:03 AM, Martin Smith <ma...@be...> > wrote: > Hi Eric, > > Do you have any logs from Asterisk-Java when this reconnect happens? That > is the most definitive way to see what's going on. If you're running a > non-current version of Asterisk, you might also want to take note that some > versions in the past allowed manager connections *before* important things > like pbx.c were even loaded, making it impossible for Asterisk-Java to > determine what version of Asterisk it has connected to, and also making it > impossible to perform almost any operation, for a second or so. > > I'm not familiar with TrixBox, but if this setup involves modifications to > Asterisk itself (as TrixBox usually does -- not sure about HudLite), you may > also be having problems with Asterisk-Java determining the version because > of that. > > Either way, some logs when it happens are your best bet. And unless you > have hundreds of events per second in the PBX, Asterisk-Java and Java > shouldn't be hogging much CPU. > > 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: Tuesday, July 01, 2008 10:58 AM > To: ast...@li... > Subject: [Asterisk-java-users] Losing connection to Asterisk Manager API > Hi all, > > My company has been using the Trixbox HudLite server to connect a client > app to and get info about the asterisk server. However, the HudLite server > seems to lose it's connection to the Manager API quite frequently making the > client app software work incorrectly(callerid, screenpops, etc.) > > So I built a small java server app that connects to the Manager API through > asterisk-java and allows a new client app(similar to the old one). This > server app seems to be losing it connections to the Manager API also. The > asteriskDefaultServer does not seem to be reconnecting and we're also > noticing that the java process seems to be eating up a lot of the cpu. > > Is anyone else having this problem? Is there a way to ensure a reconnect? > And is java that much of a cpu hog? > > > -- > ------------------------------------------------------------ > 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 > > > > -- > ------------------------------------------------------------ > Eric Windham > ------------------------------------------------------------ > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > -- ------------------------------------------------------------ Eric Windham ------------------------------------------------------------ |
From: Martin S. <ma...@be...> - 2008-07-01 20:12:32
|
Hi Eric, Yes, it has built in logging -- see "How do I disable the debug or "INFO" output from asterisk-java?" at http://asterisk-java.org/development/faq.html. That should explain how you can turn more logging on as well. The logging info may be going to where-ever your server application has configured System.out to be. Asterisk-Java's Manager connection starts a thread for pinging the connection, so I'd have to guess that you're actually hitting a problem on your server application. 'Broken pipe' shouldn't have anything to do with Asterisk-Java, unless the JVM itself is crashing (which I doubt, as it crashes with a crash dump to a text file). If you're actually using your application as a proxy <--> Asterisk-Java <--> Asterisk, you may want to consider that your application isn't handing out every possible event that Asterisk-Java can throw. Either way, without a lot more of your source code or software, or a log from A-J (preferably >= debug level), or a capture of the conversation, I can't really propose what else it might be that you're running into. Good luck, 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: Tuesday, July 01, 2008 11:11 AM To: ast...@li... Subject: Re: [Asterisk-java-users] Losing connection to Asterisk Manager API Does Asterisk-Java having built in logging? Or is this something I need to add myself? The only thing I'm seeing is in the actual asterisk logs. I'm connecting to asterisk manager api with a specific user, so I check the logs for when that user logs on. As for my server app, I'm using the Live api and the app runs great for about 45 minutes to an hour and then it just stops. It doesn't tell me it's disconnected or anything. The clients connected to it think it's still connected. Only when I try to connect a new client, the server will throw a 'Broken Pipe' error. On Tue, Jul 1, 2008 at 11:03 AM, Martin Smith <ma...@be...> wrote: Hi Eric, Do you have any logs from Asterisk-Java when this reconnect happens? That is the most definitive way to see what's going on. If you're running a non-current version of Asterisk, you might also want to take note that some versions in the past allowed manager connections *before* important things like pbx.c were even loaded, making it impossible for Asterisk-Java to determine what version of Asterisk it has connected to, and also making it impossible to perform almost any operation, for a second or so. I'm not familiar with TrixBox, but if this setup involves modifications to Asterisk itself (as TrixBox usually does -- not sure about HudLite), you may also be having problems with Asterisk-Java determining the version because of that. Either way, some logs when it happens are your best bet. And unless you have hundreds of events per second in the PBX, Asterisk-Java and Java shouldn't be hogging much CPU. 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: Tuesday, July 01, 2008 10:58 AM To: ast...@li... Subject: [Asterisk-java-users] Losing connection to Asterisk Manager API Hi all, My company has been using the Trixbox HudLite server to connect a client app to and get info about the asterisk server. However, the HudLite server seems to lose it's connection to the Manager API quite frequently making the client app software work incorrectly(callerid, screenpops, etc.) So I built a small java server app that connects to the Manager API through asterisk-java and allows a new client app(similar to the old one). This server app seems to be losing it connections to the Manager API also. The asteriskDefaultServer does not seem to be reconnecting and we're also noticing that the java process seems to be eating up a lot of the cpu. Is anyone else having this problem? Is there a way to ensure a reconnect? And is java that much of a cpu hog? -- ------------------------------------------------------------ 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 -- ------------------------------------------------------------ Eric Windham ------------------------------------------------------------ |
From: Thameem A. <tha...@ya...> - 2008-07-01 18:11:19
|
Actually if you are using asterisk 1.4 and using "AGI" to call your agi server script then if a remote party hangsup this exception will occur. The reason is, in asterisk 1.4 they changed the behaviour of not continuing the script even though the remote channel hungup. This is the default behaviour till asterisk 1.2.14 (i believe). If you use DEADAGI to call your agi script even remote party hangsup your script will continue and you will have all the parameters from agi channel. But using DeadAgi on a live channel is not recommended warning will popup in asterisk CLI but you can ignore it. Don't be happy... the DeadAgi will be deprecated and removed in 1.6 so we will have to find alternate way to fix this issue. Most people will calculate the cdr after dial status is returned and if they use 1.4 and the remote party hangsup please be aware that your cdr records will not be there as asterisk removes everything associated to that channel and terminate the script. This is a big change in asterisk 1.4 onwards and everyone should be aware of this. The alternate way is to write a manager script which will only listen for cdr events and update the cdr once the call is completed. You can set cdr custom parameters from agi script and calculate the cost etc in the cdr listener. This way, you don't need to worry about asterisk behaviour. Thanks, Thameem --- On Wed, 5/21/08, Stefan Reuter <ste...@re...> wrote: From: Stefan Reuter <ste...@re...> Subject: Re: [Asterisk-java-users] How to handle this exception? To: ast...@li... Date: Wednesday, May 21, 2008, 2:06 AM preetha Ayyappan wrote: > In Agiscript,I am using for loop to play a streamfile until the call is > picked up by the extension.But when remote party hangs up the call,I am > getting the following error continuously.Is there anyway asterisk java > can handle that exception and end the agiscript. No, this is the responsibility of your code, you should wrap the calls to streamfile with a try/catch and handle the exception, if you don't it will show up in the logs. =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... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Eric W. <eri...@gm...> - 2008-07-01 15:11:06
|
Does Asterisk-Java having built in logging? Or is this something I need to add myself? The only thing I'm seeing is in the actual asterisk logs. I'm connecting to asterisk manager api with a specific user, so I check the logs for when that user logs on. As for my server app, I'm using the Live api and the app runs great for about 45 minutes to an hour and then it just stops. It doesn't tell me it's disconnected or anything. The clients connected to it think it's still connected. Only when I try to connect a new client, the server will throw a 'Broken Pipe' error. On Tue, Jul 1, 2008 at 11:03 AM, Martin Smith <ma...@be...> wrote: > Hi Eric, > > Do you have any logs from Asterisk-Java when this reconnect happens? That > is the most definitive way to see what's going on. If you're running a > non-current version of Asterisk, you might also want to take note that some > versions in the past allowed manager connections *before* important things > like pbx.c were even loaded, making it impossible for Asterisk-Java to > determine what version of Asterisk it has connected to, and also making it > impossible to perform almost any operation, for a second or so. > > I'm not familiar with TrixBox, but if this setup involves modifications to > Asterisk itself (as TrixBox usually does -- not sure about HudLite), you may > also be having problems with Asterisk-Java determining the version because > of that. > > Either way, some logs when it happens are your best bet. And unless you > have hundreds of events per second in the PBX, Asterisk-Java and Java > shouldn't be hogging much CPU. > > 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:* Tuesday, July 01, 2008 10:58 AM > *To:* ast...@li... > *Subject:* [Asterisk-java-users] Losing connection to Asterisk Manager API > > Hi all, > > My company has been using the Trixbox HudLite server to connect a client > app to and get info about the asterisk server. However, the HudLite server > seems to lose it's connection to the Manager API quite frequently making the > client app software work incorrectly(callerid, screenpops, etc.) > > So I built a small java server app that connects to the Manager API through > asterisk-java and allows a new client app(similar to the old one). This > server app seems to be losing it connections to the Manager API also. The > asteriskDefaultServer does not seem to be reconnecting and we're also > noticing that the java process seems to be eating up a lot of the cpu. > > Is anyone else having this problem? Is there a way to ensure a reconnect? > And is java that much of a cpu hog? > > > -- > ------------------------------------------------------------ > 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 > > -- ------------------------------------------------------------ Eric Windham ------------------------------------------------------------ |
From: Martin S. <ma...@be...> - 2008-07-01 15:03:55
|
Hi Eric, Do you have any logs from Asterisk-Java when this reconnect happens? That is the most definitive way to see what's going on. If you're running a non-current version of Asterisk, you might also want to take note that some versions in the past allowed manager connections *before* important things like pbx.c were even loaded, making it impossible for Asterisk-Java to determine what version of Asterisk it has connected to, and also making it impossible to perform almost any operation, for a second or so. I'm not familiar with TrixBox, but if this setup involves modifications to Asterisk itself (as TrixBox usually does -- not sure about HudLite), you may also be having problems with Asterisk-Java determining the version because of that. Either way, some logs when it happens are your best bet. And unless you have hundreds of events per second in the PBX, Asterisk-Java and Java shouldn't be hogging much CPU. 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: Tuesday, July 01, 2008 10:58 AM To: ast...@li... Subject: [Asterisk-java-users] Losing connection to Asterisk Manager API Hi all, My company has been using the Trixbox HudLite server to connect a client app to and get info about the asterisk server. However, the HudLite server seems to lose it's connection to the Manager API quite frequently making the client app software work incorrectly(callerid, screenpops, etc.) So I built a small java server app that connects to the Manager API through asterisk-java and allows a new client app(similar to the old one). This server app seems to be losing it connections to the Manager API also. The asteriskDefaultServer does not seem to be reconnecting and we're also noticing that the java process seems to be eating up a lot of the cpu. Is anyone else having this problem? Is there a way to ensure a reconnect? And is java that much of a cpu hog? -- ------------------------------------------------------------ Eric Windham ------------------------------------------------------------ |
From: Eric W. <eri...@gm...> - 2008-07-01 14:57:32
|
Hi all, My company has been using the Trixbox HudLite server to connect a client app to and get info about the asterisk server. However, the HudLite server seems to lose it's connection to the Manager API quite frequently making the client app software work incorrectly(callerid, screenpops, etc.) So I built a small java server app that connects to the Manager API through asterisk-java and allows a new client app(similar to the old one). This server app seems to be losing it connections to the Manager API also. The asteriskDefaultServer does not seem to be reconnecting and we're also noticing that the java process seems to be eating up a lot of the cpu. Is anyone else having this problem? Is there a way to ensure a reconnect? And is java that much of a cpu hog? -- ------------------------------------------------------------ Eric Windham ------------------------------------------------------------ |
From: Martin S. <ma...@be...> - 2008-06-30 13:17:28
|
Hi Savante, You should be packaging those files with whatever archive you're deploying onto JBoss. You can usually get away with putting non-class files that need to be read by your application inside the archive as well, though you may also be able to put them inside the conf/ directory for JBoss. Your archive does in the deployment directory. If this is the *only* thing you're using JBoss for, you might as well run the Agi server yourself with the DefaultAgiServer class. Otherwise, package your files with the other files you're giving JBoss :) 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: Sunday, June 29, 2008 7:38 AM > To: ast...@li... > Subject: [Asterisk-java-users] JBoss CLASSPATH > > Hi again, > > So here's a follow-up question on Jboss. > I got the server running with the MBean and it's listening to > connections and everything is great. > Except that I really can't figure out how to package the mapping-file > and the script classfile so that the server finds them. > I think I've tried just about all kinds of combinations, including > changing the actual CLASSPATH in Jboss (yea I know, you shouldn't do > that...) > > So. Where does the server MBean look for the mapping and script when > running inside JBoss? > > 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-29 11:37:29
|
Hi again, So here's a follow-up question on Jboss. I got the server running with the MBean and it's listening to connections and everything is great. Except that I really can't figure out how to package the mapping-file and the script classfile so that the server finds them. I think I've tried just about all kinds of combinations, including changing the actual CLASSPATH in Jboss (yea I know, you shouldn't do that...) So. Where does the server MBean look for the mapping and script when running inside JBoss? Best regards, Svante Paldan |
From: Hakan L. <di...@gm...> - 2008-06-28 17:29:10
|
Hi, Ok, I see! But I was under the impression that I could implement a fully dynamic dialplan in java... But you suggestion should be do the job. Thank you. Hakan 2008/6/28 Maciek Tokarski <mlo...@gm...>: > Hi, > > So here is the problem..:) > > Ok, first you have to set some extensions in dialplan, for example: > > [auto-dial-context] > > exten=> incoming,1,Answer > > exten=> incoming,2,Playback(some-prompt) > > exten=> incoming,3,Read(USER_DIGITS,beep,10) ;see > http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Read > > exten=> incoming,4,Hangup() > > > > Next you have to originate call and tell Asterisk that he should place it > on your extension incoming @ context auto-dial-context, so java code may be: > > > > OriginateAction oa=new OriginateAction(); > > oa.setChannel("SIP/*your_sip_provider*/*telephone_number);* > > oa.setContext("auto-dial-context"); > > oa.setExten("incoming"); > > oa.setPriority(1); > > oa.setTimeout(30000); > > > > Then you have to send action via manager connection and capture its result > (OriginateAction is EventGeneratingAction) > > And that should be enough to fulfill your case > > > > Cheers, Maciek > ------------------------------ > > *From:* ast...@li... [mailto: > ast...@li...] *On Behalf Of *Hakan > Lager > *Sent:* Saturday, June 28, 2008 6:57 PM > *To:* ast...@li... > *Subject:* Re: [Asterisk-java-users] Auto-dial > > > > 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 > > > > ------------------------------------------------------------------------- > 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 17:15:47
|
Hi, So here is the problem..:) Ok, first you have to set some extensions in dialplan, for example: [auto-dial-context] exten=> incoming,1,Answer exten=> incoming,2,Playback(some-prompt) exten=> incoming,3,Read(USER_DIGITS,beep,10) ;see http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Read exten=> incoming,4,Hangup() Next you have to originate call and tell Asterisk that he should place it on your extension incoming @ context auto-dial-context, so java code may be: OriginateAction oa=new OriginateAction(); oa.setChannel("SIP/your_sip_provider/telephone_number); oa.setContext("auto-dial-context"); oa.setExten("incoming"); oa.setPriority(1); oa.setTimeout(30000); Then you have to send action via manager connection and capture its result (OriginateAction is EventGeneratingAction) And that should be enough to fulfill your case Cheers, Maciek _____ From: ast...@li... [mailto:ast...@li...] On Behalf Of Hakan Lager Sent: Saturday, June 28, 2008 6:57 PM To: ast...@li... Subject: Re: [Asterisk-java-users] Auto-dial 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/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 ;-) ------------------------------------------------------------------------- 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 |