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/session.h

    r518 r863  
    322322 
    323323/** 
     324 * Set callback to be called upon receiving DTMF digits. If callback is 
     325 * registered, the stream will not buffer incoming DTMF but rather call 
     326 * the callback as soon as DTMF digit is received completely. 
     327 * 
     328 * @param session       The media session. 
     329 * @param index         The stream index. 
     330 * @param cb            Callback to be called upon receiving DTMF digits. 
     331 *                      The DTMF digits will be given to the callback as 
     332 *                      ASCII digits. 
     333 * @param user_data     User data to be returned back when the callback 
     334 *                      is called. 
     335 * 
     336 * @return              PJ_SUCCESS on success. 
     337 */ 
     338PJ_DECL(pj_status_t) 
     339pjmedia_session_set_dtmf_callback(pjmedia_session *session, 
     340                                  unsigned index, 
     341                                  void (*cb)(pjmedia_stream*,  
     342                                             void *user_data,  
     343                                             int digit),  
     344                                  void *user_data); 
     345 
     346/** 
    324347 * Destroy media session. 
    325348 * 
Note: See TracChangeset for help on using the changeset viewer.