- Timestamp:
- Dec 28, 2016 3:40:07 AM (8 years ago)
- Location:
- pjproject/branches/projects/uwp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/uwp
- Property svn:mergeinfo changed
/pjproject/trunk (added) merged: 5209,5212-5234,5237-5253,5255,5257-5292,5294-5297,5299-5332,5334-5394,5396-5438,5440-5469,5471-5496,5498-5510
- Property svn:mergeinfo changed
-
pjproject/branches/projects/uwp/pjsip/src/pjsua2/account.cpp
r4957 r5513 44 44 NODE_READ_UNSIGNED (this_node, unregWaitMsec); 45 45 NODE_READ_UNSIGNED (this_node, proxyUse); 46 NODE_READ_STRING (this_node, contactParams); 46 47 47 48 readSipHeaders(this_node, "headers", headers); … … 62 63 NODE_WRITE_UNSIGNED (this_node, unregWaitMsec); 63 64 NODE_WRITE_UNSIGNED (this_node, proxyUse); 65 NODE_WRITE_STRING (this_node, contactParams); 64 66 65 67 writeSipHeaders(this_node, "headers", headers); … … 278 280 NODE_READ_NUM_T ( this_node, pjmedia_vid_stream_rc_method, rateControlMethod); 279 281 NODE_READ_UNSIGNED( this_node, rateControlBandwidth); 282 NODE_READ_UNSIGNED( this_node, startKeyframeCount); 283 NODE_READ_UNSIGNED( this_node, startKeyframeInterval); 280 284 } 281 285 … … 291 295 NODE_WRITE_NUM_T ( this_node, pjmedia_vid_stream_rc_method, rateControlMethod); 292 296 NODE_WRITE_UNSIGNED( this_node, rateControlBandwidth); 297 NODE_WRITE_UNSIGNED( this_node, startKeyframeCount); 298 NODE_WRITE_UNSIGNED( this_node, startKeyframeInterval); 293 299 } 294 300 … … 326 332 ret.unreg_timeout = regConfig.unregWaitMsec; 327 333 ret.reg_use_proxy = regConfig.proxyUse; 334 ret.reg_contact_params = str2Pj(regConfig.contactParams); 328 335 for (i=0; i<regConfig.headers.size(); ++i) { 329 336 pj_list_push_back(&ret.reg_hdr_list, ®Config.headers[i].toPj()); … … 377 384 ret.unpublish_max_wait_time_msec = presConfig.publishShutdownWaitMsec; 378 385 ret.pidf_tuple_id = str2Pj(presConfig.pidfTupleId); 386 387 // AccountMwiConfig 388 ret.mwi_enabled = mwiConfig.enabled; 389 ret.mwi_expires = mwiConfig.expirationSec; 379 390 380 391 // AccountNatConfig … … 430 441 ret.vid_stream_rc_cfg.method= videoConfig.rateControlMethod; 431 442 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; 432 445 } 433 446 … … 454 467 regConfig.unregWaitMsec = prm.unreg_timeout; 455 468 regConfig.proxyUse = prm.reg_use_proxy; 469 regConfig.contactParams = pj2Str(prm.reg_contact_params); 456 470 regConfig.headers.clear(); 457 471 hdr = prm.reg_hdr_list.next; … … 595 609 videoConfig.rateControlMethod = prm.vid_stream_rc_cfg.method; 596 610 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; 597 613 } 598 614 … … 667 683 } 668 684 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 670 689 pjsua_acc_del(id); 671 690 }
Note: See TracChangeset
for help on using the changeset viewer.