mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-07 22:03:50 +00:00
[core] don't double set caller-id
This commit is contained in:
parent
b32b58ec81
commit
a4246835f9
@ -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"))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user