summaryrefslogtreecommitdiff
path: root/res/res_pjsip_session.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2017-09-25 07:28:48 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-09-25 07:28:48 -0500
commit3c37ef567d4e45e29fb8501a488cd64c769eed6d (patch)
treed8e72d0d10159b054fff7896f16a5ec947edcaa8 /res/res_pjsip_session.c
parentfc2d3e7e8123e0d6f06c27974abb000a6c299490 (diff)
parent9eefce503dcd8ce87150487735d6b003b2effc64 (diff)
Merge "res_pjsip: Use ast_sip_is_content_type() where appropriate" into 15
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 2beb6dcd5..e95536a86 100644
--- a/res/res_pjsip_session.c
+++ b/res/res_pjsip_session.c
@@ -4013,8 +4013,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;
}