Re: [Asterisk-java-users] How to get sip users
Brought to you by:
srt
|
From: Steve K. <kw...@it...> - 2005-06-21 09:20:51
|
Hi,
As far as I know nearly all the commands that work in the asterisk console can be used via asterisk-java.
So if "sip show users" works in the console on your installation it also works in asterisk-java.
You can use a CommandAction for this and should set up a *ManagerResponseHandler to catch the response.*
The examples from the tutorial do not need many changes to get this working.
Look at the specific class of the response in a Debugger (Eclipse).
You might have to do a cast to *CommandResponse and then a getResult to get the list of users.
Cheers
Steve
*
Johannes Boesl schrieb:
>Hi,
>I'm want to get all sip users from my asterisk. I tried it by sending a commandAction with "sip show users" but i guess it doesn't work this way. Is it possible to fetch those information with Asterisk-Java and in case of 'yes' - how?
>
>Cheers!
>Johannes Boesl
>HS^隊X'u<(=
>j̋{2(+jب+kjנஉb"^Z0Flm~jZ."+bmƧvj+xgzǫbwv z)y_jalgr i؝ώjYhr'r-z6j.XX-z6j.b,"
>y+m+-.-ǟ+-3b2~ڲ#j
>
>
--
Freundliche Grüße
Steve Kwee
________________________________________________
IT Warehouse AG e-Mail: Kw...@it...
Fon: +49 (0) 40.32 33 54.28
Fax: +49 (0) 40.32 33 54.99
|