Changeset 4739
- Timestamp:
- Feb 11, 2014 4:46:49 AM (11 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/stream.h
r3841 r4739 342 342 * 343 343 * @param stream The media stream. 344 * @param ascii_digit String containing digits to be sent to remote. 344 * @param ascii_digit String containing digits to be sent to remote as 345 * described on RFC 2833 section 3.10. Character 'R' is 346 * used to represent the event type 16 (flash) as stated 347 * in RFC 4730. 345 348 * Currently the maximum number of digits are 32. 346 349 * -
pjproject/trunk/pjmedia/src/pjmedia/endpoint.c
r4613 r4739 559 559 attr = PJ_POOL_ZALLOC_T(pool, pjmedia_sdp_attr); 560 560 attr->name = pj_str("fmtp"); 561 attr->value = pj_str(PJMEDIA_RTP_PT_TELEPHONE_EVENTS_STR " 0-1 5");561 attr->value = pj_str(PJMEDIA_RTP_PT_TELEPHONE_EVENTS_STR " 0-16"); 562 562 m->attr[m->attr_count++] = attr; 563 563 } -
pjproject/trunk/pjmedia/src/pjmedia/stream.c
r4728 r4739 231 231 232 232 /* RFC 2833 digit */ 233 static const char digitmap[1 6] = { '0', '1', '2', '3',233 static const char digitmap[17] = { '0', '1', '2', '3', 234 234 '4', '5', '6', '7', 235 235 '8', '9', '*', '#', 236 'A', 'B', 'C', 'D'}; 236 'A', 'B', 'C', 'D', 237 'R'}; 237 238 238 239 /* Zero audio frame samples */ … … 1569 1570 1570 1571 /* Ignore unknown event. */ 1571 if (event->event > 1 5) {1572 if (event->event > 16) { 1572 1573 PJ_LOG(5,(stream->port.info.name.ptr, 1573 1574 "Ignored RTP pkt with bad DTMF event %d", … … 2755 2756 pt = 11; 2756 2757 } 2758 else if (dig == 'r') 2759 { 2760 pt = 16; 2761 } 2757 2762 else 2758 2763 { -
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_legacy.c
r4729 r4739 1202 1202 char buf[128]; 1203 1203 1204 if (!simple_input("DTMF strings to send (0-9* #A-B)", buf,1204 if (!simple_input("DTMF strings to send (0-9*R#A-B)", buf, 1205 1205 sizeof(buf))) 1206 1206 { -
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r4724 r4739 4694 4694 4695 4695 /** 4696 * Send DTMF digits to remote using RFC 2833 payload formats. 4696 * Send DTMF digits to remote using RFC 2833 payload formats. 4697 4697 * 4698 4698 * @param call_id Call identification. 4699 * @param digits DTMF string digits to be sent. 4699 * @param digits DTMF string digits to be sent as described on RFC 2833 4700 * section 3.10. Character 'R' is used to represent the 4701 * event type 16 (flash) as stated in RFC 4730. 4700 4702 * 4701 4703 * @return PJ_SUCCESS on success, or the appropriate error code.
Note: See TracChangeset
for help on using the changeset viewer.