FS-9083 [mod-sofia] Pass On SIP headers from leg A to B

This commit is contained in:
Giacomo Vacca
2016-04-18 10:59:54 +02:00
parent 1b9fda720a
commit 252f0e2618
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -10558,7 +10558,7 @@ 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 (!strncasecmp(un->un_name, "X-", 2) || !strncasecmp(un->un_name, "P-", 2) || !strcasecmp(un->un_name, "User-to-User")) {
} 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)) {
if (!zstr(un->un_value)) {
char new_name[512] = "";
int reps = 0;