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 11:04:31 -0400 |
commit | f39af4d36db1e7011849c70c0008af1656d16d02 (patch) | |
tree | e74cb504246558c012030e93c5d16093e9655106 /res/res_pjsip_session.c | |
parent | 9576ae0e7e8cc54a9b9ab140e4c8a3888247e359 (diff) |
res_pjsip: Use ast_sip_is_content_type() where appropriate
Change-Id: If3ab0d73d79ac4623308bd48508af2bfd554937d
Diffstat (limited to 'res/res_pjsip_session.c')
-rw-r--r-- | res/res_pjsip_session.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c index 3d73862b6..d1e23f5a3 100644 --- a/res/res_pjsip_session.c +++ b/res/res_pjsip_session.c @@ -3181,8 +3181,9 @@ static void session_outgoing_nat_hook(pjsip_tx_data *tdata, struct ast_sip_trans int stream; /* SDP produced by us directly will never be multipart */ - if (!transport_state || hook || !tdata->msg->body || pj_stricmp2(&tdata->msg->body->content_type.type, "application") || - pj_stricmp2(&tdata->msg->body->content_type.subtype, "sdp") || ast_strlen_zero(transport->external_media_address)) { + if (!transport_state || hook || !tdata->msg->body || + !ast_sip_is_content_type(&tdata->msg->body->content_type, "application", "sdp") || + ast_strlen_zero(transport->external_media_address)) { return; } |