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/src/pjsua2/account.cpp

    r5636 r5649  
    300300    NODE_WRITE_UNSIGNED( this_node, startKeyframeInterval); 
    301301} 
     302/////////////////////////////////////////////////////////////////////////////// 
     303 
     304void AccountIpChangeConfig::readObject(const ContainerNode &node) throw(Error) 
     305{ 
     306    ContainerNode this_node = node.readContainer("AccountIpChangeConfig"); 
     307 
     308    NODE_READ_BOOL    ( this_node, shutdownTp); 
     309    NODE_READ_BOOL    ( this_node, hangupCalls); 
     310    NODE_READ_UNSIGNED( this_node, reinviteFlags); 
     311} 
     312 
     313void AccountIpChangeConfig::writeObject(ContainerNode &node) const throw(Error) 
     314{ 
     315    ContainerNode this_node = node.writeNewContainer("AccountIpChangeConfig"); 
     316 
     317    NODE_WRITE_BOOL    ( this_node, shutdownTp); 
     318    NODE_WRITE_BOOL    ( this_node, hangupCalls); 
     319    NODE_WRITE_UNSIGNED( this_node, reinviteFlags); 
     320} 
    302321 
    303322/////////////////////////////////////////////////////////////////////////////// 
     
    446465    ret.vid_stream_sk_cfg.count = videoConfig.startKeyframeCount; 
    447466    ret.vid_stream_sk_cfg.interval = videoConfig.startKeyframeInterval; 
     467 
     468    // AccountIpChangeConfig 
     469    ret.ip_change_cfg.shutdown_tp = ipChangeConfig.shutdownTp; 
     470    ret.ip_change_cfg.hangup_calls = ipChangeConfig.hangupCalls; 
     471    ret.ip_change_cfg.reinvite_flags = ipChangeConfig.reinviteFlags; 
    448472} 
    449473 
     
    615639    videoConfig.startKeyframeCount      = prm.vid_stream_sk_cfg.count; 
    616640    videoConfig.startKeyframeInterval   = prm.vid_stream_sk_cfg.interval; 
     641 
     642    // AccountIpChangeConfig 
     643    ipChangeConfig.shutdownTp = PJ2BOOL(prm.ip_change_cfg.shutdown_tp); 
     644    ipChangeConfig.hangupCalls = PJ2BOOL(prm.ip_change_cfg.hangup_calls); 
     645    ipChangeConfig.reinviteFlags = prm.ip_change_cfg.reinvite_flags; 
    617646} 
    618647 
Note: See TracChangeset for help on using the changeset viewer.