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
1.0
Martin Pycko 22 years ago
parent 0e451c786e
commit d7216653df

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

Loading…
Cancel
Save