mirror of
https://github.com/asterisk/asterisk.git
synced 2025-12-01 02:31:55 +00:00
pbx_dundi: Fix PJSIP endpoint configuration check.
ASTERISK-28233
Change-Id: I0f11c096b307a6178e22ca49d9c756343f0e1fdc
(cherry picked from commit 6c53e5e870)
This commit is contained in:
committed by
Asterisk Development Team
parent
9c5f5358d7
commit
6a347f413d
@@ -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. */
|
/* PJSIP requires an endpoint to be specified explicitly. */
|
||||||
if (outgoing_sip_tech == DUNDI_PROTO_PJSIP) {
|
if (outgoing_sip_tech == DUNDI_PROTO_PJSIP) {
|
||||||
char *number, *ip = ast_strdupa(results[x].dest);
|
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");
|
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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user