Ignore:
Timestamp:
Oct 2, 2015 2:08:17 AM (9 years ago)
Author:
nanang
Message:

Close #1892: Add pjsua/pjsua2 callback on_call_tx_offer()/Call::onCallTxOffer() to notify incoming re-INVITE without offer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua2/call.hpp

    r5165 r5185  
    852852 
    853853/** 
     854 * This structure contains parameters for Call::onCallTxOffer() callback. 
     855 */ 
     856struct OnCallTxOfferParam 
     857{ 
     858    /** 
     859     * The current call setting, application can update this setting for 
     860     * generating the offer. Note that application should maintain any 
     861     * active media to avoid the need for the peer to reject the offer. 
     862     */ 
     863    CallSetting         opt; 
     864}; 
     865 
     866/** 
    854867 * This structure contains parameters for Call::onCallRedirected() callback. 
    855868 */ 
     
    16011614     */ 
    16021615    virtual void onCallRxOffer(OnCallRxOfferParam &prm) 
     1616    { PJ_UNUSED_ARG(prm); } 
     1617     
     1618    /** 
     1619     * Notify application when call has received INVITE with no SDP offer. 
     1620     * Application can update the call setting (e.g: add audio/video), or 
     1621     * enable/disable codecs, or update other media session settings from 
     1622     * within the callback, however, as mandated by the standard (RFC3261 
     1623     * section 14.2), it must ensure that the update overlaps with the 
     1624     * existing media session (in codecs, transports, or other parameters) 
     1625     * that require support from the peer, this is to avoid the need for 
     1626     * the peer to reject the offer. 
     1627     * 
     1628     * When this callback is not implemented, the default behavior is to send 
     1629     * SDP offer using current active media session (with all enabled codecs 
     1630     * on each media type). 
     1631     * 
     1632     * @param prm       Callback parameter. 
     1633     */ 
     1634    virtual void onCallTxOffer(OnCallTxOfferParam &prm) 
    16031635    { PJ_UNUSED_ARG(prm); } 
    16041636     
Note: See TracChangeset for help on using the changeset viewer.