Ignore:
Timestamp:
Sep 15, 2017 5:32:08 AM (7 years ago)
Author:
riza
Message:

Re #2041: Implement API to handle IP address change.

File:
1 edited

Legend:

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

    r5636 r5649  
    882882 
    883883/** 
     884 * Account config specific to IP address change. 
     885 */ 
     886typedef struct AccountIpChangeConfig 
     887{     
     888    /** 
     889     * Shutdown the transport used for account registration. If this is set to 
     890     * PJ_TRUE, the transport will be shutdown altough it's used by multiple 
     891     * account. Shutdown transport will be followed by re-Registration if 
     892     * AccountConfig.natConfig.contactRewriteUse is enabled. 
     893     * 
     894     * Default: true 
     895     */ 
     896    bool                shutdownTp; 
     897 
     898    /** 
     899     * Hangup active calls associated with the acount. If this is set to true,  
     900     * then the calls will be hang up. 
     901     * 
     902     * Default: false 
     903     */ 
     904    bool                hangupCalls; 
     905 
     906    /** 
     907     * Specify the call flags used in the re-INVITE when \a hangupCalls is set  
     908     * to false. If this is set to 0, no re-INVITE will be sent. The  
     909     * re-INVITE will be sent after re-Registration is finished. 
     910     * 
     911     * Default: PJSUA_CALL_REINIT_MEDIA | PJSUA_CALL_UPDATE_CONTACT | 
     912     *          PJSUA_CALL_UPDATE_VIA 
     913     */ 
     914    unsigned            reinviteFlags; 
     915 
     916public: 
     917    /** 
     918     * Read this object from a container node. 
     919     * 
     920     * @param node              Container to read values from. 
     921     */ 
     922    virtual void readObject(const ContainerNode &node) throw(Error); 
     923 
     924    /** 
     925     * Write this object to a container node. 
     926     * 
     927     * @param node              Container to write values to. 
     928     */ 
     929    virtual void writeObject(ContainerNode &node) const throw(Error); 
     930     
     931} AccountIpChangeConfig; 
     932 
     933/** 
    884934 * Account configuration. 
    885935 */ 
     
    941991     */ 
    942992    AccountVideoConfig  videoConfig; 
     993 
     994    /** 
     995     * IP Change settings. 
     996     */ 
     997    AccountIpChangeConfig ipChangeConfig; 
    943998 
    944999public: 
Note: See TracChangeset for help on using the changeset viewer.