Add a longer stutter tone when there is voicemail on zaptel channels

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@940 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Martin Pycko 2003-04-30 20:10:03 +00:00
parent 0e451c786e
commit d7216653df
1 changed files with 4 additions and 0 deletions

View File

@ -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)