From 446d48fd497786cdf6deff779131fa5fefd64b94 Mon Sep 17 00:00:00 2001 From: George Joseph Date: Mon, 11 Sep 2017 04:46:35 -0600 Subject: 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 --- configs/samples/pjsip.conf.sample | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'configs') diff --git a/configs/samples/pjsip.conf.sample b/configs/samples/pjsip.conf.sample index 3c3e52a05..1e1029b20 100644 --- a/configs/samples/pjsip.conf.sample +++ b/configs/samples/pjsip.conf.sample @@ -798,6 +798,12 @@ ; dtls_setup=actpass ; A dtls_cert_file and a dtls_ca_file still need to be specified. ; Default for this option is "no" +;incoming_mwi_mailbox = ; Mailbox name to use when incoming MWI NOTIFYs are + ; received. + ; If an MWI NOTIFY is received FROM this endpoint, + ; this mailbox will be used when notifying other modules + ; of MWI status changes. If not set, incoming MWI + ; NOTIFYs are ignored. ;==========================AUTH SECTION OPTIONS========================= ;[auth] -- cgit v1.2.3