From 7ad249974edabd68b199d0e34b45de46ff51d0c0 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sat, 26 Sep 2020 02:09:34 +0000 Subject: [PATCH] [core] don't double set caller-id --- src/mod/endpoints/mod_verto/mod_verto.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index 7ff6b1e799..b08f06ae65 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -4033,7 +4033,9 @@ static switch_bool_t verto__invite_func(const char *method, cJSON *params, jsock caller_id_name = var; } } else if (caller_id_name) { - switch_event_add_header_string(jsock->params, SWITCH_STACK_BOTTOM, "caller-id-name", caller_id_name); + if (!switch_event_get_header(jsock->params, "caller-id-name")) { + switch_event_add_header_string(jsock->params, SWITCH_STACK_BOTTOM, "caller-id-name", caller_id_name); + } } if (zstr(caller_id_number)) {