summaryrefslogtreecommitdiffstats
path: root/For Weekly Test
diff options
context:
space:
mode:
authorgsmselgtest2011-08-31 14:55:35 +0200
committergsmselgtest2011-08-31 14:55:35 +0200
commitbd9e26a7c8746631d59d4e5cf5c2ed233c398ce3 (patch)
tree02f01e531fb91c1765f63e9eb01ae89702bbb886 /For Weekly Test
parenttrue table (diff)
downloadgsm-selftest-bd9e26a7c8746631d59d4e5cf5c2ed233c398ce3.tar.gz
gsm-selftest-bd9e26a7c8746631d59d4e5cf5c2ed233c398ce3.tar.xz
gsm-selftest-bd9e26a7c8746631d59d4e5cf5c2ed233c398ce3.zip
true table done
Diffstat (limited to 'For Weekly Test')
-rw-r--r--For Weekly Test/12-09-2011/gsmselftest.py472
-rw-r--r--For Weekly Test/12-09-2011/truetable.py489
2 files changed, 396 insertions, 565 deletions
diff --git a/For Weekly Test/12-09-2011/gsmselftest.py b/For Weekly Test/12-09-2011/gsmselftest.py
index ad86784..14a91ee 100644
--- a/For Weekly Test/12-09-2011/gsmselftest.py
+++ b/For Weekly Test/12-09-2011/gsmselftest.py
@@ -103,288 +103,206 @@ def initTest(callFrom,callTo):
return result
def initTrueTable():
- for x in resultsList:
-
- destination = x[1]
- result = x[2]
- caller = x[0]
-
- if destination == 'GSMRZ1':
- if result =='486':
-
- for y in resultsList:
- destination = y[1]
- result = y[2]
-
-
- if destination == 'GSMRZ2':
- if result == '200':
-
- for z in resultsList:
-
- destination = z[1]
- result = z[2]
-
- if destination == 'GSMRZ3':
-
- if result == '200':
- print "BTS RZ 1 Broken"
- elif result == '486':
- print "BTS RZ 1 & 3 indicate having Problem"
- else:
- print "incomplete test, Handler having error, please do one more test"
-
- elif destination == '486':
-
- for z in resultsList:
-
- destination = z[1]
- result = z[2]
-
- if destination == 'GSMRZ3':
-
- if result == '200':
- print "BTS RZ 1 & 2 indicate having Problem"
- elif result == '486':
- print "OpenBSc Down"
- else:
- print "incomplete test, Handler having error, please do one more test"
- else:
- print "incomplete test, Handler having error, please do one more test"
+ nanoBTS1 = None
+ nanoBTS2 = None
+ nanoBTS3 = None
+ o2Card = None
+ eplusCard = None
+ vodaCard = None
+ tmobileCard = None
+ outgoingLandline = None
+
+ for x in resultsList:
+
+ destination = x[1]
+ result = x[2]
+ caller = x[0]
+
+ if destination == 'GSMRZ1':
+ if result =='486':
+ nanoBTS1 = False
+ for y in resultsList:
+ call = y[0]
+ destination = y[1]
+ result = y[2]
+ if call == 'GSMRZ1':
+ if result == '200':
+ nanoBTS1 = True
+
+ if destination == 'GSMRZ1':
+ if result == '200':
+ nanoBTS1 = True
+ elif result =='200':
+ nanoBTS1 = True
+
+ elif destination == 'GSMRZ2':
+ if result =='486':
+ nanoBTS2 = False
+ for y in resultsList:
+ call = y[0]
+ destination = y[1]
+ result = y[2]
+ if call == 'GSMRZ2':
+ if result == '200':
+ nanoBTS2 = True
+
+ if destination == 'GSMRZ2':
+ if result == '200':
+ nanoBTS2 = True
+ elif result =='200':
+ nanoBTS2 = True
+
+ elif destination == 'GSMRZ3':
+ if result =='486':
+ nanoBTS3 = False
+ for y in resultsList:
+ call = y[0]
+ destination = y[1]
+ result = y[2]
+ if call == 'GSMRZ3':
+ if result == '200':
+ nanoBTS3 = True
+
+ if destination == 'GSMRZ2':
+ if result == '200':
+ nanoBTS3 = True
+ elif result =='200':
+ nanoBTS3 = True
+
+ elif destination == 'GSMExt.O2':
+ if result =='486':
+ o2Card = False
+ for y in resultsList:
+ call = y[0]
+ destination = y[1]
+ result = y[2]
+ if call == 'GSMExt.O2':
+ if result == '200':
+ o2Card = True
+
+ if destination == 'GSMExt.O2':
+ if result == '200':
+ o2Card = True
+ elif result =='200':
+ o2Card = True
+
+ elif destination == 'GSMExt.Voda':
+ if result =='486':
+ vodaCard = False
+ for y in resultsList:
+ call = y[0]
+ destination = y[1]
+ result = y[2]
+ if call == 'GSMExt.Voda':
+ if result == '200':
+ vodaCard = True
+
+ if destination == 'GSMExt.Voda':
+ if result == '200':
+ vodaCard = True
+ elif result =='200':
+ vodaCard = True
+
+ elif destination == 'GSMExt.Eplus':
+ if result =='486':
+ eplusCard = False
+ for y in resultsList:
+ call = y[0]
+ destination = y[1]
+ result = y[2]
+ if call == 'GSMExt.Eplus':
+ if result == '200':
+ eplusCard = True
+
+ if destination == 'GSMExt.Eplus':
+ if result == '200':
+ eplusCard = True
+ elif result =='200':
+ eplusCard = True
+
+ elif destination == 'GSMExt.Tm':
+ if result =='486':
+ tmobileCard = False
+ for y in resultsList:
+ call = y[0]
+ destination = y[1]
+ result = y[2]
+ if call == 'GSMExt.Tm':
+ if result == '200':
+ tmobileCard = True
+
+ if destination == 'GSMExt.Tm':
+ if result == '200':
+ tmobileCard = True
+ elif result =='200':
+ tmobileCard = True
+
+ elif destination == 'sip':
+ if result =='486':
+ asteriskServer = False
+ for y in resultsList:
+ call = y[0]
+ destination = y[1]
+ result = y[2]
+ if call == 'sip':
+ if result == '200':
+ asteriskServer = True
+
+ if destination == 'sip':
+ if result == '200':
+ asteriskServer = True
- elif result =='200':
-
- for y in resultsList:
-
- destination = y[1]
- result = y[2]
-
- if destination == 'GSMRZ2':
- if result == '200':
-
- for z in resultsList:
-
- destination = z[1]
- result = z[2]
-
- if destination == 'GSMRZ3':
-
- if result != '200':
- print "BTS RZ 3 Broken"
- else:
- print "All GSM RZ are working"
- elif result == '486':
-
- for z in resultsList:
-
- destination = z[1]
- result = z[2]
-
- if destination == 'GSMRZ3':
-
- if result == '200':
- print "BTS RZ 2 Broken"
- elif result == '486':
- print "BTS RZ 2 & 3 indicate having Problem"
- else:
- print "incomplete test, Handler having error, please do one more test"
- else:
- print "incomplete test, Handler having error, please do one more test"
-
- else:
- print "incomplete test, Handler having error, please do one more test"
-
- elif destination == 'GSMExt.O2':
-
- if result == '486':
- for y in resultsList:
-
- destination = y[1]
- result = y[2]
-
- if destination == 'GSMExt.Voda':
- if result == '200':
-
- for z in resultsList:
-
- destination = z[1]
- result = z[2]
-
- if destination == 'GSMExt.Eplus':
-
- if result == '486':
- for A in resultsList:
- destination = A[1]
- result = A[2]
-
-
- if destination == 'GSMExt.Tm':
- if result == '200':
- print "O2 & E-Plus indicate having Problem"
- elif result == '486':
- print "T-Mobile, E-plus and O2 cards indicate having problem"
- else:
- print "incomplete test, Handler having error, please do one more test"
-
- elif result == '200':
- for A in resultsList:
- destination = A[1]
- result = A[2]
-
- if destination == 'GSMExt.Tm':
+ elif result =='200':
+ asteriskServer = True
+
+ if caller == 'GSMRZ1' or caller == 'GSMRZ2' or caller == 'GSMRZ3':
+
+ if destination == 'landline':
+ if result =='486':
+ outgoingLandline = False
+ for y in resultsList:
+ call = y[0]
+ destination = y[1]
+ result = y[2]
+ if caller == 'GSMRZ1' or caller == 'GSMRZ2' or caller == 'GSMRZ3':
+ if destination == 'landline':
if result == '200':
- print "O2 cards indicate having Problem"
- elif result == '486':
- print "T-Mobile and O2 cards indicate having problem"
- else:
- print "incomplete test, Handler having error, please do one more test"
-
-
- else:
- print "incomplete test, Handler having error, please do one more test"
-
- elif result == '486':
- for z in resultsList:
- destination = z[1]
- result = z[2]
-
- if destination == 'GSMExt.Eplus':
-
- if result == '200':
- for A in resultsList:
- destination = A[1]
- result = A[2]
-
- if destination == 'GSMExt.Tm':
- if result == '200':
- print "O2 and Vodaphone cards indicate having problem"
- elif result == '486':
- print "T-Mobile, Vodaphone and O2 cards indicate having problem"
- else:
- print "incomplete test, Handler having error, please do one more test"
- elif result == '486':
- for A in resultsList:
- destination = A[1]
- result = A[2]
-
- if destination == 'GSMExt.Tm':
- if result == '200':
- print "O2, E-Plus and Vodaphone cards indicate having problem"
- elif result == '486':
- print "GSM External Modem broken"
- else:
- print "incomplete test, Handler having error, please do one more test"
- else:
- print "incomplete test, Handler having error, please do one more test"
- else:
- print "incomplete test, Handler having error, please do one more test"
-
- elif result == '200':
-
- for y in resultsList:
- destination = y[1]
- result = y[2]
-
- if destination == 'GSMExt.Voda':
- if result == '200':
-
- for z in resultsList:
- destination = z[1]
- result = z[2]
-
- if destination == 'GSMExt.Eplus':
-
- if result == '200':
- for A in resultsList:
- destination = A[1]
- result = A[2]
-
- if destination == 'GSMExt.Tm':
- if result == '200':
- print "GSM external modem is working"
- elif result == '486':
- print "T-Mobile card indicate having problem"
- else:
- print "incomplete test, Handler having error, please do one more test"
-
- elif result == '486':
- for A in resultsList:
- destination = A[1]
- result = A[2]
-
- if destination == 'GSMExt.Tm':
- if result == '200':
- print "E-Plus card indicate broken"
- elif result == '486':
- print "T-Mobile and E-plus cards indicate having problem"
- else:
- print "incomplete test, Handler having error, please do one more test"
- else:
- print "incomplete test, Handler having error, please do one more test"
-
- elif result == '486':
- for z in resultsList:
-
- destination = z[1]
- result = z[2]
-
- if destination == 'GSMExt.Eplus':
-
- if result == '200':
- for A in resultsList:
- destination = A[1]
- result = A[2]
-
- if destination == 'GSMExt.Tm':
- if result == '200':
- print "Vodaphone indicate broken"
- elif result == '486':
- print "T-Mobile and Vodaphone cards indicate having problem"
- else:
- print "incomplete test, Handler having error, please do one more test"
-
- elif result == '486':
- for A in resultsList:
- destination = A[1]
- result = A[2]
-
- if destination == 'GSMExt.Tm':
- if result == '200':
- print "Vodaphone and E-plus cards indicate broken"
- elif result == '486':
- print "T-Mobile, E-plus and Vodaphone cards indicate having problem"
- else:
- print "incomplete test, Handler having error, please do one more test"
- else:
- print "incomplete test, Handler having error, please do one more test"
- else:
- print "incomplete test, Handler having error, please do one more test"
- else:
- print "incomplete test, Handler having error, please do one more test"
+ outgoingLandline = True
+
+ print '\n'
+ if o2Card == False and eplusCard == False and vodaCard == False and tmobileCard == False:
+ print 'GSM BOX Modem down'
+ else:
+ if o2Card == False:
+ print "O2 card indicate having problem"
+ if eplusCard == False:
+ print "eplus card indicate having problem"
+ if vodaCard == False:
+ print "vodaphone card indicate having problem"
+ if tmobileCard == False:
+ print "T-Mobile card indicate having problem"
+ print '\n'
+ if nanoBTS1 == False and nanoBTS2 == False and nanoBTS3 == False:
+ print 'openBSC down'
+ else:
+ if nanoBTS1 == False:
+ print "nanoBTS 1 indicate having problem"
+ if nanoBTS2 == False:
+ print "nanoBTS 2 indicate having problem"
+ if nanoBTS3 == False:
+ print "nanoBTS 3 indicate having problem"
+
+ if outgoingLandline == False:
+ print 'outgoing from GSM RZ to landline having problem'
+ print '\n'
- elif destination == 'sip':
- if result =='486':
- j = False
- for y in resultsList:
- call = y[0]
- destination = y[1]
- result = y[2]
- if call == 'sip':
- if result == '200':
- j = True
-
- if destination == 'sip':
- if result == '200':
- j = True
-
- elif result =='200':
- j = True
+ if asteriskServer == False:
+ print "Asterisk server indicate having problem"
+ elif asteriskServer == True:
+ print 'Asterisk server working good'
+ print '\n'
- if j == False:
- print "Asterisk server indicate having problem"
- elif j == True:
- print 'Asterisk server working good'
def doTest(callFrom,callTo):
ping(callFrom)
diff --git a/For Weekly Test/12-09-2011/truetable.py b/For Weekly Test/12-09-2011/truetable.py
index f30f630..6675ccd 100644
--- a/For Weekly Test/12-09-2011/truetable.py
+++ b/For Weekly Test/12-09-2011/truetable.py
@@ -1,298 +1,211 @@
def initTrueTable():
- resultsList = [['sip', 'GSMExt.Eplus', '486'], ['unisip', 'GSMExt.Tm', '486'], ['sip', 'GSMExt.O2', '486'], ['landline', 'GSMExt.Voda', '486'], ['sip', 'landline', '486'], ['sip', 'unisip', '200'], ['unisip', 'sip', '486']]
- #resultsList = [['GSMExt.Eplus', 'sip', '486'], ['unisip', 'sip', '486'], ['landline', 'sip', '486'], ['unisip', 'sip', '486']]
-
- for x in resultsList:
- destination = x[1]
- result = x[2]
+ resultsList = [['sip', 'GSMExt.Eplus', '486'], ['unisip', 'GSMExt.Tm', '486'], ['sip', 'GSMExt.O2', '200'], ['landline', 'GSMExt.Voda', '486'], ['sip', 'landline', '486'], ['sip', 'unisip', '200'], ['unisip', 'sip', '486'], ['GSMRZ1','landline', '486'], ['GSMRZ2','landline' ,'486'], ['GSMRZ3','landline', '486']]
+ #resultsList = [['GSMExt.Eplus', 'GSMRZ1', '486'], ['unisip', 'sip', '486'], ['landline', 'sip', '200'], ['unisip', 'sip', '486']]
+
+ nanoBTS1 = None
+ nanoBTS2 = None
+ nanoBTS3 = None
+ o2Card = None
+ eplusCard = None
+ vodaCard = None
+ tmobileCard = None
+ outgoingLandline = None
+
+ for x in resultsList:
+
+ destination = x[1]
+ result = x[2]
+ caller = x[0]
+
+ if destination == 'GSMRZ1':
+ if result =='486':
+ nanoBTS1 = False
+ for y in resultsList:
+ call = y[0]
+ destination = y[1]
+ result = y[2]
+ if call == 'GSMRZ1':
+ if result == '200':
+ nanoBTS1 = True
+
+ if destination == 'GSMRZ1':
+ if result == '200':
+ nanoBTS1 = True
+ elif result =='200':
+ nanoBTS1 = True
+
+ elif destination == 'GSMRZ2':
+ if result =='486':
+ nanoBTS2 = False
+ for y in resultsList:
+ call = y[0]
+ destination = y[1]
+ result = y[2]
+ if call == 'GSMRZ2':
+ if result == '200':
+ nanoBTS2 = True
+
+ if destination == 'GSMRZ2':
+ if result == '200':
+ nanoBTS2 = True
+ elif result =='200':
+ nanoBTS2 = True
+
+ elif destination == 'GSMRZ3':
+ if result =='486':
+ nanoBTS3 = False
+ for y in resultsList:
+ call = y[0]
+ destination = y[1]
+ result = y[2]
+ if call == 'GSMRZ3':
+ if result == '200':
+ nanoBTS3 = True
+
+ if destination == 'GSMRZ2':
+ if result == '200':
+ nanoBTS3 = True
+ elif result =='200':
+ nanoBTS3 = True
+
+ elif destination == 'GSMExt.O2':
+ if result =='486':
+ o2Card = False
+ for y in resultsList:
+ call = y[0]
+ destination = y[1]
+ result = y[2]
+ if call == 'GSMExt.O2':
+ if result == '200':
+ o2Card = True
+
+ if destination == 'GSMExt.O2':
+ if result == '200':
+ o2Card = True
+ elif result =='200':
+ o2Card = True
+
+ elif destination == 'GSMExt.Voda':
+ if result =='486':
+ vodaCard = False
+ for y in resultsList:
+ call = y[0]
+ destination = y[1]
+ result = y[2]
+ if call == 'GSMExt.Voda':
+ if result == '200':
+ vodaCard = True
+
+ if destination == 'GSMExt.Voda':
+ if result == '200':
+ vodaCard = True
+ elif result =='200':
+ vodaCard = True
+
+ elif destination == 'GSMExt.Eplus':
+ if result =='486':
+ eplusCard = False
+ for y in resultsList:
+ call = y[0]
+ destination = y[1]
+ result = y[2]
+ if call == 'GSMExt.Eplus':
+ if result == '200':
+ eplusCard = True
+
+ if destination == 'GSMExt.Eplus':
+ if result == '200':
+ eplusCard = True
+ elif result =='200':
+ eplusCard = True
+
+ elif destination == 'GSMExt.Tm':
+ if result =='486':
+ tmobileCard = False
+ for y in resultsList:
+ call = y[0]
+ destination = y[1]
+ result = y[2]
+ if call == 'GSMExt.Tm':
+ if result == '200':
+ tmobileCard = True
+
+ if destination == 'GSMExt.Tm':
+ if result == '200':
+ tmobileCard = True
+ elif result =='200':
+ tmobileCard = True
+
+ elif destination == 'sip':
+ if result =='486':
+ asteriskServer = False
+ for y in resultsList:
+ call = y[0]
+ destination = y[1]
+ result = y[2]
+ if call == 'sip':
+ if result == '200':
+ asteriskServer = True
+
+ if destination == 'sip':
+ if result == '200':
+ asteriskServer = True
- if destination == 'GSMRZ1':
- if result =='486':
-
- for y in resultsList:
- destination = y[1]
- result = y[2]
-
-
- if destination == 'GSMRZ2':
- if result == '200':
-
- for z in resultsList:
-
- destination = z[1]
- result = z[2]
-
- if destination == 'GSMRZ3':
-
- if result == '200':
- print "BTS RZ 1 Broken"
- elif result == '486':
- print "BTS RZ 1 & 3 indicate having Problem"
- else:
- print "incomplete test, Handler having error, please do one more test"
-
- elif destination == '486':
-
- for z in resultsList:
-
- destination = z[1]
- result = z[2]
-
- if destination == 'GSMRZ3':
-
- if result == '200':
- print "BTS RZ 1 & 2 indicate having Problem"
- elif result == '486':
- print "OpenBSc Down"
- else:
- print "incomplete test, Handler having error, please do one more test"
- else:
- print "incomplete test, Handler having error, please do one more test"
-
- elif result =='200':
-
- for y in resultsList:
-
- destination = y[1]
- result = y[2]
-
- if destination == 'GSMRZ2':
- if result == '200':
-
- for z in resultsList:
-
- destination = z[1]
- result = z[2]
-
- if destination == 'GSMRZ3':
-
- if result != '200':
- print "BTS RZ 3 Broken"
- else:
- print "All GSM RZ are working"
- elif result == '486':
-
- for z in resultsList:
-
- destination = z[1]
- result = z[2]
-
- if destination == 'GSMRZ3':
-
- if result == '200':
- print "BTS RZ 2 Broken"
- elif result == '486':
- print "BTS RZ 2 & 3 indicate having Problem"
- else:
- print "incomplete test, Handler having error, please do one more test"
- else:
- print "incomplete test, Handler having error, please do one more test"
-
- else:
- print "incomplete test, Handler having error, please do one more test"
-
- elif destination == 'GSMExt.O2':
-
- if result == '486':
- for y in resultsList:
-
- destination = y[1]
- result = y[2]
-
- if destination == 'GSMExt.Voda':
- if result == '200':
-
- for z in resultsList:
-
- destination = z[1]
- result = z[2]
-
- if destination == 'GSMExt.Eplus':
-
- if result == '486':
- for A in resultsList:
- destination = A[1]
- result = A[2]
-
-
- if destination == 'GSMExt.Tm':
- if result == '200':
- print "O2 & E-Plus indicate having Problem"
- elif result == '486':
- print "T-Mobile, E-plus and O2 cards indicate having problem"
- else:
- print "incomplete test, Handler having error, please do one more test"
-
- elif result == '200':
- for A in resultsList:
- destination = A[1]
- result = A[2]
-
- if destination == 'GSMExt.Tm':
- if result == '200':
- print "O2 cards indicate having Problem"
- elif result == '486':
- print "T-Mobile and O2 cards indicate having problem"
- else:
- print "incomplete test, Handler having error, please do one more test"
-
-
- else:
- print "incomplete test, Handler having error, please do one more test"
-
- elif result == '486':
- for z in resultsList:
- destination = z[1]
- result = z[2]
-
- if destination == 'GSMExt.Eplus':
-
- if result == '200':
- for A in resultsList:
- destination = A[1]
- result = A[2]
-
- if destination == 'GSMExt.Tm':
- if result == '200':
- print "O2 and Vodaphone cards indicate having problem"
- elif result == '486':
- print "T-Mobile, Vodaphone and O2 cards indicate having problem"
- else:
- print "incomplete test, Handler having error, please do one more test"
- elif result == '486':
- for A in resultsList:
- destination = A[1]
- result = A[2]
-
- if destination == 'GSMExt.Tm':
- if result == '200':
- print "O2, E-Plus and Vodaphone cards indicate having problem"
- elif result == '486':
- print "GSM External Modem broken"
- else:
- print "incomplete test, Handler having error, please do one more test"
- else:
- print "incomplete test, Handler having error, please do one more test"
- else:
- print "incomplete test, Handler having error, please do one more test"
-
- elif result == '200':
-
- for y in resultsList:
- destination = y[1]
- result = y[2]
-
- if destination == 'GSMExt.Voda':
- if result == '200':
-
- for z in resultsList:
- destination = z[1]
- result = z[2]
-
- if destination == 'GSMExt.Eplus':
-
- if result == '200':
- for A in resultsList:
- destination = A[1]
- result = A[2]
-
- if destination == 'GSMExt.Tm':
- if result == '200':
- print "GSM external modem is working"
- elif result == '486':
- print "T-Mobile card indicate having problem"
- else:
- print "incomplete test, Handler having error, please do one more test"
-
- elif result == '486':
- for A in resultsList:
- destination = A[1]
- result = A[2]
-
- if destination == 'GSMExt.Tm':
+ elif result =='200':
+ asteriskServer = True
+
+ if caller == 'GSMRZ1' or caller == 'GSMRZ2' or caller == 'GSMRZ3':
+
+ if destination == 'landline':
+ if result =='486':
+ outgoingLandline = False
+ for y in resultsList:
+ call = y[0]
+ destination = y[1]
+ result = y[2]
+ if caller == 'GSMRZ1' or caller == 'GSMRZ2' or caller == 'GSMRZ3':
+ if destination == 'landline':
if result == '200':
- print "E-Plus card indicate broken"
- elif result == '486':
- print "T-Mobile and E-plus cards indicate having problem"
- else:
- print "incomplete test, Handler having error, please do one more test"
- else:
- print "incomplete test, Handler having error, please do one more test"
-
- elif result == '486':
- for z in resultsList:
-
- destination = z[1]
- result = z[2]
-
- if destination == 'GSMExt.Eplus':
-
- if result == '200':
- for A in resultsList:
- destination = A[1]
- result = A[2]
-
- if destination == 'GSMExt.Tm':
- if result == '200':
- print "Vodaphone indicate broken"
- elif result == '486':
- print "T-Mobile and Vodaphone cards indicate having problem"
- else:
- print "incomplete test, Handler having error, please do one more test"
-
- elif result == '486':
- for A in resultsList:
- destination = A[1]
- result = A[2]
-
- if destination == 'GSMExt.Tm':
- if result == '200':
- print "Vodaphone and E-plus cards indicate broken"
- elif result == '486':
- print "T-Mobile, E-plus and Vodaphone cards indicate having problem"
- else:
- print "incomplete test, Handler having error, please do one more test"
- else:
- print "incomplete test, Handler having error, please do one more test"
- else:
- print "incomplete test, Handler having error, please do one more test"
- else:
- print "incomplete test, Handler having error, please do one more test"
-
- elif destination == 'sip':
- if result =='486':
- i = 4
- j = False
- for y in resultsList:
- call = y[0]
- destination = y[1]
- result = y[2]
- if call == 'sip':
- if result == '200':
- i = i-4
- j = True
- if result == '486':
- i = i+1
-
- if destination == 'sip':
- if result == '200':
- i = i-4
- j = True
- if result == '486':
- i = i+1
-
- elif result =='200':
- i = -4
- j = True
-
- if i > 1 and j != True:
- print "bad thing happen"
- else:
- print 'Asterisk server working good'
+ outgoingLandline = True
+
+ print '\n'
+ if o2Card == False and eplusCard == False and vodaCard == False and tmobileCard == False:
+ print 'GSM BOX Modem down'
+ else:
+ if o2Card == False:
+ print "O2 card indicate having problem"
+ if eplusCard == False:
+ print "eplus card indicate having problem"
+ if vodaCard == False:
+ print "vodaphone card indicate having problem"
+ if tmobileCard == False:
+ print "T-Mobile card indicate having problem"
+ print '\n'
+
+ if nanoBTS1 == False and nanoBTS2 == False and nanoBTS3 == False:
+ print 'openBSC down'
+ else:
+ if nanoBTS1 == False:
+ print "nanoBTS 1 indicate having problem"
+ if nanoBTS2 == False:
+ print "nanoBTS 2 indicate having problem"
+ if nanoBTS3 == False:
+ print "nanoBTS 3 indicate having problem"
+
+ if outgoingLandline == False:
+ print 'outgoing from GSM RZ to landline having problem'
+ print '\n'
+
+ if asteriskServer == False:
+ print "Asterisk server indicate having problem"
+ elif asteriskServer == True:
+ print 'Asterisk server working good'
+ print '\n'
initTrueTable()
+