From 9606e32c553fc637fdea53a4ba67f54a8f9711b7 Mon Sep 17 00:00:00 2001 From: Dmitry Verenitsin Date: Wed, 18 Nov 2026 22:25:41 +0500 Subject: [PATCH] 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. --- src/mod/endpoints/mod_sofia/sofia.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 1a142761d9..877d574d28 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -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)) {