]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix for Nortel SIP dtmf (bug #2605)
authorRussell Bryant <russell@russellbryant.com>
Sat, 9 Oct 2004 00:36:46 +0000 (00:36 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 9 Oct 2004 00:36:46 +0000 (00:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@3957 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 6129dbb8b21e9632b81c90ec5b11ee11d6f36a4d..fcd3e99833280ec03fab2cd8e641294a2ebdfac6 100755 (executable)
@@ -6057,7 +6057,8 @@ static void receive_info(struct sip_pvt *p, struct sip_request *req)
        char *c;
        
        /* Need to check the media/type */
-       if (!strcasecmp(get_header(req, "Content-Type"), "application/dtmf-relay")) {
+       if ( (!strcasecmp(get_header(req, "Content-Type"), "application/vnd.nortelnetworks.digits")) ||
+               (!strcasecmp(get_header(req, "Content-Type"), "application/dtmf-relay")) )  {
 
                /* Try getting the "signal=" part */
                if (ast_strlen_zero(c = get_sdp(req, "Signal")) && ast_strlen_zero(c = get_sdp(req, "d"))) {