don't turn X-FS- headers into variables, they are reserved for FS specific communication and should not be passed on

This commit is contained in:
Anthony Minessale 2011-09-08 10:01:52 -05:00
parent fb69d37592
commit 7d399cce96
1 changed files with 1 additions and 1 deletions

View 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);