mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 21:13:44 +00:00
lua: Check for assignment failures
This commit is contained in:
@@ -25,6 +25,19 @@ do
|
|||||||
function check_failure(con)
|
function check_failure(con)
|
||||||
check_lu_reject(con)
|
check_lu_reject(con)
|
||||||
check_disconnect(con)
|
check_disconnect(con)
|
||||||
|
check_ass_failure(con)
|
||||||
|
end
|
||||||
|
|
||||||
|
-- check assignment failures
|
||||||
|
function check_ass_failure(con)
|
||||||
|
local msgtype = bssmap_msgtype_field()
|
||||||
|
if not msgtype then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
if tonumber(msgtype) == 0x03 then
|
||||||
|
con[4] = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- check if a DISCONNECT is normal
|
-- check if a DISCONNECT is normal
|
||||||
|
|||||||
Reference in New Issue
Block a user