Browse code

modules/sipt: adapt module to use SUBTYPE_ISUP

Torrey Searle authored on 08/04/2013 09:18:44
Showing 1 changed files
... ...
@@ -282,7 +282,7 @@ static int replace_body(struct sip_msg *msg, str * nb)
282 282
 static int sipt_get_hop_counter(struct sip_msg *msg, char *x, char *y)
283 283
 {
284 284
 	str body;
285
-	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_UNKNOWN,&body.len);
285
+	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_ISUP,&body.len);
286 286
 
287 287
 	if(body.s == NULL)
288 288
 	{
... ...
@@ -302,7 +302,7 @@ static int sipt_get_hop_counter(struct sip_msg *msg, char *x, char *y)
302 302
 static int sipt_get_cpc(struct sip_msg *msg, char *x, char *y)
303 303
 {
304 304
 	str body;
305
-	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_UNKNOWN,&body.len);
305
+	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_ISUP,&body.len);
306 306
 
307 307
 	if(body.s == NULL)
308 308
 	{
... ...
@@ -322,7 +322,7 @@ static int sipt_get_cpc(struct sip_msg *msg, char *x, char *y)
322 322
 static int sipt_get_calling_party_nai(struct sip_msg *msg, char *x, char *y)
323 323
 {
324 324
 	str body;
325
-	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_UNKNOWN,&body.len);
325
+	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_ISUP,&body.len);
326 326
 
327 327
 	if(body.s == NULL)
328 328
 	{
... ...
@@ -342,7 +342,7 @@ static int sipt_get_calling_party_nai(struct sip_msg *msg, char *x, char *y)
342 342
 static int sipt_get_called_party_nai(struct sip_msg *msg, char *x, char *y)
343 343
 {
344 344
 	str body;
345
-	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_UNKNOWN,&body.len);
345
+	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_ISUP,&body.len);
346 346
 
347 347
 	if(body.s == NULL)
348 348
 	{
... ...
@@ -371,7 +371,7 @@ static int sipt_destination(struct sip_msg *msg, char *_destination, char *_hops
371 371
 
372 372
 	// update forwarded iam
373 373
 	str body;
374
-	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_UNKNOWN,&body.len);
374
+	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_ISUP,&body.len);
375 375
 
376 376
 	if(body.s == NULL)
377 377
 	{