""" #Set here your post install script
version = "0.0.0"
""" #Set here your post install script
version = "0.0.0"
changeloginformation = "First release"
dir_name = "src"
changeloginformation = "First release"
dir_name = "src"
import time
from subprocess import *
import sys
import time
from subprocess import *
import sys
if len(sys.argv) != 2:
print "Usage: ussdquery.py <ussd number>"
if len(sys.argv) != 2:
print "Usage: ussdquery.py <ussd number>"
-# 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))