[Asterisk-Users] Asterisk presence utility
Greg Boehnlein
damin at nacs.net
Sat Sep 18 06:23:12 MST 2004
On Sat, 18 Sep 2004, Bill Seddon wrote:
> I've spent a couple of evenings writing a "presence" utility in C# so that a
> window, listing the currently registered SIP phones, can be displayed and a
> user can see who is on the phone and who is not. It uses the Manager API
> and works well, updating the display as API events are received.
>
> But what I want to be able to do is add to the list of displayed users when
> a phone registers and remove them when a phone unregisters. However the
> Manager API does not seem to generate event messages for these events. Is
> this correct or have a I missed an option somewhere? Certainly the register
> and unregister event is displayed on the Asterisk command line.
>
> It is possible to have the utility run the "sip show peers" command
> periodically and update its list based on the results of the command.
> However that means polling the server periodically, comsuming resources,
> instead of being notified just once.
>
> Any insight gratefully received.
>
> Bill Seddon
This is purely conjecture on my part, but it seems to me if the console is
generating SIP Un/Registration messages, that it would be trivial for the
manager interface to display them as well.
--
Vice President of N2Net, a New Age Consulting Service, Inc. Company
http://www.n2net.net Where everything clicks into place!
KP-216-121-ST
More information about the asterisk-users
mailing list