res_pjsip: add option to disable ContactStatus event when contact is updated

This patch adds a new PJSIP global configuration option
'send_contact_status_on_update_registration' to be able to have the same
performance benefits as version 16.

By default old behavior, i.e. the ContactStatus event will be sent when a
device refreshes its registration.

Change-Id: I706adf7584e7077eb6bde6d9799ca408bc82ce46
This commit is contained in:
Alexei Gradinari
2019-01-11 11:34:08 -05:00
parent 790626ec82
commit 4a8564cafa
7 changed files with 108 additions and 23 deletions

View File

@@ -2793,6 +2793,15 @@ unsigned int ast_sip_get_use_callerid_contact(void);
*/
unsigned int ast_sip_get_ignore_uri_user_options(void);
/*!
* \brief Retrieve the global setting 'send_contact_status_on_update_registration'.
* \since 13.25.0
*
* \retval non zero if need to send AMI ContactStatus event when a contact is updated.
*/
unsigned int ast_sip_get_send_contact_status_on_update_registration(void);
/*!
* \brief Truncate the URI user field options string if enabled.
* \since 13.12.0