Browse code

- added diversion and rpid header cloning

Jan Janak authored on 11/01/2006 00:28:18
Showing 1 changed files
... ...
@@ -360,6 +360,8 @@ struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg, int *sip_msg_len )
360 360
 			case HDR_USERAGENT:
361 361
 			case HDR_ACCEPTDISPOSITION:
362 362
 			case HDR_CONTENTDISPOSITION:
363
+		        case HDR_DIVERSION:
364
+		        case HDR_RPID:
363 365
 				/* we ignore them for now even if they have something parsed*/
364 366
 				break;
365 367
 
... ...
@@ -708,6 +710,14 @@ do { \
708 710
 				if (!HOOK_SET(content_disposition)) {
709 711
 					new_msg->content_disposition = new_hdr;
710 712
 				}
713
+			case HDR_DIVERSION:
714
+				if (!HOOK_SET(diversion)) {
715
+					new_msg->diversion = new_hdr;
716
+				}
717
+			case HDR_RPID:
718
+				if (!HOOK_SET(rpid)) {
719
+					new_msg->rpid = new_hdr;
720
+				}
711 721
 				break;
712 722
 		}/*switch*/
713 723