Update on_dtmf.lua

This commit is contained in:
FusionPBX 2017-02-16 18:14:59 -07:00 committed by GitHub
parent 0018e767f2
commit bb360bfce6
1 changed files with 7 additions and 3 deletions

View File

@ -37,11 +37,15 @@
if (stream_seek == true) then
if (dtmf_digits == "4") then
dtmf_digits = "";
return("seek:-12000");
return("seek:-10000");
end
if (dtmf_digits == "5") then
dtmf_digits = "";
return("pause");
end
if (dtmf_digits == "6") then
dtmf_digits = "";
return("seek:12000");
return("seek:+10000");
end
end
if (string.len(dtmf_digits) >= max_digits) then
@ -53,4 +57,4 @@
end
end
return 0;
end
end