diff options
author | Benny Prijono <bennylp@teluu.com> | 2013-07-16 06:24:54 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2013-07-16 06:24:54 +0000 |
commit | f79f5df987a12a1cea16ceb4c8583bae202a8b38 (patch) | |
tree | afcd131ec7974eb1e1e6c2b88f9cbee7aeb8f8ec /pjsip/src | |
parent | 551dc7de88217169f01624a64c4a20ded378c7d8 (diff) |
Misc re #1630: stop MWI subscription when account is unregistered, because we only start it after acc is registered
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4564 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_pres.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_pres.c b/pjsip/src/pjsua-lib/pjsua_pres.c index d4af27df..a9c31073 100644 --- a/pjsip/src/pjsua-lib/pjsua_pres.c +++ b/pjsip/src/pjsua-lib/pjsua_pres.c @@ -2094,7 +2094,7 @@ pj_status_t pjsua_start_mwi(pjsua_acc_id acc_id, pj_bool_t force_renew) acc = &pjsua_var.acc[acc_id]; - if (!acc->cfg.mwi_enabled) { + if (!acc->cfg.mwi_enabled || !acc->regc) { if (acc->mwi_sub) { /* Terminate MWI subscription */ pjsip_evsub *sub = acc->mwi_sub; |