浏览代码

modules/sipt: adapt module to use SUBTYPE_ISUP

Torrey Searle 12 年之前
父节点
当前提交
f4e4c3f874
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      modules/sipt/sipt.c

+ 5 - 5
modules/sipt/sipt.c

@@ -282,7 +282,7 @@ static int replace_body(struct sip_msg *msg, str * nb)
 static int sipt_get_hop_counter(struct sip_msg *msg, char *x, char *y)
 static int sipt_get_hop_counter(struct sip_msg *msg, char *x, char *y)
 {
 {
 	str body;
 	str body;
-	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_UNKNOWN,&body.len);
+	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_ISUP,&body.len);
 
 
 	if(body.s == NULL)
 	if(body.s == NULL)
 	{
 	{
@@ -302,7 +302,7 @@ static int sipt_get_hop_counter(struct sip_msg *msg, char *x, char *y)
 static int sipt_get_cpc(struct sip_msg *msg, char *x, char *y)
 static int sipt_get_cpc(struct sip_msg *msg, char *x, char *y)
 {
 {
 	str body;
 	str body;
-	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_UNKNOWN,&body.len);
+	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_ISUP,&body.len);
 
 
 	if(body.s == NULL)
 	if(body.s == NULL)
 	{
 	{
@@ -322,7 +322,7 @@ static int sipt_get_cpc(struct sip_msg *msg, char *x, char *y)
 static int sipt_get_calling_party_nai(struct sip_msg *msg, char *x, char *y)
 static int sipt_get_calling_party_nai(struct sip_msg *msg, char *x, char *y)
 {
 {
 	str body;
 	str body;
-	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_UNKNOWN,&body.len);
+	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_ISUP,&body.len);
 
 
 	if(body.s == NULL)
 	if(body.s == NULL)
 	{
 	{
@@ -342,7 +342,7 @@ static int sipt_get_calling_party_nai(struct sip_msg *msg, char *x, char *y)
 static int sipt_get_called_party_nai(struct sip_msg *msg, char *x, char *y)
 static int sipt_get_called_party_nai(struct sip_msg *msg, char *x, char *y)
 {
 {
 	str body;
 	str body;
-	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_UNKNOWN,&body.len);
+	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_ISUP,&body.len);
 
 
 	if(body.s == NULL)
 	if(body.s == NULL)
 	{
 	{
@@ -371,7 +371,7 @@ static int sipt_destination(struct sip_msg *msg, char *_destination, char *_hops
 
 
 	// update forwarded iam
 	// update forwarded iam
 	str body;
 	str body;
-	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_UNKNOWN,&body.len);
+	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_ISUP,&body.len);
 
 
 	if(body.s == NULL)
 	if(body.s == NULL)
 	{
 	{