Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1540 closed enhancement (fixed)

Modify MWI subscription setting on run-time and add callback for the subscription state change

Reported by: nanang Owned by: bennylp
Priority: normal Milestone: release-2.0.1
Component: pjsua-lib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description (last modified by ming)

Modifiable settings to be implemented:

  • pjsua_acc_config.mwi_expires: subscription expiration interval (compile-time default & run-time)
  • pjsua_acc_config.mwi_enabled: to enable or disable MWI subscription. It can be updated via pjsua_acc_modify() to start or stop MWI subscription.

When there is a MWI subscription state change, pjsua callback on_mwi_state() will be called.

MWI subscription will be terminated when deleting the associated account.

Thanks Peter Koletzki and Matynka Bartosz for the feedbacks.

Change History (5)

comment:1 Changed 12 years ago by nanang

  • Resolution set to fixed
  • Status changed from new to closed

In 4172:

Close #1540:

  • added pjsua_acc_config.mwi_expires, also compile-time macro PJSIP_MWI_DEFAULT_EXPIRES
  • updated pjsua_acc_modify() to update MWI subscription when mwi_expires & mwi_enabled of pjsua_acc_config is modified

comment:2 Changed 12 years ago by bennylp

  • Description modified (diff)

comment:3 Changed 12 years ago by ming

In 4180:

Re #1540: Modify MWI subscription setting on run-time

  • Add subscription state callback
  • Terminate subscription when deleting acc

comment:4 Changed 12 years ago by ming

  • Description modified (diff)
  • Summary changed from Modify MWI subscription setting on run-time to Modify MWI subscription setting on run-time and add callback for the subscription state change

comment:5 Changed 12 years ago by ming

In 4186:

Re #1540: Fixed assertion when terminating MWI subscription

Note: See TracTickets for help on using tickets.