Compare commits

...

2 Commits

Author SHA1 Message Date
Luis Daniel Lucio Quiroz affcde8fb0
Merge 8c277de104 into 5cb74797fe 2025-01-17 16:40:18 +00:00
Luis Daniel Lucio Quiroz 8c277de104
Update sofia.c 2020-02-18 13:50:15 -05:00
1 changed files with 2 additions and 0 deletions

View File

@ -11563,6 +11563,8 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia
switch_channel_set_variable(channel, "sip_geolocation_error", un->un_value);
} else if (!strcasecmp(un->un_name, "userLocation")) {
switch_channel_set_variable(channel, "sip_user_location", un->un_value);
} else if (!strcasecmp(un->un_name, "Charge")) {
switch_channel_set_variable(channel, "sip_charge", un->un_value);
} else if (!strncasecmp(un->un_name, "X-", 2) || !strncasecmp(un->un_name, "P-", 2) || !strcasecmp(un->un_name, "User-to-User") || !strncasecmp(un->un_name, "On", 2) || !strncasecmp(un->un_name, "K-", 2)) {
if (!zstr(un->un_value)) {
char new_name[512] = "";