From 0106f43715e2c8383d1aea4c88605d5ed4b4bd22 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Wed, 3 May 2023 10:01:18 +0200 Subject: [PATCH] sip-origin: Only use NUTAG_URL for the sip case (not sips) When configured to use sips (TLS) we don't want to listen for unencrypted traffic. Fixes: #454 --- plugins/provider/sip/calls-sip-origin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/provider/sip/calls-sip-origin.c b/plugins/provider/sip/calls-sip-origin.c index 9d9468d..2a5e0de 100644 --- a/plugins/provider/sip/calls-sip-origin.c +++ b/plugins/provider/sip/calls-sip-origin.c @@ -1006,7 +1006,7 @@ setup_nua (CallsSipOrigin *self) sip_callback, self, NUTAG_USER_AGENT (APP_DATA_NAME), - NUTAG_URL (sip_url), + TAG_IF (!use_sips, NUTAG_URL (sip_url)), TAG_IF (use_sips, NUTAG_SIPS_URL (sips_url)), SIPTAG_FROM_STR (from_str), NUTAG_ALLOW ("INVITE, ACK, BYE, CANCEL, OPTIONS, UPDATE"),