Ignore:
Timestamp:
Aug 13, 2012 9:15:39 AM (12 years ago)
Author:
bennylp
Message:

More #1412: also handle the case for presence subscription, publish, and mwi when the account does not have registration

File:
1 edited

Legend:

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

    r4218 r4229  
    486486        if (pjsua_var.acc[id].cfg.mwi_enabled) 
    487487            pjsua_start_mwi(id, PJ_TRUE); 
     488 
     489        /* Start publish too */ 
     490        if (acc->cfg.publish_enabled) 
     491            pjsua_pres_init_publish_acc(id); 
    488492    } 
    489493 
     
    27042708        tdata->via_addr = pjsua_var.acc[acc_id].via_addr; 
    27052709        tdata->via_tp = pjsua_var.acc[acc_id].via_tp; 
     2710    } else if (!pjsua_sip_acc_is_using_stun(acc_id)) { 
     2711        /* Choose local interface to use in Via if acc is not using 
     2712         * STUN 
     2713         */ 
     2714        pjsua_acc_get_uac_addr(acc_id, tdata->pool, 
     2715                               target, 
     2716                               &tdata->via_addr, 
     2717                               NULL, NULL, 
     2718                               &tdata->via_tp); 
    27062719    } 
    27072720 
Note: See TracChangeset for help on using the changeset viewer.