summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorGeorge Joseph <gjoseph@digium.com>2017-09-11 04:46:35 -0600
committerGeorge Joseph <gjoseph@digium.com>2017-09-13 09:22:13 -0500
commit35cc916e63b0c8b8181e6bbeb9b052a81af2e422 (patch)
treea8c2a81d7664aa219dfbd7bbb066e68f2d96ad2e /configs
parentcadc96c04bf8350bd8052e8228d84550ed2c4899 (diff)
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
Diffstat (limited to 'configs')
-rw-r--r--configs/samples/pjsip.conf.sample6
1 files changed, 6 insertions, 0 deletions
diff --git a/configs/samples/pjsip.conf.sample b/configs/samples/pjsip.conf.sample
index 6510fcf6a..7f30fdd0f 100644
--- a/configs/samples/pjsip.conf.sample
+++ b/configs/samples/pjsip.conf.sample
@@ -782,6 +782,12 @@
; The value "yes" is useful for some SIP phones
; (Cisco SPA) to be able to indicate and pick up
; ringing devices.
+;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]