RE: [Asterisk-java-users] originate call without picking up the fone?!
Brought to you by:
srt
From: Jason W. <jas...@be...> - 2006-02-14 15:39:14
|
In my testing, when I send an originate action, asterisk returns a response=error immediately when the line is busy and a response=success as soon as it starts riging. I think, from what you're saying, that your best solution is to originate the first call, and if response=success, you can originate a second call, and then put them both into a conference room on answer. (put them into a conference room using extensions, not java actions) also, the consise list of java actions is listed at: http://asterisk-java.sourceforge.net/apidocs/index.html Check out my earlier post about using Ethereal to view what communication is happening at the TCP/IP level.... John, I did a couple of things to make sure I was making the most of events... You might find it useful to try the following... 1. Use a program like Ethereal to sniff packets being recieved by your server running Manager. This way you see exactly what you're getting. You can filter to only show packets from the asterisk machine, and then you can do a test of the situation that you want to capture and see if asterisk is telling you what you need. 2. Look into 'user defined events' http://www.voip-info.org/wiki/view/Asterisk+cmd+UserEvent 3. grep on the entire asterisk directory for the currently generated events, I'm sure what your looking for would be in in channel.c if it exists, or trust the list at http://www.voip-info.org/wiki/view/asterisk+manager+events 4. if you look at the source for asterisk, you'll see that it's not hard to add events right in the source code and recompile if it's mission critical. 5. as well, Stefan did a great job of laying out Asterisk-java, so you could download the source and add a class for your handler if you create one. Hope this helps. Jason -----Original Message----- From: ast...@li... [mailto:ast...@li...]On Behalf Of Arnd Vehling Sent: Tuesday, February 14, 2006 9:06 AM To: ast...@li... Subject: Re: [Asterisk-java-users] originate call without picking up the fone?! Hell Jason, thx for the reply! > Perhaps a little explanation will help you here as I think you might have a > slight misunderstanding of what is happening. > > When you 'originate' a call using the asterisk manager, you are sending an > 'originate action' request to the asterisk server, we are using the asterisk java 2.0 API and the "OriginateAction" Class to establish the call. I have to admit i am not the programmer but posting here on his behalf so i dont understand all the jave API centric concepts fully. Simple Question: Is is possible to solve the problem with existing java-classes or do we need to get down to protocol level and issue actions ourselves?! > It sounds like you want to originate call_A using originateAciton in > Manager, and then, if answered and not busy, use dial() in entensions to > connect to the end user, so when they pickup, they're already connected. We want either this or connect to the enduser when the "other side" is "ringing" and not "busy". We only want the user to pickup the fone if the other side is available or picking up. cheers, Arnd ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |