mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 16:15:04 +00:00
Process P- headers into channel variables too.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5215 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
4b29f7c3d9
commit
5f921c6d20
@ -1924,7 +1924,7 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
|
||||
}
|
||||
} 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))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user