From 7537d3c0cb09bccf6e2a15a2ba2f6f195be268d6 Mon Sep 17 00:00:00 2001 From: Alec L Davis Date: Sat, 19 Dec 2009 08:59:31 +0000 Subject: [PATCH] app_dial optional parameter to option 'r' to allow play indication from indications.conf (closes issue #14504) Reported by: alecdavis Tested by: alecdavis,jsmith Patch app_dial.play_ring_indications.diff7.txt uploaded by alecdavis (license 585) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@235740 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- CHANGES | 2 ++ apps/app_dial.c | 70 ++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 62 insertions(+), 10 deletions(-) diff --git a/CHANGES b/CHANGES index 39bd92398d..74f20fbb78 100644 --- a/CHANGES +++ b/CHANGES @@ -82,6 +82,8 @@ Applications announcements or macros are executed. * Modified app_dial to set answertime when the called channel answers even if the called channel hangs up during playback of an announcement. + * Modified app_dial 'r' option to support an additional parameter to play an + indication tone from indications.conf * Added c() option to app_chanspy. This option allows custom DTMF to be set to cycle through the next available channel. By default this is still '*'. * Added x() option to app_chanspy. This option allows DTMF to be set to diff --git a/apps/app_dial.c b/apps/app_dial.c index 0ef64b3cc2..c24a566472 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -62,6 +62,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/global_datastores.h" #include "asterisk/dsp.h" #include "asterisk/cel.h" +#include "asterisk/indications.h" /*** DOCUMENTATION @@ -319,8 +320,11 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") it is provided. The current extension is used if a database family/key is not specified.