Ignore:
Timestamp:
Jun 29, 2006 2:45:17 PM (18 years ago)
Author:
bennylp
Message:

Improvements in PJMEDIA to support RFC 3605 (RTCP attribute in SDP) and other changes to improve RTCP communication behind NAT. Also fixed bug related to RTCP reporting changes in revision 565

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/endpoint.c

    r438 r568  
    328328    pj_strdup (pool, &m->desc.transport, &STR_RTP_AVP); 
    329329 
    330     /* Add format and rtpmap for each codec. */ 
     330    /* Init media line and attribute list. */ 
    331331    m->desc.fmt_count = 0; 
    332332    m->attr_count = 0; 
    333333 
     334    /* Add "rtcp" attribute */ 
     335#if 1 
     336    { 
     337        attr = pj_pool_alloc(pool, sizeof(pjmedia_sdp_attr)); 
     338        attr->name = pj_str("rtcp"); 
     339        attr->value.ptr = pj_pool_alloc(pool, 80); 
     340        attr->value.slen =  
     341            pj_ansi_snprintf(attr->value.ptr, 80, 
     342                            ":%u IN IP4 %s", 
     343                            pj_ntohs(sock_info[0].rtp_addr_name.sin_port), 
     344                            pj_inet_ntoa(sock_info[0].rtp_addr_name.sin_addr)); 
     345        pjmedia_sdp_attr_add(&m->attr_count, m->attr, attr); 
     346    } 
     347#endif 
     348 
     349    /* Add format and rtpmap for each codec */ 
    334350    for (i=0; i<endpt->codec_mgr.codec_cnt; ++i) { 
    335351 
Note: See TracChangeset for help on using the changeset viewer.