From 2da3de7ff0f476092e6d961a1dd72c8521d8b3ff Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Tue, 6 May 2008 09:02:07 +0000 Subject: [PATCH] trying content_type directly for DTMF, as reported by Alex Gradinar git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@932 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/AmSession.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/AmSession.cpp b/core/AmSession.cpp index 494ea5ff..734455d5 100644 --- a/core/AmSession.cpp +++ b/core/AmSession.cpp @@ -582,7 +582,8 @@ void AmSession::onSipRequest(const AmSipRequest& req) } else if( req.method == "INFO" ){ - if ((strip_header_params(getHeader(req.hdrs, "Content-Type")) + if ((req.content_type == "application/dtmf-relay") || + (strip_header_params(getHeader(req.hdrs, "Content-Type")) =="application/dtmf-relay")|| (strip_header_params(getHeader(req.hdrs, "c")) =="application/dtmf-relay")){