res_pjsip: Added a norefersub configuration setting

Added a new PJSIP global setting called norefersub.
Default is true to keep support working as before.

res_pjsip_refer:  Configures PJSIP norefersub capability accordingly.

Checks the PJSIP global setting value.
If it is true (default) it adds the norefersub capability to PJSIP.
If it is false (disabled) it does not add the norefersub capability
to PJSIP.

This is useful for Cisco switches that do not follow RFC4488.

ASTERISK-28375 #close
Reported-by: Dan Cropp

Change-Id: I0b1c28ebc905d881f4a16e752715487a688b30e9
This commit is contained in:
Dan Cropp
2019-04-08 17:04:48 -05:00
parent c9ca88ae7d
commit eca8c440d2
7 changed files with 92 additions and 1 deletions

View File

@@ -2761,6 +2761,13 @@ unsigned int ast_sip_get_mwi_disable_initial_unsolicited(void);
*/
unsigned int ast_sip_get_use_callerid_contact(void);
/*!
* \brief Retrieve the global setting 'norefersub'.
*
* \retval non zero if norefersub is to be sent in "Supported" Headers
*/
unsigned int ast_sip_get_norefersub(void);
/*!
* \brief Retrieve the global setting 'ignore_uri_user_options'.
* \since 13.12.0