[core] don't double set caller-id

This commit is contained in:
Anthony Minessale 2020-09-26 02:09:34 +00:00 committed by Andrey Volk
parent 6789eedd5b
commit 7ad249974e
1 changed files with 3 additions and 1 deletions

View File

@ -4033,8 +4033,10 @@ static switch_bool_t verto__invite_func(const char *method, cJSON *params, jsock
caller_id_name = var;
}
} else if (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)) {
if ((var = switch_event_get_header(jsock->params, "caller-id-number"))) {