Ver Fonte

modules/sipt: adapt module to use SUBTYPE_ISUP

Torrey Searle há 12 anos atrás
pai
commit
f4e4c3f874
1 ficheiros alterados com 5 adições e 5 exclusões
  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)
 {
 	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)
 	{
@@ -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)
 {
 	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)
 	{
@@ -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)
 {
 	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)
 	{
@@ -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)
 {
 	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)
 	{
@@ -371,7 +371,7 @@ static int sipt_destination(struct sip_msg *msg, char *_destination, char *_hops
 
 	// update forwarded iam
 	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)
 	{