Skip to content

Commit 4838cb8

Browse files
committed
Добавил дополнительную проверку на пустое значение src и dst
1 parent 388901b commit 4838cb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Core/Asterisk/Configs/lua/extensions.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,11 @@ function monitorEnable(src, dst)
183183
end
184184

185185
-- Check if the source or destination numbers are exceptions where conversation recording is disabled
186-
if(get_variable("DIALPLAN_EXISTS(monitor-exceptions,"..src..")") == "1")then
187-
app["NoOp"]("Is exception numbers. ("..src..") Conversation recording is disabled");
186+
if(src and src ~= "" and get_variable("DIALPLAN_EXISTS(monitor-exceptions,"..src..")") == "1")then
187+
app["NoOp"](" -- Is exception numbers. ("..src..") Conversation recording is disabled");
188188
return false;
189189
end
190-
if(get_variable("DIALPLAN_EXISTS(monitor-exceptions,"..dst..")") == "1")then
190+
if(dst and dst ~= "" and get_variable("DIALPLAN_EXISTS(monitor-exceptions,"..dst..")") == "1")then
191191
app["NoOp"]("Is exception numbers. ("..dst..") Conversation recording is disabled");
192192
return false;
193193
end

0 commit comments

Comments
 (0)