Prevent an error from being displayed when someone abandons leaving a voicemail during the greeting.

This commit is contained in:
Mark Crane 2013-04-03 07:26:01 +00:00
parent 6a43a3d1b8
commit 24199dcc6b
1 changed files with 21 additions and 19 deletions

View File

@ -36,6 +36,7 @@
end
--direct dial
if (dtmf_digits) then
if (string.len(dtmf_digits) > 0) then
if (session:ready()) then
if (direct_dial["enabled"] == "true") then
@ -60,6 +61,7 @@
end
end
end
end
--play the beep
dtmf_digits = '';