Ignore:
Timestamp:
Aug 18, 2014 9:09:18 AM (7 years ago)
Author:
bennylp
Message:

More re #1677:

  • renamed the option to contact_use_src_port
  • added the missing pjsua2 API implementation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua2/account.cpp

    r4704 r4889  
    203203    NODE_READ_UNSIGNED( this_node, udpKaIntervalSec); 
    204204    NODE_READ_STRING  ( this_node, udpKaData); 
     205    NODE_READ_INT     ( this_node, contactUseSrcPort); 
    205206} 
    206207 
     
    233234    NODE_WRITE_UNSIGNED( this_node, udpKaIntervalSec); 
    234235    NODE_WRITE_STRING  ( this_node, udpKaData); 
     236    NODE_WRITE_INT     ( this_node, contactUseSrcPort); 
    235237} 
    236238 
     
    398400    ret.allow_contact_rewrite   = natConfig.contactRewriteUse; 
    399401    ret.contact_rewrite_method  = natConfig.contactRewriteMethod; 
     402    ret.contact_use_src_port    = natConfig.contactUseSrcPort; 
    400403    ret.allow_via_rewrite       = natConfig.viaRewriteUse; 
    401404    ret.allow_sdp_nat_rewrite   = natConfig.sdpNatRewriteUse; 
     
    559562    natConfig.contactRewriteUse = prm.allow_contact_rewrite; 
    560563    natConfig.contactRewriteMethod = prm.contact_rewrite_method; 
     564    natConfig.contactUseSrcPort = prm.contact_use_src_port; 
    561565    natConfig.viaRewriteUse     = prm.allow_via_rewrite; 
    562566    natConfig.sdpNatRewriteUse  = prm.allow_sdp_nat_rewrite; 
Note: See TracChangeset for help on using the changeset viewer.