Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for SIP Message Summary/Message Waiting Indication (MWI, RFC 3842) #982

Closed
pjsipbot opened this issue Oct 26, 2009 · 0 comments
Closed

Comments

@pjsipbot
Copy link
Collaborator

2009-10-26 11:12:13: @bennylp created the issue on trac ticket 982

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).

Specification:

  • implement pjsip evsub package for MWI
  • client and server support
  • unsolicited MWI support
  • support in PJSUA-LIB
  • NOTIFY message body is unprocessed; they will be given to app unparsed.

New files in pjsip-simple:

  • mwi.h
  • mwi.c

Support in PJSUA-LIB:

  • "mwi_enabled" field in pjsua account config (default is disabled)
  • "on_mwi_info" callback
  • "enable_unsolicited_mwi" in pjsua_config (default is enabled)
  • if MWI subscription is terminated for some reason, PJSUA-LIB will renew periodically (PJSUA_PRES_TIMER timer)

PJSUA application:

  • new "--mwi" option
  • print MWI info on the callback

To implement MWI support in your application:

  1. implement on_mwi_info() callback
  2. at this point, any unsolicited incoming NOTIFY requests containing MWI will cause on_mwi_info() callback to be called, unless enable_unsolicited_mwi is explicitly disabled in pjsua_config.
  3. if you'd like to use MWI subscriptions, set mwi_enabled to TRUE in pjsua_acc_config

2009-10-26 11:22:03: @bennylp edited the issue description


2009-10-26 11:22:39: @bennylp changed status from new to closed


2009-10-26 11:22:39: @bennylp set resolution to fixed


2009-10-26 11:22:39: @bennylp commented

Implemented in r2968:

  • PJSIP-SIMPLE:
    • implement MWI
  • PJSUA-LIB:
    • added "mwi_enabled" flag in account config
    • added "on_mwi_info" callback
  • pjsua app:
    • added "--mwi" option to enable MWI on account
    • added simple callback to log the NOTIFY message
  • other:
    • added SIPp scenario files to simulate UAS side
  • build:
    • added MWI support on VS6, VS2005, MMP, and Makefile

2009-10-28 12:20:03: @bennylp commented

In r2974:

  • updated VS6 project with the (missing) mwi.[hc] files

2009-10-29 08:17:06: @bennylp commented

In r2976:

  • added MWI support for Python

2009-11-20 04:19:41: @bennylp edited the issue description


2009-11-20 04:19:41: @bennylp commented

In r3019:

  • added support for Asterisk unsolicited MWI requests in pjsua application (new "--unsolicited-mwi" option)

2009-11-20 23:33:52: @bennylp commented

In r3021:

  • undo r3019 which put unsolicited MWI support in pjsua app only
  • put the unsolicited MWI support in PJSUA-LIB instead
  • unsolicited MWI is by default enabled
  • on_mwi_info() callback will be called just as the solicited MWI version

2009-11-20 23:35:34: @bennylp edited the issue description


2009-11-20 23:58:21: @bennylp edited the issue description


2009-11-20 23:59:13: @bennylp edited the issue description


2009-11-21 00:01:34: @bennylp edited the issue description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants