diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-09-22 11:02:11 -0400 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-09-22 10:05:23 -0500 |
commit | ebd0a4bebf7ffc143800de47e52b9e46dd630aac (patch) | |
tree | c0dec5ce099a91027314afb9bf397a7791c77d20 /res/res_pjsip_messaging.c | |
parent | 63a3d17f0b9fb8d6c4b332bed931bcdbbbc93ca1 (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.c | 4 |
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; |