]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_sofia] add K- to prefixes that create a sip_h_ variable 90/head
authorlazedo <luis.azedo@factorlusitano.com>
Thu, 31 Oct 2019 12:27:21 +0000 (12:27 +0000)
committerlazedo <luis.azedo@factorlusitano.com>
Thu, 31 Oct 2019 12:27:21 +0000 (12:27 +0000)
used by sip tracing tools and not to confuse with application (X-) or (P-)

src/mod/endpoints/mod_sofia/sofia.c

index 38cf504f83e6699313c871c8b9c4c194e8540f67..e35089641a24cf07d0443e2da1fbfd36be7d9fee 100644 (file)
@@ -11327,7 +11327,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") || !strncasecmp(un->un_name, "On", 2)) {
+                       } 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] = "";
                                        int reps = 0;