Ignore:
Timestamp:
Feb 18, 2016 3:15:19 AM (6 years ago)
Author:
riza
Message:

Misc (Re #1882): Add compile time option (PJMEDIA_HAS_DTMF_FLASH) to enable/disable DTMF flash as specified in rfc2833.

File:
1 edited

Legend:

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

    r5170 r5242  
    557557        attr = PJ_POOL_ZALLOC_T(pool, pjmedia_sdp_attr); 
    558558        attr->name = pj_str("fmtp"); 
     559#if defined(PJMEDIA_HAS_DTMF_FLASH) && PJMEDIA_HAS_DTMF_FLASH!= 0 
    559560        attr->value = pj_str(PJMEDIA_RTP_PT_TELEPHONE_EVENTS_STR " 0-16"); 
     561#else 
     562        attr->value = pj_str(PJMEDIA_RTP_PT_TELEPHONE_EVENTS_STR " 0-15"); 
     563#endif 
    560564        m->attr[m->attr_count++] = attr; 
    561565    } 
Note: See TracChangeset for help on using the changeset viewer.