Explorar o código

Adding cases for HDR_PPI_T, HDR_PAI_T, and HDR_PATH_T

Jan Janak %!s(int64=16) %!d(string=hai) anos
pai
achega
4ad9320a7a
Modificáronse 1 ficheiros con 18 adicións e 0 borrados
  1. 18 0
      modules/tm/sip_msg.c

+ 18 - 0
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 )