mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 07:35:18 +00:00
res_pjsip_mwi: fix unsolicited mwi blocks PJSIP stack
The PJSIP taskprocessors could be overflowed on startup if there are many (thousands) realtime endpoints configured with unsolicited mwi. The PJSIP stack could be totally unresponsive for a few minutes after boot completed. This patch creates a separate PJSIP serializers pool for mwi and makes unsolicited mwi use serializers from this pool. This patch also adds 2 new global options to tune taskprocessor alert levels: 'mwi_tps_queue_high' and 'mwi_tps_queue_low'. This patch also adds new global option 'mwi_disable_initial_unsolicited' to disable sending unsolicited mwi to all endpoints on startup. If disabled then unsolicited mwi will start processing on next endpoint's contact update. ASTERISK-26230 #close Change-Id: I4c8ecb82c249eb887930980a800c9f87f28f861a
This commit is contained in:
@@ -2462,6 +2462,32 @@ int ast_sip_register_supplement(struct ast_sip_supplement *supplement);
|
||||
*/
|
||||
void ast_sip_unregister_supplement(struct ast_sip_supplement *supplement);
|
||||
|
||||
/*!
|
||||
* \brief Retrieve the global MWI taskprocessor high water alert trigger level.
|
||||
*
|
||||
* \since 13.12.0
|
||||
*
|
||||
* \retval the system MWI taskprocessor high water alert trigger level
|
||||
*/
|
||||
unsigned int ast_sip_get_mwi_tps_queue_high(void);
|
||||
|
||||
/*!
|
||||
* \brief Retrieve the global MWI taskprocessor low water clear alert level.
|
||||
*
|
||||
* \since 13.12.0
|
||||
*
|
||||
* \retval the system MWI taskprocessor low water clear alert level
|
||||
*/
|
||||
int ast_sip_get_mwi_tps_queue_low(void);
|
||||
|
||||
/*!
|
||||
* \brief Retrieve the global setting 'disable sending unsolicited mwi on startup'.
|
||||
* \since 13.12.0
|
||||
*
|
||||
* \retval non zero if disable.
|
||||
*/
|
||||
unsigned int ast_sip_get_mwi_disable_initial_unsolicited(void);
|
||||
|
||||
/*!
|
||||
* \brief Retrieve the system debug setting (yes|no|host).
|
||||
*
|
||||
|
Reference in New Issue
Block a user