Ignore:
Timestamp:
Mar 16, 2011 3:52:20 AM (11 years ago)
Author:
bennylp
Message:

Fixed #1209: new enhancement: Option to update Contact URI when sending re-INVITE or UPDATE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h

    r3441 r3452  
    30233023} pjsua_call_info; 
    30243024 
    3025  
     3025/** 
     3026 * Flags to be given to various call APIs. More than one flags may be 
     3027 * specified by bitmasking them. 
     3028 */ 
     3029typedef enum pjsua_call_flag 
     3030{ 
     3031    /** 
     3032     * When the call is being put on hold, specify this flag to unhold it. 
     3033     * This flag is only valid for #pjsua_call_reinvite() and 
     3034     * #pjsua_call_update(). Note: for compatibility reason, this flag 
     3035     * must have value of 1 because previously the unhold option is 
     3036     * specified as boolean value. 
     3037     */ 
     3038    PJSUA_CALL_UNHOLD = 1, 
     3039 
     3040    /** 
     3041     * Update the local invite session's contact with the contact URI from 
     3042     * the account. This flag is only valid for #pjsua_call_reinvite() and 
     3043     * #pjsua_call_update(). This flag is useful in IP address change 
     3044     * situation, after the local account's Contact has been updated 
     3045     * (typically with re-registration) use this flag to update the invite 
     3046     * session with the new Contact and to inform this new Contact to the 
     3047     * remote peer with the outgoing re-INVITE or UPDATE 
     3048     */ 
     3049    PJSUA_CALL_UPDATE_CONTACT = 2 
     3050 
     3051} pjsua_call_flag; 
    30263052 
    30273053/** 
     
    33133339 * 
    33143340 * @param call_id       Call identification. 
    3315  * @param unhold        If this argument is non-zero and the call is locally 
    3316  *                      held, this will release the local hold. 
     3341 * @param options       Bitmask of pjsua_call_flag constants. Note that 
     3342 *                      for compatibility, specifying PJ_TRUE here is 
     3343 *                      equal to specifying PJSUA_CALL_UNHOLD flag. 
    33173344 * @param msg_data      Optional message components to be sent with 
    33183345 *                      the request. 
     
    33213348 */ 
    33223349PJ_DECL(pj_status_t) pjsua_call_reinvite(pjsua_call_id call_id, 
    3323                                          pj_bool_t unhold, 
     3350                                         unsigned options, 
    33243351                                         const pjsua_msg_data *msg_data); 
    33253352 
     
    33283355 * 
    33293356 * @param call_id       Call identification. 
    3330  * @param options       Must be zero for now. 
     3357 * @param options       Bitmask of pjsua_call_flag constants. 
    33313358 * @param msg_data      Optional message components to be sent with 
    33323359 *                      the request. 
Note: See TracChangeset for help on using the changeset viewer.