Changeset 997
- Timestamp:
- Feb 24, 2007 1:16:40 PM (18 years ago)
- Location:
- pjproject/branches/pjproject-0.5-stable
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/pjproject-0.5-stable/pjmedia/include/pjmedia/config.h
r974 r997 79 79 * buffer is about 10 or 20 ms long. 80 80 * 81 * Default: 3281 * Default: 16 82 82 */ 83 83 #ifndef PJMEDIA_SOUND_BUFFER_COUNT -
pjproject/branches/pjproject-0.5-stable/pjsip/include/pjsua-lib/pjsua_internal.h
r974 r997 303 303 304 304 /** 305 * Send PUBLISH 306 */ 307 pj_status_t pjsua_pres_init_publish_acc(int acc_id); 308 309 /** 305 310 * Terminate server subscription for the account 306 311 */ -
pjproject/branches/pjproject-0.5-stable/pjsip/src/pjsua-lib/pjsua_acc.c
r974 r997 469 469 (int)param->reason.slen, param->reason.ptr, 470 470 param->expiration)); 471 472 /* Send initial PUBLISH if it is enabled */ 473 if (acc->cfg.publish_enabled && acc->publish_sess==NULL) 474 pjsua_pres_init_publish_acc(acc->index); 471 475 } 472 476 -
pjproject/branches/pjproject-0.5-stable/pjsip/src/pjsua-lib/pjsua_pres.c
r974 r997 672 672 673 673 /* Create client publish session */ 674 static pj_status_t create_publish(int acc_id)674 pj_status_t pjsua_pres_init_publish_acc(int acc_id) 675 675 { 676 676 const pj_str_t STR_PRESENCE = { "presence", 8 }; … … 723 723 pj_list_init(&acc->pres_srv_list); 724 724 725 726 return create_publish(acc_id); 725 return PJ_SUCCESS; 727 726 } 728 727 … … 804 803 } 805 804 806 /* Send PUBLISH if required */ 807 if (acc_cfg->publish_enabled) { 808 if (acc->publish_sess == NULL) 809 create_publish(acc_id); 810 811 if (acc->publish_sess && acc->publish_state != acc->online_status) { 805 /* Send PUBLISH if required. We only do this when we have a PUBLISH 806 * session. If we don't have a PUBLISH session, then it could be 807 * that we're waiting until registration has completed before we 808 * send the first PUBLISH. 809 */ 810 if (acc_cfg->publish_enabled && acc->publish_sess) { 811 if (acc->publish_state != acc->online_status) { 812 812 send_publish(acc_id, PJ_TRUE); 813 813 }
Note: See TracChangeset
for help on using the changeset viewer.