Add a longer stutter tone when there is voicemail on zaptel channels
authorMartin Pycko <martinp@digium.com>
Wed, 30 Apr 2003 20:10:03 +0000 (20:10 +0000)
committerMartin Pycko <martinp@digium.com>
Wed, 30 Apr 2003 20:10:03 +0000 (20:10 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@940 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index ac802d8..82157b8 100755 (executable)
@@ -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)