chan_sip: Fix bug where DTLS configuration from general would copy dtlsenable.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@428034 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp 2014-11-16 12:12:33 +00:00
parent 6993743b1f
commit bc02cbabd9
1 changed files with 1 additions and 0 deletions

View File

@ -30404,6 +30404,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str
/* Set the default DTLS settings from default_tls_cfg */
ast_rtp_dtls_cfg_free(&peer->dtls_cfg);
ast_rtp_dtls_cfg_copy(&default_dtls_cfg, &peer->dtls_cfg);
peer->dtls_cfg.enabled = FALSE;
for (; v || ((v = alt) && !(alt=NULL)); v = v->next) {
if (!devstate_only) {