Prevent an error from being displayed when someone abandons leaving a voicemail during the greeting.
This commit is contained in:
parent
6a43a3d1b8
commit
24199dcc6b
|
|
@ -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 = '';
|
||||
|
|
|
|||
Loading…
Reference in New Issue