[Asterisk-java-users] Channel extraction.
Brought to you by:
srt
From: Jan du T. <jan...@de...> - 2005-12-09 14:46:58
|
Hi all. I used the OriginateAction to generate a call from the asterisk server on a channel to a certain extension. (Like the example on the tutorial page of the Asteriks-Java webpage@sourceforge.) The call is successfully generated. Now I want to hangup the call. I assume you want to use HangupAction. But hangupAction needs the exact channel id. A channel id for SIP for example will looks like this: "SIP/Jan-324bf". The first part of the channel id a person obviously know, because one configured OriginateAction with it. But Asterisks automatically generates a random number which is appended to the channel id to uniquley identify it. My question is how do you extract this generated random number, so that one can succesfully hangup a channel using HangupAction? Thank you. |