Changeset 5242 for pjproject/trunk
- Timestamp:
- Feb 18, 2016 3:15:19 AM (9 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/config.h
r5239 r5242 1322 1322 #endif 1323 1323 1324 1324 1325 /** 1325 1326 * Specify if libyuv is available. … … 1331 1332 #endif 1332 1333 1334 1335 /** 1336 * Specify if dtmf flash in RFC 2833 is available. 1337 */ 1338 #ifndef PJMEDIA_HAS_DTMF_FLASH 1339 # define PJMEDIA_HAS_DTMF_FLASH 1 1340 #endif 1341 1342 1333 1343 /** 1334 1344 * @} -
pjproject/trunk/pjmedia/include/pjmedia/stream.h
r4739 r5242 343 343 * @param stream The media stream. 344 344 * @param ascii_digit String containing digits to be sent to remote as 345 * described on RFC 2833 section 3.10. Character 'R' is 345 * described on RFC 2833 section 3.10. 346 * If PJMEDIA_HAS_DTMF_FLASH is enabled, character 'R' is 346 347 * used to represent the event type 16 (flash) as stated 347 348 * in RFC 4730. -
pjproject/trunk/pjmedia/src/pjmedia/endpoint.c
r5170 r5242 557 557 attr = PJ_POOL_ZALLOC_T(pool, pjmedia_sdp_attr); 558 558 attr->name = pj_str("fmtp"); 559 #if defined(PJMEDIA_HAS_DTMF_FLASH) && PJMEDIA_HAS_DTMF_FLASH!= 0 559 560 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 560 564 m->attr[m->attr_count++] = attr; 561 565 } -
pjproject/trunk/pjmedia/src/pjmedia/stream.c
r5239 r5242 1567 1567 1568 1568 /* Ignore unknown event. */ 1569 #if defined(PJMEDIA_HAS_DTMF_FLASH) && PJMEDIA_HAS_DTMF_FLASH!= 0 1569 1570 if (event->event > 16) { 1571 #else 1572 if (event->event > 15) { 1573 #endif 1570 1574 PJ_LOG(5,(stream->port.info.name.ptr, 1571 1575 "Ignored RTP pkt with bad DTMF event %d", … … 2787 2791 pt = 11; 2788 2792 } 2793 #if defined(PJMEDIA_HAS_DTMF_FLASH) && PJMEDIA_HAS_DTMF_FLASH!= 0 2789 2794 else if (dig == 'r') 2790 2795 { 2791 2796 pt = 16; 2792 2797 } 2798 #endif 2793 2799 else 2794 2800 { -
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_legacy.c
r5170 r5242 1216 1216 char buf[128]; 1217 1217 1218 #if defined(PJMEDIA_HAS_DTMF_FLASH) && PJMEDIA_HAS_DTMF_FLASH!= 0 1218 1219 if (!simple_input("DTMF strings to send (0-9*R#A-B)", buf, 1219 1220 sizeof(buf))) 1221 #else 1222 if (!simple_input("DTMF strings to send (0-9*#A-B)", buf, 1223 sizeof(buf))) 1224 #endif 1220 1225 { 1221 1226 return; -
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r5185 r5242 4812 4812 4813 4813 /** 4814 * Send DTMF digits to remote using RFC 2833 payload formats. 4814 * Send DTMF digits to remote using RFC 2833 payload formats. 4815 4815 * 4816 4816 * @param call_id Call identification. 4817 4817 * @param digits DTMF string digits to be sent as described on RFC 2833 4818 * section 3.10. Character 'R' is used to represent the 4818 * section 3.10. If PJMEDIA_HAS_DTMF_FLASH is enabled, 4819 * character 'R' is used to represent the 4819 4820 * event type 16 (flash) as stated in RFC 4730. 4820 4821 *
Note: See TracChangeset
for help on using the changeset viewer.