summaryrefslogtreecommitdiffstats
path: root/Handler
diff options
context:
space:
mode:
authoraa1112011-07-18 17:40:24 +0200
committeraa1112011-07-18 17:40:24 +0200
commit11d92f6f9f9774cc2784f16f9757386a9a9d4651 (patch)
treebf46900d8647e5f4419af179a05291f06d6f9817 /Handler
parentMerge branch 'master' of lab.ks.uni-freiburg.de:lsfks/projekte/gsm-selftest (diff)
downloadgsm-selftest-11d92f6f9f9774cc2784f16f9757386a9a9d4651.tar.gz
gsm-selftest-11d92f6f9f9774cc2784f16f9757386a9a9d4651.tar.xz
gsm-selftest-11d92f6f9f9774cc2784f16f9757386a9a9d4651.zip
moving the files.
Diffstat (limited to 'Handler')
-rw-r--r--Handler/landlineCall.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/Handler/landlineCall.py b/Handler/landlineCall.py
index 05cf4b9..51853b8 100644
--- a/Handler/landlineCall.py
+++ b/Handler/landlineCall.py
@@ -17,6 +17,7 @@ isConnected = False
isStopped = False
firstTime502 = True
firstTime100 = True
+firstTime408 = True
TIMEOUT_LIMIT = 30
# Logging callback
@@ -116,9 +117,11 @@ while not isStopped:
while acc.info().reg_status == 408:
- print "408: REGISTRATION FAILED DUE TO TIMEOUT!!"
- print "Check your internet connection and SIP settings!"
-# server.sendData('NOT ready')
+ if firstTime408:
+ print "408: REGISTRATION FAILED DUE TO TIMEOUT!!"
+ print "I will try to check again if I can be successful to register!"
+ firstTime408 = False
+# server.sendData('NOT ready')
if acc.info().reg_status == 200:
@@ -135,8 +138,8 @@ while not isStopped:
while 1:
#number = server.receiveData()
- print "Please enter the number to call:"
- number = sys.stdin.readline().rstrip("\r\n")
+ print "Please enter the number to call:" #This line should be deleted further!
+ number = sys.stdin.readline().rstrip("\r\n")#This line should be deleted further!
if number <> "":
numberToCall = "sip:"+number+"@"+server
current_call = make_call(numberToCall)