summaryrefslogtreecommitdiff
path: root/res/res_pjsip_messaging.c
diff options
context:
space:
mode:
authorSean Bright <sean.bright@gmail.com>2017-09-22 11:02:11 -0400
committerSean Bright <sean.bright@gmail.com>2017-09-22 10:05:15 -0500
commit9eefce503dcd8ce87150487735d6b003b2effc64 (patch)
tree21a13b6573df463e67e4d27e687258d587ae4a93 /res/res_pjsip_messaging.c
parent919f744fa886fee850e294af364249e03ce51b77 (diff)
res_pjsip: Use ast_sip_is_content_type() where appropriate
Change-Id: If3ab0d73d79ac4623308bd48508af2bfd554937d
Diffstat (limited to 'res/res_pjsip_messaging.c')
-rw-r--r--res/res_pjsip_messaging.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_pjsip_messaging.c b/res/res_pjsip_messaging.c
index d31e10129..b6e7a64c3 100644
--- a/res/res_pjsip_messaging.c
+++ b/res/res_pjsip_messaging.c
@@ -69,8 +69,8 @@ static enum pjsip_status_code check_content_type(const pjsip_rx_data *rdata)
&rdata->msg_info.msg->body->content_type, "text", "plain");
} else {
res = rdata->msg_info.ctype &&
- !pj_strcmp2(&rdata->msg_info.ctype->media.type, "text") &&
- !pj_strcmp2(&rdata->msg_info.ctype->media.subtype, "plain");
+ ast_sip_is_content_type(
+ &rdata->msg_info.ctype->media, "text", "plain");
}
return res ? PJSIP_SC_OK : PJSIP_SC_UNSUPPORTED_MEDIA_TYPE;