mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
res_pjsip: Add handling for incoming unsolicited MWI NOTIFY
A new endpoint parameter "incoming_mwi_mailbox" allows Asterisk to receive unsolicited MWI NOTIFY requests and make them available to other modules via the stasis message bus. res_pjsip_pubsub has a new handler "pubsub_on_rx_mwi_notify_request" that parses a simple-message-summary body and, if endpoint->incoming_mwi_account is set, calls ast_publish_mwi_state with the voice-message counts from the message. Change-Id: I08bae3d16e77af48fcccc2c936acce8fc0ef0f3c
This commit is contained in:
@@ -788,6 +788,8 @@ struct ast_sip_endpoint {
|
||||
unsigned int refer_blind_progress;
|
||||
/*! Whether to notifies dialog-info 'early' on INUSE && RINGING state */
|
||||
unsigned int notify_early_inuse_ringing;
|
||||
/*! If set, we'll push incoming MWI NOTIFYs to stasis using this mailbox */
|
||||
AST_STRING_FIELD_EXTENDED(incoming_mwi_mailbox);
|
||||
};
|
||||
|
||||
/*! URI parameter for symmetric transport */
|
||||
|
Reference in New Issue
Block a user