""" #Set here your post install script
version = "0.0.0"
- build = "2"
+ build = "3"
changeloginformation = "First release"
dir_name = "src"
import time
from subprocess import *
import sys
+import gsmdecode
if len(sys.argv) != 2:
print "Usage: ussdquery.py <ussd number>"
child.sendeof();
-# Check if we need to decode answer
-# Compressed messages are not supported yet
-if encoding == '86':
- reply = reply.decode("hex")
-elif encoding == '72':
- reply = reply.decode("hex")
- reply = reply.decode("UTF-16 BE")
+# Decoding ansver
+reply = gsmdecode.decode(reply, int(encoding))
print reply;