Ignore:
Timestamp:
Jun 20, 2007 10:03:46 AM (17 years ago)
Author:
bennylp
Message:

More on ticket #399: a)send full offer on 200/OK response when re-INVITE does not have SDP, b) added on_create_offer() callback, c) handle some error cases

File:
1 edited

Legend:

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

    r1319 r1379  
    150150     * This callback is called when the invite session has received  
    151151     * new offer from peer. Application can inspect the remote offer  
    152      * in "offer".  
     152     * in "offer", and set the SDP answer with #pjsip_inv_set_sdp_answer(). 
     153     * When the application sends a SIP message to send the answer,  
     154     * this SDP answer will be negotiated with the offer, and the result 
     155     * will be sent with the SIP message. 
    153156     * 
    154157     * @param inv       The invite session. 
     
    157160    void (*on_rx_offer)(pjsip_inv_session *inv, 
    158161                        const pjmedia_sdp_session *offer); 
     162 
     163    /** 
     164     * This callback is optional, and it is used to ask the application 
     165     * to create a fresh offer, when the invite session has received  
     166     * re-INVITE without offer. This offer then will be sent in the 
     167     * 200/OK response to the re-INVITE request. 
     168     * 
     169     * If application doesn't implement this callback, the invite session 
     170     * will send the currently active SDP as the offer. 
     171     * 
     172     * @param inv       The invite session. 
     173     * @param p_offer   Pointer to receive the SDP offer created by 
     174     *                  application. 
     175     */ 
     176    void (*on_create_offer)(pjsip_inv_session *inv, 
     177                            pjmedia_sdp_session **p_offer); 
    159178 
    160179    /** 
Note: See TracChangeset for help on using the changeset viewer.