Module: sip-router Branch: master Commit: 4ad9320a7a31b41f375872e56042904069cd943c URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4ad9320a...
Author: Jan Janak jan@iptel.org Committer: Jan Janak jan@iptel.org Date: Tue Mar 17 10:24:46 2009 +0100
Adding cases for HDR_PPI_T, HDR_PAI_T, and HDR_PATH_T
---
modules/tm/sip_msg.c | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/modules/tm/sip_msg.c b/modules/tm/sip_msg.c index 82f4433..90a3fa1 100644 --- a/modules/tm/sip_msg.c +++ b/modules/tm/sip_msg.c @@ -487,6 +487,9 @@ struct sip_msg* sip_msg_cloner( struct sip_msg *org_msg, int *sip_msg_len ) case HDR_DATE_T: case HDR_IDENTITY_T: case HDR_IDENTITY_INFO_T: + case HDR_PPI_T: + case HDR_PAI_T: + case HDR_PATH_T: /* we ignore them for now even if they have something parsed*/ break; }/*switch*/ @@ -874,6 +877,21 @@ struct sip_msg* sip_msg_cloner( struct sip_msg *org_msg, int *sip_msg_len ) new_msg->sipifmatch = new_hdr; } break; + case HDR_PPI_T: + if (!HOOK_SET(ppi)) { + new_msg->ppi = new_hdr; + } + break; + case HDR_PAI_T: + if (!HOOK_SET(pai)) { + new_msg->pai = new_hdr; + } + break; + case HDR_PATH_T: + if (!HOOK_SET(path)) { + new_msg->path = new_hdr; + } + break; }/*switch*/
if ( last_hdr )