Ignore:
Timestamp:
Mar 20, 2007 9:13:24 AM (17 years ago)
Author:
bennylp
Message:

Fixed ticket #191: PUBLISH request in pjsua is not initialized with account's route set (thanks Nicholas Xu)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c

    r1000 r1087  
    713713                                     &acc_cfg->id, &acc_cfg->id, 
    714714                                     &acc_cfg->id,  
    715                                      PJSUA_PUBLISH_EXPIRATION); 
     715                                     60); 
    716716        if (status != PJ_SUCCESS) { 
    717717            acc->publish_sess = NULL; 
    718718            return status; 
    719719        } 
     720 
     721        /* Add credential for authentication */ 
     722        pjsip_publishc_set_credentials(acc->publish_sess, acc->cred_cnt,  
     723                                       acc->cred); 
     724 
     725        /* Set route-set */ 
     726        pjsip_publishc_set_route_set(acc->publish_sess, &acc->route_set); 
    720727 
    721728        /* Send initial PUBLISH request */ 
Note: See TracChangeset for help on using the changeset viewer.