Module: sip-router
Branch: master
Commit: f4e4c3f8741868a310a59ec165a82e0353b7f161
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f4e4c3f8741868a310a59ec165a82e0353b7f161

Author: Torrey Searle <[email protected]>
Committer: Torrey Searle <[email protected]>
Date:   Mon Apr  8 11:18:44 2013 +0200

modules/sipt: adapt module to use SUBTYPE_ISUP

---

 modules/sipt/sipt.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/sipt/sipt.c b/modules/sipt/sipt.c
index 8b64b43..ce4841d 100644
--- a/modules/sipt/sipt.c
+++ b/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)
        {


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to