aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-30 20:10:03 +0000
committermartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-30 20:10:03 +0000
commitda0ca588aed0d2dd88e3e5e06e3ece2d410d5e93 (patch)
tree81be51df2b7502c421fa72c29ab41160b95e550c /channels
parentec641e6d2649379ef7ea2fa94bc3db2437334f0a (diff)
Add a longer stutter tone when there is voicemail on zaptel channels
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@940 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_zap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index ac802d88a..82157b852 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -4248,7 +4248,11 @@ static int handle_init_event(struct zt_pvt *i, int event)
chan = zt_new(i, AST_STATE_DOWN, 0, SUB_REAL, 0);
if (chan) {
if (has_voicemail(i))
+#ifdef ZT_TONE_STUTTER
+ res = tone_zone_play_tone(i->subs[SUB_REAL].zfd, ZT_TONE_STUTTER);
+#else
res = tone_zone_play_tone(i->subs[SUB_REAL].zfd, ZT_TONE_DIALRECALL);
+#endif
else
res = tone_zone_play_tone(i->subs[SUB_REAL].zfd, ZT_TONE_DIALTONE);
if (res < 0)