[Asterisk-cvs] asterisk/channels chan_sip.c,1.527,1.528

markster at lists.digium.com markster at lists.digium.com
Fri Oct 8 11:51:33 CDT 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv25189/channels

Modified Files:
	chan_sip.c 
Log Message:
Add compatibilty with proprietary nortel DTMF info (bug #2605)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.527
retrieving revision 1.528
diff -u -d -r1.527 -r1.528
--- chan_sip.c	7 Oct 2004 19:57:50 -0000	1.527
+++ chan_sip.c	8 Oct 2004 15:52:44 -0000	1.528
@@ -5971,7 +5971,8 @@
 	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/dtmf-relay") ||
+	    !strcasecmp(get_header(req, "Content-Type"), "application/vnd.nortelnetworks.digits")) {
 
 		/* Try getting the "signal=" part */
 		if (ast_strlen_zero(c = get_sdp(req, "Signal")) && ast_strlen_zero(c = get_sdp(req, "d"))) {




More information about the svn-commits mailing list