In some scenarios (e.g. MetaSwitch interop) the `display` field of callee-id should be left empty instead of being overwritten with the number.
As is done in other places, we allow for `_undef_` to mean "leave the field empty".
if (zstr(number)) {
name = number = "UNKNOWN";
}
+
+ if (!zstr(name) && !strcmp(name,"_undef_")) {
+ name = "";
+ }
} else {
if (zstr(name)) {
name = caller_profile->callee_id_name;
if (zstr(number)) {
number = caller_profile->destination_number;
}
+
+ if (!zstr(name) && !strcmp(name,"_undef_")) {
+ name = "";
+ }
}
if ((uuid = switch_channel_get_partner_uuid(channel)) && (session_b = switch_core_session_locate(uuid))) {