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/include/pjsua2 | |
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/include/pjsua2')
-rw-r--r-- | pjsip/include/pjsua2/account.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pjsip/include/pjsua2/account.hpp b/pjsip/include/pjsua2/account.hpp index 2a7199f2..6452ad52 100644 --- a/pjsip/include/pjsua2/account.hpp +++ b/pjsip/include/pjsua2/account.hpp @@ -561,6 +561,19 @@ struct AccountNatConfig : public PersistentObject int contactRewriteMethod; /** + * Specify if source TCP port should be used as the initial Contact + * address if TCP/TLS transport is used. Note that this feature will + * be automatically turned off when nameserver is configured because + * it may yield different destination address due to DNS SRV resolution. + * Also some platforms are unable to report the local address of the + * TCP socket when it is still connecting. In these cases, this + * feature will also be turned off. + * + * Default: 1 (yes). + */ + int contactUseSrcPort; + + /** * This option is used to overwrite the "sent-by" field of the Via header * for outgoing messages with the same interface address as the one in * the REGISTER request, as long as the request uses the same transport |