Ignore:
Timestamp:
Feb 27, 2018 3:37:53 AM (7 years ago)
Author:
ming
Message:

Fixed #2098: Add SDP attribute SSRC and CNAME

File:
1 edited

Legend:

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

    r5721 r5748  
    138138    call->index = id; 
    139139    call->last_text.ptr = call->last_text_buf_; 
     140    call->cname.ptr = call->cname_buf; 
     141    call->cname.slen = sizeof(call->cname_buf); 
    140142    for (i=0; i<PJ_ARRAY_SIZE(call->media); ++i) { 
    141143        pjsua_call_media *call_med = &call->media[i]; 
     
    793795    call->acc_id = acc_id; 
    794796    call->call_hold_type = acc->cfg.call_hold_type; 
     797 
     798    /* Generate per-session RTCP CNAME, according to RFC 7022. */ 
     799    pj_create_random_string(call->cname_buf, call->cname.slen); 
    795800 
    796801    /* Apply call setting */ 
     
    12231228 
    12241229    call = &pjsua_var.calls[call_id]; 
     1230 
     1231    /* Generate per-session RTCP CNAME, according to RFC 7022. */ 
     1232    pj_create_random_string(call->cname_buf, call->cname.slen); 
    12251233 
    12261234    /* Mark call start time. */ 
Note: See TracChangeset for help on using the changeset viewer.