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/pjsua-lib/pjsua.h

    r5131 r5185  
    910910                             pjsip_status_code *code, 
    911911                             pjsua_call_setting *opt); 
     912 
     913 
     914    /** 
     915    * Notify application when call has received INVITE with no SDP offer. 
     916    * Application can update the call setting (e.g: add audio/video), or 
     917    * enable/disable codecs, or update other media session settings from 
     918    * within the callback, however, as mandated by the standard (RFC3261 
     919    * section 14.2), it must ensure that the update overlaps with the 
     920    * existing media session (in codecs, transports, or other parameters) 
     921    * that require support from the peer, this is to avoid the need for 
     922    * the peer to reject the offer. 
     923    * 
     924    * When this callback is not defined, the default behavior is to send 
     925    * SDP offer using current active media session (with all enabled codecs 
     926    * on each media type). 
     927    * 
     928    * @param call_id    The call index. 
     929    * @param reserved   Reserved param, currently not used. 
     930    * @param opt        The current call setting, application can update 
     931    *                   this setting for generating the offer. 
     932    */ 
     933    void (*on_call_tx_offer)(pjsua_call_id call_id, 
     934                             void *reserved, 
     935                             pjsua_call_setting *opt); 
     936 
    912937 
    913938    /** 
Note: See TracChangeset for help on using the changeset viewer.