Sfoglia il codice sorgente

Adding cases for HDR_PPI_T, HDR_PAI_T, and HDR_PATH_T

Jan Janak 16 anni fa
parent
commit
4ad9320a7a
1 ha cambiato i file con 18 aggiunte e 0 eliminazioni
  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 )