Changeset 1086


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.5-stable/pjsip/src/pjsua-lib/pjsua_pres.c

    r999 r1086  
    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.