On Wed, 2008-05-21 at 15:36 -0300, Carlos Henrique Romano wrote:
> Is it right to use the registration.xml file to get the peers
> currently registered?

It works, but it is not a defined interface, and so may change at any
moment.

> I'm using this file as base for a listing of registered peers but sipx
> doesn't seems to update it when a peer is unregistered, does someone
> knows why is it that way or if there is another alternative to get
> these peers?

The defined method of finding all the registered contacts for a
particular AOR is to do a REGISTER for that AOR but omit the Contact
header.  The response to that REGISTER should include all active
contacts for the AOR.

In regard to registration.xml, you must compare the value of the
<expires> element of each <item> element with the timestamp attribute of
the <items> element -- the <item> is only active if expires >=
timestamp.

Dale


_______________________________________________
sipx-users mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-users
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-users

Reply via email to