RE: [Asterisk-java-users] originate call without picking up the fone?!
Brought to you by:
srt
From: Jason W. <jas...@be...> - 2006-02-14 16:40:32
|
OriginateAction has a precise definition and an exact function. I don't know how you are defining 'initiated', but I want to be helpful so I am trying to clarify. Ringing is a line 'state', 'user picks up the phone' (called answered) is another, completely different state. sending an originate action (a data structure) has nothing to do with the line state. For your program to know the line state after an originate action is parsed by asterisk you will need to parse an event objects that contains the line state. You may be able to send a 'status' action that will cause a status event, and parse this event to find the channel state and do something with that info. I hope you are finding this helpful. -----Original Message----- From: ast...@li... [mailto:ast...@li...]On Behalf Of Arnd Vehling Sent: Tuesday, February 14, 2006 11:01 AM To: ast...@li... Subject: Re: [Asterisk-java-users] originate call without picking up the fone?! Hi Jason, Jason Wolfe wrote: > In my testing, when I send an originate action, asterisk returns a > response=error immediately when the line is busy AFAIK the call isnt initiated before the fone rings and the user picks up the fone?! At least not when using the java API class OriginateAction?! > 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) I already thought about initiating a call connecting to an App like conference or parkinglot. > Check out my earlier post about using Ethereal to view what communication is > happening at the TCP/IP level.... I always use "ngrep" for this and instructed my buddy whos the java programmer to use it too. Thx for the advise though. best regards, 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 |