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:23 -0500
commitebd0a4bebf7ffc143800de47e52b9e46dd630aac (patch)
treec0dec5ce099a91027314afb9bf397a7791c77d20 /res/res_pjsip_session.c
parent63a3d17f0b9fb8d6c4b332bed931bcdbbbc93ca1 (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 163c2b868..c6ea4460a 100644
--- a/res/res_pjsip_session.c
+++ b/res/res_pjsip_session.c
@@ -3979,8 +3979,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;
}