diff options
author | Benny Prijono <bennylp@teluu.com> | 2010-02-10 14:24:48 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2010-02-10 14:24:48 +0000 |
commit | eed32ea7a9329e785509eaf56251a9b44d21df5c (patch) | |
tree | ff66dc29351ae8143a41832029d47332fcad8177 /pjsip/src/pjsua-lib/pjsua_acc.c | |
parent | 8d94472903d973b0edc957a0fb31f272c2225846 (diff) |
Ticket #995: Send un-PUBLISH when pjsua_acc_set_registration(FALSE) is called (thanks Johan Lantz for the suggestion)
- in this implementation, when pjsua_acc_set_registration(FALSE) is called, the un-REGISTER request will be sent immediately after un-PUBLISH, unlike the process during shutdown where the un-REGISTER request will be sent only after un-PUBLISH transaction is complete
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3096 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsua-lib/pjsua_acc.c')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_acc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_acc.c b/pjsip/src/pjsua-lib/pjsua_acc.c index 965ead0e..18096629 100644 --- a/pjsip/src/pjsua-lib/pjsua_acc.c +++ b/pjsip/src/pjsua-lib/pjsua_acc.c @@ -1264,6 +1264,9 @@ PJ_DEF(pj_status_t) pjsua_acc_set_registration( pjsua_acc_id acc_id, status = PJ_EINVALIDOP; goto on_return; } + + pjsua_pres_unpublish(&pjsua_var.acc[acc_id]); + status = pjsip_regc_unregister(pjsua_var.acc[acc_id].regc, &tdata); } |