diff options
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; |