Selaa lähdekoodia

- added diversion and rpid header cloning

Jan Janak 19 vuotta sitten
vanhempi
commit
6e7ca4d68d
1 muutettua tiedostoa jossa 10 lisäystä ja 0 poistoa
  1. 10 0
      modules/tm/sip_msg.c

+ 10 - 0
modules/tm/sip_msg.c

@@ -360,6 +360,8 @@ struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg, int *sip_msg_len )
 			case HDR_USERAGENT:
 			case HDR_ACCEPTDISPOSITION:
 			case HDR_CONTENTDISPOSITION:
+		        case HDR_DIVERSION:
+		        case HDR_RPID:
 				/* we ignore them for now even if they have something parsed*/
 				break;
 
@@ -708,6 +710,14 @@ do { \
 				if (!HOOK_SET(content_disposition)) {
 					new_msg->content_disposition = new_hdr;
 				}
+			case HDR_DIVERSION:
+				if (!HOOK_SET(diversion)) {
+					new_msg->diversion = new_hdr;
+				}
+			case HDR_RPID:
+				if (!HOOK_SET(rpid)) {
+					new_msg->rpid = new_hdr;
+				}
 				break;
 		}/*switch*/