浏览代码

- fix problem in call-id parsing (related to carrierroute)

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@5168 689a6050-402a-0410-94f2-e92a70836424
Henning Westerholt 17 年之前
父节点
当前提交
8f162d021f
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      modules/carrierroute/prime_hash.c

+ 3 - 3
modules/carrierroute/prime_hash.c

@@ -136,15 +136,15 @@ static int determine_source (struct sip_msg *msg, enum hash_source source,
 }
 
 static int validate_msg(struct sip_msg * msg) {
-	if(!msg->callid && ((parse_headers(msg, HDR_CALLID_T, 0) == -1) || !msg->callid)) {
+	if(!msg->callid && ((parse_headers(msg, HDR_CALLID_F, 0) == -1) || !msg->callid)) {
 		LM_ERR("Message has no Call-ID header\n");
 		return -1;
 	}
-	if(!msg->to && ((parse_headers(msg, HDR_TO_T, 0) == -1) || !msg->to)) {
+	if(!msg->to && ((parse_headers(msg, HDR_TO_F, 0) == -1) || !msg->to)) {
 		LM_ERR("Message has no To header\n");
 		return -1;
 	}
-	if(!msg->from && ((parse_headers(msg, HDR_FROM_T, 0) == -1) || !msg->from)) {
+	if(!msg->from && ((parse_headers(msg, HDR_FROM_F, 0) == -1) || !msg->from)) {
 		LM_ERR("Message has no From header\n");
 		return -1;
 	}