I was just wondering if there is a way to query the asterisk server (from a client) so it can return a list of logged in clients?
Steve K
---------------------------------
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
--0-1546272152-1048538153=:60972
Content-Type: text/html; charset=us-ascii
<P>Hey guys, </P>
<P>I was just wondering if there is a way to query the asterisk server (from a client) so it can return a list of logged in clients?</P>
<P> </P>
<P>Steve K</P><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://rd.yahoo.com/platinum/evt=8162/*http://platinum.yahoo.com/splash.html">Yahoo! Platinum</a> - Watch CBS' NCAA March Madness, <a href="http://rd.yahoo.com/platinum/evt=8162/*http://platinum.yahoo.com/splash.html">live on your desktop</a>!
--0-1546272152-1048538153=:60972--
I am currently work on it. If i am ready Asterisk have functions to get =
device or extension state.
int ast_extension_state(struct ast_channel *c, char *context, char =
*exten)
returns=20
-1 =3D error or no hint(device hint) for extension
0 =3D extension is free or unknown
1 =3D one device in extension is busy (have a call)
2 =3D all devices in extension unavailable(unregistered)
** You can give ast_device_state a Dialstring like SIP/mark or IAX/mark =
**
int ast_device_state(char *device)
returns
-1 =3D error
0 =3D device is free or unknown
1 =3D device is busy (have a call)
2 =3D device is valid but unregistered
So SIP can support SUBSCRIBE requests, and for Snom200 SUBSCIBE Dialogs =
(Map a Key to an extension and see if the extension have a call (the LED =
turned on))
Its easy to implement the device state support for IAX, i have talk with =
mark about it. I implement only the PBX and Channel and SIP functions.
With IAX you can poll the dialplan and get the extension states if its =
implemented.
Andre
----- Original Message -----=20
From: Steve K=20
To: asterisk-dev@lists.digium.com=20
Sent: Monday, March 24, 2003 9:35 PM
Subject: [Asterisk-Dev] Logged in users
Hey guys,=20
I was just wondering if there is a way to query the asterisk server =
(from a client) so it can return a list of logged in clients?
Steve K
-------------------------------------------------------------------------=
-----
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I am currently work on it. If i am =
ready Asterisk=20
have functions to get device or extension state.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>int ast_extension_state(struct =
ast_channel *c, char=20
*context, char *exten)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>returns </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>-1 =3D error or no hint(device =
hint) for=20
extension</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> 0 =3D extension is free or =
unknown</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> 1 =3D one device in extension is =
busy (have a=20
call)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> 2 =3D all devices in extension=20
unavailable(unregistered)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>** You can give ast_device_state a =
Dialstring like=20
SIP/mark or IAX/mark **</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>int ast_device_state(char =
*device)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>returns</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>-1 =3D error</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> 0 =3D device is free or =
unknown</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> 1 =3D device is busy (have a =
call)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> 2 =3D device is valid but=20
unregistered</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>So SIP can support SUBSCRIBE requests, =
and for=20
Snom200 SUBSCIBE Dialogs (Map a Key to an extension and see if the =
extension=20
have a call (the LED turned on))</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Its easy to implement the device state =
support for=20
IAX, i have talk with mark about it. I implement only the PBX and=20
Channel and SIP functions.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>With IAX you can poll the dialplan and =
get the=20
extension states if its implemented.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Andre</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Dsteve_callsystem@yahoo.com=20
href=3D"mailto:steve_callsystem@yahoo.com">Steve K</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
title=3Dasterisk-dev@lists.digium.com=20
=
href=3D"mailto:asterisk-dev@lists.digium.com">asterisk-dev@lists.digium.c=
om</A>=20
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Monday, March 24, 2003 =
9:35=20
PM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Asterisk-Dev] Logged =
in=20
users</DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT><BR></DIV>
<P>Hey guys, </P>
<P>I was just wondering if there is a way to query the asterisk server =
(from a=20
client) so it can return a list of logged in clients?</P>
<P><FONT face=3DArial size=3D2></FONT> </P>
<P>Steve K</P>
<P><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT><BR>
<HR SIZE=3D1>
Do you Yahoo!?<BR><A=20
=
href=3D"http://rd.yahoo.com/platinum/evt=3D8162/*http://platinum.yahoo.co=
m/splash.html">Yahoo!=20
Platinum</A> - Watch CBS' NCAA March Madness, <A=20
=
href=3D"http://rd.yahoo.com/platinum/evt=3D8162/*http://platinum.yahoo.co=
m/splash.html">live=20
on your desktop</A>!</BLOCKQUOTE></BODY></HTML>
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum