summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/20-07-2011/landlineReceiver.py
diff options
context:
space:
mode:
authortriatmoko2011-07-18 18:39:09 +0200
committertriatmoko2011-07-18 18:39:09 +0200
commit5e6ff41619b70b9a3c7a1eaeb989c295e22943f1 (patch)
tree364cedfa81e7044b53ce8d9e643377930fadf2d3 /For Weekly Test/20-07-2011/landlineReceiver.py
parenttesting purpose. (diff)
downloadgsm-selftest-5e6ff41619b70b9a3c7a1eaeb989c295e22943f1.tar.gz
gsm-selftest-5e6ff41619b70b9a3c7a1eaeb989c295e22943f1.tar.xz
gsm-selftest-5e6ff41619b70b9a3c7a1eaeb989c295e22943f1.zip
modified for test weekly
Diffstat (limited to 'For Weekly Test/20-07-2011/landlineReceiver.py')
-rw-r--r--For Weekly Test/20-07-2011/landlineReceiver.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/For Weekly Test/20-07-2011/landlineReceiver.py b/For Weekly Test/20-07-2011/landlineReceiver.py
index f61ff6a..470b4c6 100644
--- a/For Weekly Test/20-07-2011/landlineReceiver.py
+++ b/For Weekly Test/20-07-2011/landlineReceiver.py
@@ -14,15 +14,17 @@ class MyAccountCallback(pj.AccountCallback):
def on_incoming_call(self, call):
current_call = call
-
- sleep(0.5)
+
+ sleep(1)
call.answer(200)
sleep(0.5)
if current_call <> None:
+ print "hangup the call"
call.hangup()
+ print "send result"
server.sendData('200')
@@ -50,7 +52,7 @@ try:
while stop <> True:
- data = server.receiveData()
+ data = server.receiveData(0)
if data == "487":
stop = True