Ignore:
Timestamp:
Dec 28, 2016 3:40:07 AM (7 years ago)
Author:
nanang
Message:

Re #1900: More merged from trunk (r5512 mistakenly contains merged changes in third-party dir only).

Location:
pjproject/branches/projects/uwp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/uwp

  • pjproject/branches/projects/uwp/pjsip/src/pjsua2/account.cpp

    r4957 r5513  
    4444    NODE_READ_UNSIGNED  (this_node, unregWaitMsec); 
    4545    NODE_READ_UNSIGNED  (this_node, proxyUse); 
     46    NODE_READ_STRING    (this_node, contactParams); 
    4647 
    4748    readSipHeaders(this_node, "headers", headers); 
     
    6263    NODE_WRITE_UNSIGNED (this_node, unregWaitMsec); 
    6364    NODE_WRITE_UNSIGNED (this_node, proxyUse); 
     65    NODE_WRITE_STRING   (this_node, contactParams); 
    6466 
    6567    writeSipHeaders(this_node, "headers", headers); 
     
    278280    NODE_READ_NUM_T   ( this_node, pjmedia_vid_stream_rc_method, rateControlMethod); 
    279281    NODE_READ_UNSIGNED( this_node, rateControlBandwidth); 
     282    NODE_READ_UNSIGNED( this_node, startKeyframeCount); 
     283    NODE_READ_UNSIGNED( this_node, startKeyframeInterval); 
    280284} 
    281285 
     
    291295    NODE_WRITE_NUM_T   ( this_node, pjmedia_vid_stream_rc_method, rateControlMethod); 
    292296    NODE_WRITE_UNSIGNED( this_node, rateControlBandwidth); 
     297    NODE_WRITE_UNSIGNED( this_node, startKeyframeCount); 
     298    NODE_WRITE_UNSIGNED( this_node, startKeyframeInterval); 
    293299} 
    294300 
     
    326332    ret.unreg_timeout           = regConfig.unregWaitMsec; 
    327333    ret.reg_use_proxy           = regConfig.proxyUse; 
     334    ret.reg_contact_params      = str2Pj(regConfig.contactParams); 
    328335    for (i=0; i<regConfig.headers.size(); ++i) { 
    329336        pj_list_push_back(&ret.reg_hdr_list, &regConfig.headers[i].toPj()); 
     
    377384    ret.unpublish_max_wait_time_msec = presConfig.publishShutdownWaitMsec; 
    378385    ret.pidf_tuple_id           = str2Pj(presConfig.pidfTupleId); 
     386 
     387    // AccountMwiConfig 
     388    ret.mwi_enabled             = mwiConfig.enabled; 
     389    ret.mwi_expires             = mwiConfig.expirationSec; 
    379390 
    380391    // AccountNatConfig 
     
    430441    ret.vid_stream_rc_cfg.method= videoConfig.rateControlMethod; 
    431442    ret.vid_stream_rc_cfg.bandwidth = videoConfig.rateControlBandwidth; 
     443    ret.vid_stream_sk_cfg.count = videoConfig.startKeyframeCount; 
     444    ret.vid_stream_sk_cfg.interval = videoConfig.startKeyframeInterval; 
    432445} 
    433446 
     
    454467    regConfig.unregWaitMsec     = prm.unreg_timeout; 
    455468    regConfig.proxyUse          = prm.reg_use_proxy; 
     469    regConfig.contactParams     = pj2Str(prm.reg_contact_params); 
    456470    regConfig.headers.clear(); 
    457471    hdr = prm.reg_hdr_list.next; 
     
    595609    videoConfig.rateControlMethod       = prm.vid_stream_rc_cfg.method; 
    596610    videoConfig.rateControlBandwidth    = prm.vid_stream_rc_cfg.bandwidth; 
     611    videoConfig.startKeyframeCount      = prm.vid_stream_sk_cfg.count; 
     612    videoConfig.startKeyframeInterval   = prm.vid_stream_sk_cfg.interval; 
    597613} 
    598614 
     
    667683        } 
    668684 
    669         pjsua_acc_set_user_data(id, NULL); 
     685        // This caused error message of "Error: cannot find Account.." 
     686        // when Endpoint::on_reg_started() is called for unregistration. 
     687        //pjsua_acc_set_user_data(id, NULL); 
     688 
    670689        pjsua_acc_del(id); 
    671690    } 
Note: See TracChangeset for help on using the changeset viewer.