Ignore:
Timestamp:
Aug 16, 2017 4:53:44 AM (2 years ago)
Author:
ming
Message:

Fixed #2037: Add on_rx_offer2() callback for SIP invite
Thanks to Andrey Kovalenko for the suggestion and the initial version of the patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip-ua/sip_inv.h

    r5435 r5641  
    9898 
    9999/** 
     100 * Structure to hold parameters when calling the callback 
     101 * #on_rx_offer2(). 
     102 */ 
     103struct pjsip_inv_on_rx_offer_cb_param 
     104{ 
     105    const pjmedia_sdp_session   *offer;     /** Remote offer.               */ 
     106    const pjsip_rx_data         *rdata;     /** The received request.       */ 
     107}; 
     108 
     109 
     110/** 
    100111 * This structure contains callbacks to be registered by application to  
    101112 * receieve notifications from the framework about various events in 
     
    155166     * will be sent with the SIP message. 
    156167     * 
     168     * Note: if callback #on_rx_offer2() is implemented, this callback will 
     169     * not be called. 
     170     * 
    157171     * @param inv       The invite session. 
    158172     * @param offer     Remote offer. 
    159173     */ 
    160174    void (*on_rx_offer)(pjsip_inv_session *inv, 
    161                         const pjmedia_sdp_session *offer); 
     175                        const pjmedia_sdp_session *offer); 
     176 
     177    /** 
     178     * This callback is called when the invite session has received  
     179     * new offer from peer. Variant of #on_rx_offer() callback. 
     180     * 
     181     * @param inv       The invite session. 
     182     * @param param     The callback parameters. 
     183     */ 
     184    void (*on_rx_offer2)(pjsip_inv_session *inv, 
     185                         struct pjsip_inv_on_rx_offer_cb_param *param); 
    162186 
    163187    /** 
Note: See TracChangeset for help on using the changeset viewer.