Ignore:
Timestamp:
Apr 24, 2018 5:27:57 AM (6 years ago)
Author:
ming
Message:

Fixed #2111: Add compile-time setting to specify DTMF duration in ms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/config.h

    r5752 r5786  
    413413 
    414414/** 
    415  * DTMF/telephone-event duration, in timestamp. 
     415 * DTMF/telephone-event duration, in timestamp. To specify the duration in 
     416 * milliseconds, use the setting PJMEDIA_DTMF_DURATION_MSEC instead. 
    416417 */ 
    417418#ifndef PJMEDIA_DTMF_DURATION            
    418419#  define PJMEDIA_DTMF_DURATION                 1600    /* in timestamp */ 
     420#endif 
     421 
     422 
     423/** 
     424 * DTMF/telephone-event duration, in milliseconds. If the value is greater 
     425 * than zero, than this setting will be used instead of PJMEDIA_DTMF_DURATION. 
     426 * 
     427 * Note that for a clockrate of 8 KHz, a dtmf duration of 1600 timestamp 
     428 * units (the default value of PJMEDIA_DTMF_DURATION) is equivalent to 200 ms.  
     429 */ 
     430#ifndef PJMEDIA_DTMF_DURATION_MSEC               
     431#  define PJMEDIA_DTMF_DURATION_MSEC            0 
    419432#endif 
    420433 
Note: See TracChangeset for help on using the changeset viewer.