Commit 9606e32c55 for freeswitch.com

commit 9606e32c553fc637fdea53a4ba67f54a8f9711b7
Author: Dmitry Verenitsin <morbit85@gmail.com>
Date:   Wed Nov 18 22:25:41 2026 +0500

    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.

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)) {