ソースを参照

forgotten file in previous commit

Vaclav Kubart 19 年 前
コミット
06389eecac
1 ファイル変更6 行追加0 行削除
  1. 6 0
      modules/tm/sip_msg.c

+ 6 - 0
modules/tm/sip_msg.c

@@ -361,6 +361,7 @@ struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg, int *sip_msg_len )
 		case HDR_CONTENTLENGTH_T:
 		case HDR_EXPIRES_T:
 		case HDR_SUPPORTED_T:
+		case HDR_REQUIRE_T:
 		case HDR_PROXYREQUIRE_T:
 		case HDR_UNSUPPORTED_T:
 		case HDR_ALLOW_T:
@@ -675,6 +676,11 @@ do { \
 				new_msg->supported = new_hdr;
 			}
 			break;
+		case HDR_REQUIRE_T:
+			if (!HOOK_SET(require)) {
+				new_msg->require = new_hdr;
+			}
+			break;
 		case HDR_PROXYREQUIRE_T:
 			if (!HOOK_SET(proxy_require)) {
 				new_msg->proxy_require = new_hdr;