diff options
author | George Joseph <gjoseph@digium.com> | 2016-12-06 13:54:25 -0700 |
---|---|---|
committer | George Joseph <gjoseph@digium.com> | 2016-12-07 18:11:28 -0600 |
commit | 79b09b5f18ad3de01030d9db1f9c45e91960fd0b (patch) | |
tree | a6b861f851277f5b1781901a77f7b7afc8cfd543 /include | |
parent | 1067b9add3784c5873ca701bcf24b7bc2844894f (diff) |
res_pjsip_registrar: AMI Add RegistrationInboundContactStatuses command
The PJSIPShowRegistrationsInbound AMI command was just dumping out
all AORs which was pretty useless and resource heavy since it had
to get all endpoints, then all aors for each endpoint, then all
contacts for each aor.
PJSIPShowRegistrationInboundContactStatuses sends ContactStatusDetail
events which meets the intended purpose of the other command and has
significantly less overhead. Also, some additional fields that were
added to Contact since the original creation of the ContactStatusDetail
event have been added to the end of the event.
For compatibility purposes, PJSIPShowRegistrationsInbound is left
intact.
ASTERISK-26644 #close
Change-Id: I326f12c9ecb52bf37ba03f0748749de4da01490a
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/res_pjsip.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asterisk/res_pjsip.h b/include/asterisk/res_pjsip.h index 894ea76f5..09ace0775 100644 --- a/include/asterisk/res_pjsip.h +++ b/include/asterisk/res_pjsip.h @@ -2277,6 +2277,16 @@ int ast_sip_format_endpoint_ami(struct ast_sip_endpoint *endpoint, struct ast_sip_ami *ami, int *count); /*! + * \brief Formats the contact and sends over AMI. + * + * \param obj a pointer an ast_sip_contact_wrapper structure + * \param arg a pointer to an ast_sip_ami structure + * \param flags ignored + * \retval 0 Success, otherwise non-zero on error + */ +int ast_sip_format_contact_ami(void *obj, void *arg, int flags); + +/*! * \brief Format auth details for AMI. * * \param auths an auth array |