- Timestamp:
- Feb 10, 2010 2:24:48 PM (15 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsua-lib/pjsua_internal.h
r2968 r3096 445 445 446 446 /** 447 * Send un-PUBLISH 448 */ 449 void pjsua_pres_unpublish(pjsua_acc *acc); 450 451 /** 447 452 * Terminate server subscription for the account 448 453 */ -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r3032 r3096 1265 1265 goto on_return; 1266 1266 } 1267 1268 pjsua_pres_unpublish(&pjsua_var.acc[acc_id]); 1269 1267 1270 status = pjsip_regc_unregister(pjsua_var.acc[acc_id].regc, &tdata); 1268 1271 } -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c
r3031 r3096 1276 1276 1277 1277 1278 /* Unpublish presence publication */ 1279 void pjsua_pres_unpublish(pjsua_acc *acc) 1280 { 1281 if (acc->publish_sess) { 1282 pjsua_acc_config *acc_cfg = &acc->cfg; 1283 1284 acc->online_status = PJ_FALSE; 1285 send_publish(acc->index, PJ_FALSE); 1286 /* By ticket #364, don't destroy the session yet (let the callback 1287 destroy it) 1288 if (acc->publish_sess) { 1289 pjsip_publishc_destroy(acc->publish_sess); 1290 acc->publish_sess = NULL; 1291 } 1292 */ 1293 acc_cfg->publish_enabled = PJ_FALSE; 1294 } 1295 } 1296 1278 1297 /* Terminate server subscription for the account */ 1279 1298 void pjsua_pres_delete_acc(int acc_id) 1280 1299 { 1281 1300 pjsua_acc *acc = &pjsua_var.acc[acc_id]; 1282 pjsua_acc_config *acc_cfg = &pjsua_var.acc[acc_id].cfg;1283 1301 pjsua_srv_pres *uapres; 1284 1302 … … 1315 1333 1316 1334 /* Terminate presence publication, if any */ 1317 if (acc->publish_sess) { 1318 acc->online_status = PJ_FALSE; 1319 send_publish(acc_id, PJ_FALSE); 1320 /* By ticket #364, don't destroy the session yet (let the callback 1321 destroy it) 1322 if (acc->publish_sess) { 1323 pjsip_publishc_destroy(acc->publish_sess); 1324 acc->publish_sess = NULL; 1325 } 1326 */ 1327 acc_cfg->publish_enabled = PJ_FALSE; 1328 } 1335 pjsua_pres_unpublish(acc); 1329 1336 } 1330 1337
Note: See TracChangeset
for help on using the changeset viewer.