Ignore:
Timestamp:
Dec 26, 2006 12:11:48 AM (14 years ago)
Author:
bennylp
Message:

Added DTMF callback support all the way to PJSUA API (ticket #48)

File:
1 edited

Legend:

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

    r568 r863  
    278278 
    279279/** 
     280 * Set callback to be called upon receiving DTMF digits. If callback is 
     281 * registered, the stream will not buffer incoming DTMF but rather call 
     282 * the callback as soon as DTMF digit is received completely. 
     283 * 
     284 * @param stream        The media stream. 
     285 * @param cb            Callback to be called upon receiving DTMF digits. 
     286 *                      The DTMF digits will be given to the callback as 
     287 *                      ASCII digits. 
     288 * @param user_data     User data to be returned back when the callback 
     289 *                      is called. 
     290 * 
     291 * @return              PJ_SUCCESS on success. 
     292 */ 
     293PJ_DECL(pj_status_t) 
     294pjmedia_stream_set_dtmf_callback(pjmedia_stream *stream, 
     295                                 void (*cb)(pjmedia_stream*,  
     296                                            void *user_data,  
     297                                            int digit),  
     298                                 void *user_data); 
     299 
     300/** 
    280301 * @} 
    281302 */ 
Note: See TracChangeset for help on using the changeset viewer.