Module: sip-router Branch: master Commit: 25135d4deb54281bffdf372ad948ef0fa38b2d7b URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=25135d4d...
Author: Torrey Searle tsearle@gmail.com Committer: Torrey Searle tsearle@gmail.com Date: Mon Apr 8 11:17:04 2013 +0200
parser/parse_content: add support for the ISUP subtype
---
parser/parse_content.c | 6 +++++- parser/parse_content.h | 1 + 2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/parser/parse_content.c b/parser/parse_content.c index 6c704a4..51347e8 100644 --- a/parser/parse_content.c +++ b/parser/parse_content.c @@ -204,11 +204,15 @@ static type_node_t subtype_tree[] = { {'o',SUBTYPE_UNKNOWN,1,-1}, {'d',SUBTYPE_UNKNOWN,1,-1}, {'y',SUBTYPE_EXTERNAL_BODY,0,-1}, - {'m',SUBTYPE_UNKNOWN,1,-1}, /* 107 */ + {'m',SUBTYPE_UNKNOWN,1,112}, /* 107 */ {'i',SUBTYPE_UNKNOWN,1,-1}, {'x',SUBTYPE_UNKNOWN,1,-1}, {'e',SUBTYPE_UNKNOWN,1,-1}, {'d',SUBTYPE_MIXED,0,-1}, + {'i',SUBTYPE_UNKNOWN,1,-1}, /* 112 */ + {'s',SUBTYPE_UNKNOWN,1,-1}, + {'u',SUBTYPE_UNKNOWN,1,-1}, + {'p',SUBTYPE_ISUP,0,-1}, };
diff --git a/parser/parse_content.h b/parser/parse_content.h index 6b03ce5..eb67f60 100644 --- a/parser/parse_content.h +++ b/parser/parse_content.h @@ -64,6 +64,7 @@ struct mime_type { #define SUBTYPE_XML_MSRTC_PIDF 12 #define SUBTYPE_CPIM_PIDFXML 13 #define SUBTYPE_MIXED 14 +#define SUBTYPE_ISUP 15 #define SUBTYPE_ALL 0xfe #define SUBTYPE_UNKNOWN 0xff