[Asterisk-cvs] asterisk/channels chan_mgcp.c,1.74,1.75
markster at lists.digium.com
markster at lists.digium.com
Fri Aug 13 09:33:21 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory localhost.localdomain:/tmp/cvs-serv6069/channels
Modified Files:
chan_mgcp.c
Log Message:
Don't request tones when in-band DTMF mode is enabled (bug #2248)
Index: chan_mgcp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_mgcp.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- chan_mgcp.c 12 Aug 2004 20:26:40 -0000 1.74
+++ chan_mgcp.c 13 Aug 2004 13:19:29 -0000 1.75
@@ -2002,7 +2002,7 @@
add_header(&resp, "R", "L/hd(N)");
break;
case MGCP_OFFHOOK:
- add_header(&resp, "R", "L/hu(N), L/hf(N), D/[0-9#*](N)");
+ add_header(&resp, "R", (p->dtmfmode & MGCP_DTMF_INBAND) ? "L/hu(N),L/hf(N)" : "L/hu(N),L/hf(N),D/[0-9#*](N)");
break;
}
if (strlen(tone)) {
@@ -2056,7 +2056,7 @@
add_header(&resp, "R", "L/hd(N)");
break;
case MGCP_OFFHOOK:
- add_header(&resp, "R", "L/hu(N),L/hf(N),D/[0-9#*](N)");
+ add_header(&resp, "R", (p->dtmfmode & MGCP_DTMF_INBAND) ? "L/hu(N),L/hf(N)" : "L/hu(N),L/hf(N),D/[0-9#*](N)");
break;
}
if (strlen(tone2)) {
@@ -2096,7 +2096,7 @@
add_header(&resp, "R", "L/hd(N)");
break;
case MGCP_OFFHOOK:
- add_header(&resp, "R", "L/hu(N),L/hf(N),D/[0-9#*](N)");
+ add_header(&resp, "R", (p->dtmfmode & MGCP_DTMF_INBAND) ? "L/hu(N), L/hf(N)" : "L/hu(N),L/hf(N),D/[0-9#*](N)");
break;
}
/* SC: fill in new fields */
More information about the svn-commits
mailing list