[Asterisk-Users] Asterisk presence utility

Nicolás Gudiño asternic at gmail.com
Sat Sep 18 17:01:03 MST 2004


Hello,

On Sat, 18 Sep 2004 07:54:15 +0100, Bill Seddon
<bill.seddon at lyquidity.com> 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.

Latest CVS does include manager events for register / unregister  /
reachable / unreachable / lagged  events for sip and iax peers. You
will still need to poll for initial status.

-- 
Nicolás Gudiño
Buenos Aires - Argentina



More information about the asterisk-users mailing list