[Asterisk-code-review] res pjsip: Allow 'holdconn' to be set for DTLS setup. (asterisk[13])
Sean Bright
asteriskteam at digium.com
Fri Jan 19 09:34:13 CST 2018
Sean Bright has uploaded this change for review. ( https://gerrit.asterisk.org/8020
Change subject: res_pjsip: Allow 'holdconn' to be set for DTLS setup.
......................................................................
res_pjsip: Allow 'holdconn' to be set for DTLS setup.
Change-Id: Iace2560ed09c7714543a1a24c59c46b59da432f0
---
M main/rtp_engine.c
M res/res_pjsip.c
2 files changed, 6 insertions(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/20/8020/1
diff --git a/main/rtp_engine.c b/main/rtp_engine.c
index 6bedd17..8a2a493 100644
--- a/main/rtp_engine.c
+++ b/main/rtp_engine.c
@@ -2168,6 +2168,8 @@
dtls_cfg->default_setup = AST_RTP_DTLS_SETUP_PASSIVE;
} else if (!strcasecmp(value, "actpass")) {
dtls_cfg->default_setup = AST_RTP_DTLS_SETUP_ACTPASS;
+ } else if (!strcasecmp(value, "holdconn")) {
+ dtls_cfg->default_setup = AST_RTP_DTLS_SETUP_HOLDCONN;
}
} else if (!strcasecmp(name, "dtlsfingerprint")) {
if (!strcasecmp(value, "sha-256")) {
diff --git a/res/res_pjsip.c b/res/res_pjsip.c
index 55582e5..05719d6 100644
--- a/res/res_pjsip.c
+++ b/res/res_pjsip.c
@@ -851,6 +851,10 @@
<enum name="actpass"><para>
res_pjsip will offer and accept connections from the peer.
</para></enum>
+ <enum name="holdconn"><para>
+ res_pjsip does not want the connection to be established
+ for the time being.
+ </para></enum>
</enumlist>
</description>
</configOption>
--
To view, visit https://gerrit.asterisk.org/8020
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iace2560ed09c7714543a1a24c59c46b59da432f0
Gerrit-Change-Number: 8020
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180119/21bc9752/attachment.html>
More information about the asterisk-code-review
mailing list