summaryrefslogtreecommitdiff
path: root/res/res_sip_dtmf_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_sip_dtmf_info.c')
-rw-r--r--res/res_sip_dtmf_info.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/res/res_sip_dtmf_info.c b/res/res_sip_dtmf_info.c
index c8b03d509..1954c695e 100644
--- a/res/res_sip_dtmf_info.c
+++ b/res/res_sip_dtmf_info.c
@@ -46,8 +46,7 @@ static int dtmf_info_incoming_request(struct ast_sip_session *session, struct pj
char event = '\0';
unsigned int duration = 0;
- if (pj_strcmp2(&body->content_type.type, "application") ||
- pj_strcmp2(&body->content_type.subtype, "dtmf-relay")) {
+ if (!ast_sip_is_content_type(&body->content_type, "application", "dtmf-relay")) {
return 0;
}