summaryrefslogtreecommitdiff
path: root/main/app.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2012-09-28 18:27:02 +0000
committerRichard Mudgett <rmudgett@digium.com>2012-09-28 18:27:02 +0000
commitb5138fccf441ed814b2b0aadb7cd1bae9dc93fef (patch)
treeccaa89564685aac77643d67396f111f222fcdede /main/app.c
parent89d427ca2465e8dfa4f6f490bb884259092e0023 (diff)
Add pause one second W dial modifier.
* The following dialplan applications now recognize 'W' to pause sending DTMF for one second in addition to the previously existing 'w' that paused sending DTMF for half a second. Dial, ExternalIVR, and SendDTMF. * The chan_dahdi analog port dialing and deferred DTMF dialing for PRI now distinguishes between 'w' and 'W'. The 'w' pauses dialing for half a second. The 'W' pauses dialing for one second. * Created dahdi_dial_str() in chan_dahdi that eliminated a lot of duplicated dialing code and diagnostic messages for the channel driver. (closes issue ASTERISK-20039) Reported by: Jeremiah Gowdy Patches: jgowdy-wait-6-22-2012.diff (license #5621) patch uploaded by Jeremiah Gowdy Expanded patch to add support in chan_dahdi. Tested by: rmudgett git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@374030 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/app.c')
-rw-r--r--main/app.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/app.c b/main/app.c
index 8f90ddf7e..875bed1d5 100644
--- a/main/app.c
+++ b/main/app.c
@@ -757,6 +757,11 @@ int ast_dtmf_stream(struct ast_channel *chan, struct ast_channel *peer, const ch
if ((res = ast_safe_sleep(chan, 500))) {
break;
}
+ } else if (*ptr == 'W') {
+ /* 'W' -- wait a second */
+ if ((res = ast_safe_sleep(chan, 1000))) {
+ break;
+ }
} else if (strchr("0123456789*#abcdfABCDF", *ptr)) {
if (*ptr == 'f' || *ptr == 'F') {
/* ignore return values if not supported by channel */