From 21c07cf6e1ec52bb1d29323a1a3a914d61cb56b3 Mon Sep 17 00:00:00 2001 From: "Joshua C. Colp" Date: Thu, 13 Apr 2023 06:35:17 -0300 Subject: [PATCH] pbx_dundi: Fix PJSIP endpoint configuration check. ASTERISK-28233 Change-Id: I0f11c096b307a6178e22ca49d9c756343f0e1fdc --- pbx/pbx_dundi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c index d02752ab71..3c876b07c0 100644 --- a/pbx/pbx_dundi.c +++ b/pbx/pbx_dundi.c @@ -4856,7 +4856,7 @@ static int dundi_exec(struct ast_channel *chan, const char *context, const char /* PJSIP requires an endpoint to be specified explicitly. */ if (outgoing_sip_tech == DUNDI_PROTO_PJSIP) { char *number, *ip = ast_strdupa(results[x].dest); - if (!ast_strlen_zero(pjsip_outgoing_endpoint)) { + if (ast_strlen_zero(pjsip_outgoing_endpoint)) { ast_log(LOG_WARNING, "PJSIP calls require an endpoint to be specified explicitly (use the pjsip_outgoing_endpoint option in dundi.conf)\n"); return -1; } -- 2.47.2