From 8bde2ee61fcc04bbc76394f7115e333dcb966c81 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 20 Oct 2010 19:08:49 +0200 Subject: lua: Check for Cipher Mode Reject failures as well --- openbsc/contrib/a-link/sccp-split-by-con.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/openbsc/contrib/a-link/sccp-split-by-con.lua b/openbsc/contrib/a-link/sccp-split-by-con.lua index ad1835269..34300b19b 100644 --- a/openbsc/contrib/a-link/sccp-split-by-con.lua +++ b/openbsc/contrib/a-link/sccp-split-by-con.lua @@ -26,6 +26,19 @@ do check_lu_reject(con) check_disconnect(con) check_ass_failure(con) + check_cipher_reject(con) + end + + -- cipher mode reject + function check_cipher_reject(con) + local msgtype = bssmap_msgtype_field() + if not msgtype then + return + end + + if tonumber(msgtype) == 89 then + con[4] = true + end end -- check assignment failures -- cgit v1.2.3