summaryrefslogtreecommitdiff
path: root/res/res_pjsip_session.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:04 -0500
commit875568c0f9c8d6f6c317e6a34fd7d87196e05aee (patch)
treefa9a60ff6e27c2bfae22ee77e37d43a4120988f0 /res/res_pjsip_session.c
parentddc216f12edf2980554398e459034073ffe6f312 (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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c
index 93810b873..496c4763a 100644
--- a/res/res_pjsip_session.c
+++ b/res/res_pjsip_session.c
@@ -3213,8 +3213,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;
}