Re: [Asterisk-java-users] Originating calls
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2005-10-06 19:42:31
|
On Thu, 2005-10-06 at 17:37 +0200, Laurent Salagaras wrote: > Currently I am encoutering the following problem. I succeed > to login to Asterisk and initiate a call (both with the > OriginateAction > and with the originateCall method of AsteriskManager). > =20 [...] > However in both methods I do not have as return value the identifier > of the call (or channel). > (e.g.: SIP/laurent-b7485# ) originateCall() in AsteriskManager returns a Call object. call.getChannel().getName() will return what you are looking for. But another question: Do you really need to hangup the call via the Manager API or wouldn't it be easier to just hang up after playing the sound file (via dialplan or AGI or whatever you use) =3DStefan |