Ignore:
Timestamp:
Dec 26, 2006 12:11:48 AM (17 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/pjsip/include/pjsua-lib/pjsua.h

    r861 r863  
    287287     * Application may then query the call info to get the 
    288288     * detail call states. 
     289     * 
     290     * @param call_id   The call index. 
     291     * @param e         Event which causes the call state to change. 
    289292     */ 
    290293    void (*on_call_state)(pjsua_call_id call_id, pjsip_event *e); 
     
    292295    /** 
    293296     * Notify application on incoming call. 
     297     * 
     298     * @param acc_id    The account which match the incoming call. 
     299     * @param call_id   The call id that has just been created for 
     300     *                  the call. 
     301     * @param rdata     The incoming INVITE request. 
    294302     */ 
    295303    void (*on_incoming_call)(pjsua_acc_id acc_id, pjsua_call_id call_id, 
     
    300308     * Normal application would need to implement this callback, e.g. 
    301309     * to connect the call's media to sound device. 
     310     * 
     311     * @param call_id   The call index. 
    302312     */ 
    303313    void (*on_call_media_state)(pjsua_call_id call_id); 
     314 
     315    /** 
     316     * Notify application upon incoming DTMF digits. 
     317     * 
     318     * @param call_id   The call index. 
     319     * @param digit     DTMF ASCII digit. 
     320     */ 
     321    void (*on_dtmf_digit)(pjsua_call_id call_id, int digit); 
    304322 
    305323    /** 
     
    309327     * is not defined, the default behavior is to accept the 
    310328     * transfer. 
     329     * 
     330     * @param call_id   The call index. 
     331     * @param dst       The destination where the call will be  
     332     *                  transfered to. 
     333     * @param code      Status code to be returned for the call transfer 
     334     *                  request. On input, it contains status code 200. 
    311335     */ 
    312336    void (*on_call_transfer_request)(pjsua_call_id call_id, 
     
    373397     * Application may then query the account info to get the 
    374398     * registration details. 
     399     * 
     400     * @param acc_id        Account ID. 
    375401     */ 
    376402    void (*on_reg_state)(pjsua_acc_id acc_id); 
     
    379405     * Notify application when the buddy state has changed. 
    380406     * Application may then query the buddy into to get the details. 
     407     * 
     408     * @param buddy_id      The buddy id. 
    381409     */ 
    382410    void (*on_buddy_state)(pjsua_buddy_id buddy_id); 
     
    386414     * Argument call_id will be -1 if MESSAGE request is not related to an 
    387415     * existing call. 
     416     * 
     417     * @param call_id       Containts the ID of the call where the IM was 
     418     *                      sent, or PJSUA_INVALID_ID if the IM was sent 
     419     *                      outside call context. 
     420     * @param from          URI of the sender. 
     421     * @param to            URI of the destination message. 
     422     * @param contact       The Contact URI of the sender, if present. 
     423     * @param mime_type     MIME type of the message. 
     424     * @param body          The message content. 
    388425     */ 
    389426    void (*on_pager)(pjsua_call_id call_id, const pj_str_t *from, 
     
    414451    /** 
    415452     * Notify application about typing indication. 
     453     * 
     454     * @param call_id       Containts the ID of the call where the IM was 
     455     *                      sent, or PJSUA_INVALID_ID if the IM was sent 
     456     *                      outside call context. 
     457     * @param from          URI of the sender. 
     458     * @param to            URI of the destination message. 
     459     * @param contact       The Contact URI of the sender, if present. 
     460     * @param is_typing     Non-zero if peer is typing, or zero if peer 
     461     *                      has stopped typing a message. 
    416462     */ 
    417463    void (*on_typing)(pjsua_call_id call_id, const pj_str_t *from, 
Note: See TracChangeset for help on using the changeset viewer.