Module: sip-router
Branch: master
Commit: f4e8001524226fed4dc34e8d72aa72aef3c9f237
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f4e8001…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Fri Mar 27 09:03:47 2009 +0100
Kamailio compatibility: Privacy header field name parser
This patch extendes the tm module with support for the Privacy header
field which are now parsed by the core, this patch teaches tm how to
ignore them.
---
modules/tm/sip_msg.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/tm/sip_msg.c b/modules/tm/sip_msg.c
index 0ebbda4..6b31eb0 100644
--- a/modules/tm/sip_msg.c
+++ b/modules/tm/sip_msg.c
@@ -490,6 +490,7 @@ struct sip_msg* sip_msg_cloner( struct sip_msg *org_msg, int
*sip_msg_len )
case HDR_PPI_T:
case HDR_PAI_T:
case HDR_PATH_T:
+ case HDR_PRIVACY_T:
/* we ignore them for now even if they have something parsed*/
break;
}/*switch*/
@@ -893,6 +894,11 @@ struct sip_msg* sip_msg_cloner( struct sip_msg *org_msg, int
*sip_msg_len )
new_msg->path = new_hdr;
}
break;
+ case HDR_PRIVACY_T:
+ if (!HOOK_SET(privacy)) {
+ new_msg->privacy = new_hdr;
+ }
+ break;
}/*switch*/
if ( last_hdr )