Changes between Version 7 and Version 8 of Ticket #982


Ignore:
Timestamp:
Nov 20, 2009 11:58:21 PM (15 years ago)
Author:
bennylp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #982 – Description

    v7 v8  
    1 Add support for MWI with the following specification: 
     1Add 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 
     3Specification: 
    24 - implement pjsip evsub package for MWI 
    35 - client and server support 
    4  - unsolicited MWI support (unsolicited means NOTIFY is sent without subscription) 
     6 - unsolicited MWI support  
    57 - support in PJSUA-LIB 
    68 - NOTIFY message body is unprocessed; they will be given to app unparsed. 
    79 
    810New files in pjsip-simple: 
    9  - include: mwi.h 
    10  - src: mwi.c 
     11 - mwi.h 
     12 - mwi.c 
    1113 
    1214Support 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) 
    1518 - if MWI subscription is terminated for some reason, PJSUA-LIB will renew periodically (PJSUA_PRES_TIMER timer) 
    16  - enable/handle unsolicited MWI by default 
    1719 
    1820PJSUA application: 
    1921 - new "---mwi" option 
    20  - print MWI info 
     22 - print MWI info on the callback 
     23 
     24To 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}}}