func_pjsip_endpoint: Add PJSIP_ENDPOINT function for querying endpoint details