Skip to content

Commit

Permalink
Bugfix in checkin() function
Browse files Browse the repository at this point in the history
  • Loading branch information
subs1stem committed Jan 19, 2023
1 parent b506298 commit baf7190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asterisk/extensions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ end

function checkin()
local src = channel.CALLERID("num"):get()
if src.len == 10 then
local prefix = tonumber(src.sub(1, 1))
if src:len() == 10 then
local prefix = tonumber(src:sub(1, 1))
if prefix == 4 or prefix == 2 then
log_debug("abnormal call: yes")
app.busy()
Expand Down

0 comments on commit baf7190

Please sign in to comment.