From 9eefce503dcd8ce87150487735d6b003b2effc64 Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Fri, 22 Sep 2017 11:02:11 -0400 Subject: res_pjsip: Use ast_sip_is_content_type() where appropriate Change-Id: If3ab0d73d79ac4623308bd48508af2bfd554937d --- res/res_pjsip_messaging.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'res/res_pjsip_messaging.c') 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; -- cgit v1.2.3