Changeset 1413
- Timestamp:
- Aug 2, 2007 3:41:46 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/stream.c
r1266 r1413 387 387 duration = cur_ts - digit->start_ts; 388 388 389 if (duration == 0) { 390 PJ_LOG(5,(stream->port.info.name.ptr, "Sending DTMF digit id %c", 391 digitmap[digit->event])); 392 duration = stream->port.info.samples_per_frame; 393 digit->start_ts = cur_ts - duration; 394 } 395 389 396 event->event = (pj_uint8_t)digit->event; 390 397 event->e_vol = 10; … … 409 416 } 410 417 411 } else if (duration == 0) {412 PJ_LOG(5,(stream->port.info.name.ptr, "Sending DTMF digit id %c",413 digitmap[digit->event]));414 418 } 415 419 … … 1647 1651 * Set callback to be called upon receiving DTMF digits. 1648 1652 */ 1649 PJ_DEF(pj_status_t) 1650 pjmedia_stream_set_dtmf_callback(pjmedia_stream *stream, 1653 PJ_DEF(pj_status_t) pjmedia_stream_set_dtmf_callback(pjmedia_stream *stream, 1651 1654 void (*cb)(pjmedia_stream*, 1652 1655 void *user_data,
Note: See TracChangeset
for help on using the changeset viewer.