mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-26 20:21:40 +00:00
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:
1 parent
512443322a
commit
9606e32c55
1 file changed
+2
-2
@@ -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)) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user