Ignore:
Timestamp:
Jun 24, 2010 12:33:18 PM (10 years ago)
Author:
bennylp
Message:

Fixed #1081: Implement ICE option tag (RFC 5678)

File:
1 edited

Legend:

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

    r3216 r3222  
    237237        acc->cred[acc->cred_cnt++] = pjsua_var.ua_cfg.cred_info[i]; 
    238238    } 
     239 
     240    /* If ICE is enabled, add "+sip.ice" media feature tag in account's 
     241     * contact params. 
     242     */ 
     243#if PJSUA_ADD_ICE_TAGS 
     244    if (pjsua_var.media_cfg.enable_ice) { 
     245        unsigned new_len; 
     246        pj_str_t new_prm; 
     247 
     248        new_len = acc_cfg->contact_params.slen + 10; 
     249        new_prm.ptr = (char*)pj_pool_alloc(acc->pool, new_len); 
     250        pj_strcpy(&new_prm, &acc_cfg->contact_params); 
     251        pj_strcat2(&new_prm, ";+sip.ice"); 
     252        acc_cfg->contact_params = new_prm; 
     253    } 
     254#endif 
    239255 
    240256    status = pjsua_pres_init_acc(acc_id); 
Note: See TracChangeset for help on using the changeset viewer.