res_pjsip_session: add new flag use_callerid_contact

Add a new global flag to res_pjsip to allow the callerid to be used
as the username in the contact header.  This allows chan_pjsip to have
the same behavour as chan_sip

ASTERISK-28087 #close

Change-Id: I9a720e058323f6862a91c62f8a8c1a4b5c087b95
This commit is contained in:
Torrey Searle
2018-10-02 14:31:43 +02:00
committed by Torrey Searle
parent 3f4f31fed6
commit 3ba66b8a9d
4 changed files with 74 additions and 0 deletions

View File

@@ -2747,6 +2747,14 @@ int ast_sip_get_mwi_tps_queue_low(void);
*/
unsigned int ast_sip_get_mwi_disable_initial_unsolicited(void);
/*!
* \brief Retrieve the global setting 'use_callerid_contact'.
* \since 13.24.0
*
* \retval non zero if CALLERID(num) is to be used as the default username in the contact
*/
unsigned int ast_sip_get_use_callerid_contact(void);
/*!
* \brief Retrieve the global setting 'ignore_uri_user_options'.
* \since 13.12.0