Ignore:
Timestamp:
Feb 25, 2006 2:04:42 AM (18 years ago)
Author:
bennylp
Message:

Synched with documentation

File:
1 edited

Legend:

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

    r223 r228  
    117117 
    118118 
     119/* RFC 2833 digit */ 
     120static const char digitmap[16] = { '0', '1', '2', '3',  
     121                                   '4', '5', '6', '7',  
     122                                   '8', '9', '*', '#', 
     123                                   'A', 'B', 'C', 'D'}; 
     124 
    119125/* 
    120126 * Print error. 
     
    231237        stream->tx_dtmf_buf[0].start_ts = cur_ts; 
    232238        pj_mutex_unlock(stream->jb_mutex); 
    233     } 
     239 
     240        if (stream->tx_dtmf_count) 
     241            PJ_LOG(5,(THIS_FILE,"Sending DTMF digit id %c",  
     242                      digitmap[stream->tx_dtmf_buf[0].event])); 
     243 
     244    } else if (duration == 0) { 
     245        PJ_LOG(5,(THIS_FILE,"Sending DTMF digit id %c",  
     246                  digitmap[digit->event])); 
     247    } 
     248 
    234249 
    235250    frame_out->size = 4; 
     
    368383                                  const void *payload, unsigned payloadlen) 
    369384{ 
    370     static const char digitmap[16] = { '0', '1', '2', '3',  
    371                                        '4', '5', '6', '7',  
    372                                        '8', '9', '*', '#', 
    373                                        'A', 'B', 'C', 'D'}; 
    374385    const pjmedia_rtp_dtmf_event *event = payload; 
    375386 
Note: See TracChangeset for help on using the changeset viewer.