mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 10:51:40 +00:00
Don't request tones when in-band DTMF mode is enabled (bug #2248)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3605 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2002,7 +2002,7 @@ static int transmit_notify_request(struct mgcp_subchannel *sub, char *tone)
|
||||
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 @@ static int transmit_notify_request_with_callerid(struct mgcp_subchannel *sub, ch
|
||||
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 @@ static int transmit_modify_request(struct mgcp_subchannel *sub)
|
||||
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 */
|
||||
|
Reference in New Issue
Block a user