]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
don't turn X-FS- headers into variables, they are reserved for FS specific communicat...
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 8 Sep 2011 15:01:52 +0000 (10:01 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 8 Sep 2011 15:02:16 +0000 (10:02 -0500)
src/mod/endpoints/mod_sofia/sofia_glue.c

index 1116d212350a2733224e9b4733a4e8b20917ae0d..f57c2ab350f9ebb394c3077e196d852c72a57473 100644 (file)
@@ -1924,7 +1924,7 @@ void sofia_glue_set_extra_headers(switch_channel_t *channel, sip_t const *sip, c
        }
 
        for (un = sip->sip_unknown; un; un = un->un_next) {
-               if (!strncasecmp(un->un_name, "X-", 2) || !strncasecmp(un->un_name, "P-", 2)) {
+               if ((!strncasecmp(un->un_name, "X-", 2) && strncasecmp(un->un_name, "X-FS-", 5)) || !strncasecmp(un->un_name, "P-", 2)) {
                        if (!zstr(un->un_value)) {
                                switch_snprintf(name, sizeof(name), "%s%s", prefix, un->un_name);
                                switch_channel_set_variable(channel, name, un->un_value);