Ignore:
Timestamp:
Feb 21, 2006 11:47:00 PM (18 years ago)
Author:
bennylp
Message:

Implemented major feature: call hold and transfer

File:
1 edited

Legend:

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

    r184 r212  
    9898     * This callback is called when the invite session has received  
    9999     * new offer from peer. Application can inspect the remote offer  
    100      * by calling negotiator's pjmedia_sdp_neg_get_neg_remote(), and  
    101      * optionally specify a modified answer.  
    102      * 
    103      * This callback is optional. When it's not specified, the default  
    104      * behavior is nothing. After calling this callback, the negotiator  
    105      * will negotiate remote offer with session's initial capability. 
     100     * in "offer".  
    106101     * 
    107102     * @param inv       The invite session. 
    108      */ 
    109     void (*on_rx_offer)(pjsip_inv_session *inv); 
     103     * @param offer     Remote offer. 
     104     */ 
     105    void (*on_rx_offer)(pjsip_inv_session *inv, 
     106                        const pjmedia_sdp_session *offer); 
    110107 
    111108    /** 
     
    122119    void (*on_media_update)(pjsip_inv_session *inv_ses,  
    123120                            pj_status_t status); 
    124  
    125121}; 
    126122 
     
    388384 
    389385 
    390 #if 0 
    391  If we implement this, we need to send SDP answer automatically on  
    392  subsequent request/response. Something like "has_answer" flag. 
    393  
    394 /** 
    395  * Set local answer to respond to remote SDP offer. By calling this function, 
    396  * application can start SDP negotiation immediately without having to 
    397  * send any request or response message. This function is normally called 
    398  * when on_rx_offer() callback is called. 
     386/** 
     387 * Set local answer to respond to remote SDP offer, to be carried by  
     388 * subsequent response (or request). 
    399389 * 
    400390 * @param inv           The invite session. 
    401391 * @param sdp           The SDP description which will be set as answer 
    402392 *                      to remote. 
    403  */ 
    404 PJ_DECL(pj_status_t) pjsip_inv_set_sdp_answer( pjsip_inv_session *inv, 
    405                                                const pjmedia_sdp_session *sdp ); 
    406 #endif 
     393 * 
     394 * @return              PJ_SUCCESS if local answer can be accepted by 
     395 *                      SDP negotiator. 
     396 */ 
     397PJ_DECL(pj_status_t) pjsip_inv_set_sdp_answer(pjsip_inv_session *inv, 
     398                                              const pjmedia_sdp_session *sdp ); 
     399 
    407400 
    408401/** 
Note: See TracChangeset for help on using the changeset viewer.