]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
pbx_dundi: Fix PJSIP endpoint configuration check.
authorJoshua C. Colp <jcolp@sangoma.com>
Thu, 13 Apr 2023 09:35:17 +0000 (06:35 -0300)
committerAsterisk Development Team <asteriskteam@digium.com>
Mon, 8 May 2023 17:55:17 +0000 (17:55 +0000)
ASTERISK-28233

Change-Id: I0f11c096b307a6178e22ca49d9c756343f0e1fdc
(cherry picked from commit f5c9f7d3c802a0f504d099274eaad7893ee7bb48)

pbx/pbx_dundi.c

index a353bada7c692882e1c2c0eb4496027ed3b27a62..95239d2bca323f39172fe5512d8d975078f8f078 100644 (file)
@@ -4896,7 +4896,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;
                        }