Changeset 284 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c
- Timestamp:
- Mar 5, 2006 11:54:02 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c
r255 r284 116 116 status = pjsip_pres_create_uas( dlg, &pres_cb, rdata, &sub); 117 117 if (status != PJ_SUCCESS) { 118 PJ_TODO(DESTROY_DIALOG);118 pjsip_dlg_terminate(dlg); 119 119 pjsua_perror(THIS_FILE, "Unable to create server subscription", 120 120 status); … … 145 145 status); 146 146 pj_list_erase(uapres); 147 pjsip_pres_terminate(sub, PJ_FALSE); 147 148 return PJ_FALSE; 148 149 } … … 169 170 status); 170 171 pj_list_erase(uapres); 172 pjsip_pres_terminate(sub, PJ_FALSE); 171 173 return PJ_FALSE; 172 174 } … … 328 330 pjsua_perror(THIS_FILE, "Unable to create presence client", 329 331 status); 332 pjsip_dlg_terminate(dlg); 330 333 return; 331 334 } … … 336 339 status = pjsip_pres_initiate(pjsua.buddies[index].sub, -1, &tdata); 337 340 if (status != PJ_SUCCESS) { 341 pjsip_pres_terminate(pjsua.buddies[index].sub, PJ_FALSE); 338 342 pjsua.buddies[index].sub = NULL; 339 343 pjsua_perror(THIS_FILE, "Unable to create initial SUBSCRIBE", … … 344 348 status = pjsip_pres_send_request(pjsua.buddies[index].sub, tdata); 345 349 if (status != PJ_SUCCESS) { 350 pjsip_pres_terminate(pjsua.buddies[index].sub, PJ_FALSE); 346 351 pjsua.buddies[index].sub = NULL; 347 352 pjsua_perror(THIS_FILE, "Unable to send initial SUBSCRIBE", … … 349 354 return; 350 355 } 351 352 PJ_TODO(DESTROY_DIALOG_ON_ERROR);353 356 } 354 357 … … 374 377 status = pjsip_pres_send_request( pjsua.buddies[index].sub, tdata ); 375 378 376 if (status == PJ_SUCCESS) { 377 378 //pjsip_evsub_set_mod_data(pjsua.buddies[index].sub, pjsua.mod.id, 379 // NULL); 380 //pjsua.buddies[index].sub = NULL; 381 382 } else { 379 if (status != PJ_SUCCESS) { 380 381 pjsip_pres_terminate(pjsua.buddies[index].sub, PJ_FALSE); 382 pjsua.buddies[index].sub = NULL; 383 383 pjsua_perror(THIS_FILE, "Unable to unsubscribe presence", 384 384 status);
Note: See TracChangeset
for help on using the changeset viewer.