Merge commit from fork

Run the display name and number through the same
`switch_clean_string()` and `switch_var_clean_string()` pass that
`profile_dup_clean()` applies when the profile is built from the
initial request, so a `${` in either is stored as `%{` whichever
message carried it.
This commit is contained in:
Dmitry Verenitsin authored and GitHub committed 2026-11-18 20:25:41 +03:00
1 parent 512443322a
commit 9606e32c55
1 file changed
+2 -2
+2 -2
View File
@@ -1332,8 +1332,8 @@ void sofia_update_callee_id(switch_core_session_t *session, sofia_profile_t *pro
name_dup = strdup(name);
number_dup = strdup(number);
switch_assert(name_dup && number_dup);
name = switch_sanitize_number(name_dup);
number = switch_sanitize_number(number_dup);
name = switch_var_clean_string(switch_clean_string(switch_sanitize_number(name_dup)));
number = switch_var_clean_string(switch_clean_string(switch_sanitize_number(number_dup)));
if (switch_channel_inbound_display(channel)) {