Changes between Version 7 and Version 8 of Ticket #982
- Timestamp:
- Nov 20, 2009 11:58:21 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #982 – Description
v7 v8 1 Add support for MWI with the following specification: 1 Add support for Message Summary/Message Waiting Indication (MWI, RFC 3842). Two types of MWI events are supported: MWI with subscription and unsolicited MWI (unsolicited means NOTIFY is sent without subscription). 2 3 Specification: 2 4 - implement pjsip evsub package for MWI 3 5 - client and server support 4 - unsolicited MWI support (unsolicited means NOTIFY is sent without subscription)6 - unsolicited MWI support 5 7 - support in PJSUA-LIB 6 8 - NOTIFY message body is unprocessed; they will be given to app unparsed. 7 9 8 10 New files in pjsip-simple: 9 - include:mwi.h10 - src:mwi.c11 - mwi.h 12 - mwi.c 11 13 12 14 Support in PJSUA-LIB: 13 - add "mwi_enabled" field in pjsua account config 14 - add "on_mwi_info" callback 15 - "mwi_enabled" field in pjsua account config (default is disabled) 16 - "on_mwi_info" callback 17 - "enable_unsolicited_mwi" in pjsua_config (default is enabled) 15 18 - if MWI subscription is terminated for some reason, PJSUA-LIB will renew periodically (PJSUA_PRES_TIMER timer) 16 - enable/handle unsolicited MWI by default17 19 18 20 PJSUA application: 19 21 - new "---mwi" option 20 - print MWI info 22 - print MWI info on the callback 23 24 To implement MWI support in your application: 25 1. implement {{{on_mwi_info()}}} callback 26 1. at this point, any unsolicited incoming NOTIFY requests containing MWI will cause {{{on_mwi_info()}}} callback to be called, unless {{{enable_unsolicited_mwi}}} is '''disabled''' in {{{pjsua_config}}}. 27 1. if you'd like to use MWI subscriptions, set {{{mwi_enabled}}} to TRUE in {{{pjsua_acc_config}}}