[Freeswitch-svn] [commit] r5215 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
mikej at freeswitch.org
Fri May 25 12:14:12 EDT 2007
Author: mikej
Date: Fri May 25 12:14:12 2007
New Revision: 5215
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
Log:
Process P- headers into channel variables too.
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Fri May 25 12:14:12 2007
@@ -1924,7 +1924,7 @@
}
} else if (!strncasecmp(un->un_name, "Remote-Party-ID", 15)) {
process_rpid(un, tech_pvt);
- } else if (!strncasecmp(un->un_name, "X-", 2)) {
+ } else if (!strncasecmp(un->un_name, "X-", 2) || !strncasecmp(un->un_name, "P-", 2)) {
if (!switch_strlen_zero(un->un_value)) {
char *new_name;
if ((new_name = switch_mprintf("%s%s", SOFIA_SIP_HEADER_PREFIX, un->un_name))) {
More information about the Freeswitch-svn
mailing list