summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/20-07-2011/sipCall.py
diff options
context:
space:
mode:
authortriatmoko2011-07-18 17:47:28 +0200
committertriatmoko2011-07-18 17:47:28 +0200
commit5e71f9ed8acf1648f75366d2a8d70f193d3ca4d7 (patch)
treed6a099f6d174af5e9a016aaf88115b2a093cee39 /For Weekly Test/20-07-2011/sipCall.py
parentfic landline handler to be the same with sip part. (diff)
downloadgsm-selftest-5e71f9ed8acf1648f75366d2a8d70f193d3ca4d7.tar.gz
gsm-selftest-5e71f9ed8acf1648f75366d2a8d70f193d3ca4d7.tar.xz
gsm-selftest-5e71f9ed8acf1648f75366d2a8d70f193d3ca4d7.zip
testing purpose.
Diffstat (limited to 'For Weekly Test/20-07-2011/sipCall.py')
-rw-r--r--For Weekly Test/20-07-2011/sipCall.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/For Weekly Test/20-07-2011/sipCall.py b/For Weekly Test/20-07-2011/sipCall.py
index 75d299e..a863ce8 100644
--- a/For Weekly Test/20-07-2011/sipCall.py
+++ b/For Weekly Test/20-07-2011/sipCall.py
@@ -19,7 +19,7 @@ class MyCallCallback(pj.CallCallback):
sleep(1)
if self.call.info().state <> pj.CallState.DISCONNECTED:
current_call.hangup()
- print "here2"
+
server.sendData('200')
else:
sleep(0.5)
@@ -75,10 +75,9 @@ while stop <> True:
event = data[0:5]
num = data[6:]
if event == "start" and num <> "":
-
+
server.closeConnection()
tried = server.openSocket()
- print "here", server.connected
number = "sip:"+num+"@132.230.4.8"
current_call = make_call(number)