I’m searching for a way to supervise the connection status to an outbound SIP server via ARI. Using the
/ari/endpoints endpoint, the
state property does not change from
online to something else, even though i.e. authentication fails.
In concrete, one of my SIP providers from time to time rejects user credentials for some while. I see the following logs within Asterisk, but no change within the
NOTICE: res_pjsip/pjsip_configuration.c:2182 ast_sip_retrieve_auths: Couldn't find auth 'endpoint_id'. Cannot authenticate WARNING: res_pjsip_outbound_authenticator_digest.c:144 digest_create_request_with_auth: Host: 'XXX:5060': Failed to set authentication credentials WARNING: res_pjsip_outbound_registration.c:1111 handle_registration_response: Failed to create authenticated REGISTER request to server 'sip:YYY:5060' from client 'sip:ZZZ@YYY:5060'
Is there a way to subscribe to such events via ARI?
Thanks a lot!