Query asterisk for registrations

Is the a SIP method that can be used to return the list of active registrations to the registered UAC so that they can have a list of who to dial? I am looking to have a directory listing for the UAC to display. Is this done thru SIP or LDAP or some other method? Thanks.