diff options
author | Benny Prijono <bennylp@teluu.com> | 2014-08-18 09:09:18 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2014-08-18 09:09:18 +0000 |
commit | 84f301467161a490a4df3ebb3664a4a67c3056e2 (patch) | |
tree | 4d83e1b9d3b8163f9538aed6acf9a2e9079e0201 /pjsip/src/pjsua2/account.cpp | |
parent | c38c8101be49bb4cb9cf95815f0c2ce955876c3b (diff) |
More re #1677:
- renamed the option to contact_use_src_port
- added the missing pjsua2 API implementation
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4889 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsua2/account.cpp')
-rw-r--r-- | pjsip/src/pjsua2/account.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pjsip/src/pjsua2/account.cpp b/pjsip/src/pjsua2/account.cpp index 247c4a4a..52178451 100644 --- a/pjsip/src/pjsua2/account.cpp +++ b/pjsip/src/pjsua2/account.cpp @@ -202,6 +202,7 @@ void AccountNatConfig::readObject(const ContainerNode &node) throw(Error) NODE_READ_STRING ( this_node, sipOutboundRegId); NODE_READ_UNSIGNED( this_node, udpKaIntervalSec); NODE_READ_STRING ( this_node, udpKaData); + NODE_READ_INT ( this_node, contactUseSrcPort); } void AccountNatConfig::writeObject(ContainerNode &node) const throw(Error) @@ -232,6 +233,7 @@ void AccountNatConfig::writeObject(ContainerNode &node) const throw(Error) NODE_WRITE_STRING ( this_node, sipOutboundRegId); NODE_WRITE_UNSIGNED( this_node, udpKaIntervalSec); NODE_WRITE_STRING ( this_node, udpKaData); + NODE_WRITE_INT ( this_node, contactUseSrcPort); } /////////////////////////////////////////////////////////////////////////////// @@ -397,6 +399,7 @@ void AccountConfig::toPj(pjsua_acc_config &ret) const ret.allow_contact_rewrite = natConfig.contactRewriteUse; ret.contact_rewrite_method = natConfig.contactRewriteMethod; + ret.contact_use_src_port = natConfig.contactUseSrcPort; ret.allow_via_rewrite = natConfig.viaRewriteUse; ret.allow_sdp_nat_rewrite = natConfig.sdpNatRewriteUse; ret.use_rfc5626 = natConfig.sipOutboundUse; @@ -558,6 +561,7 @@ void AccountConfig::fromPj(const pjsua_acc_config &prm, } natConfig.contactRewriteUse = prm.allow_contact_rewrite; natConfig.contactRewriteMethod = prm.contact_rewrite_method; + natConfig.contactUseSrcPort = prm.contact_use_src_port; natConfig.viaRewriteUse = prm.allow_via_rewrite; natConfig.sdpNatRewriteUse = prm.allow_sdp_nat_rewrite; natConfig.sipOutboundUse = prm.use_rfc5626; |