返回列表 發帖

CSL SMS encode/decode

I have a USB dongle (with a "Hello" Prepaid Card inserted) attached to my Asterisk server. Everyday,  a cron job will run a program to check the balance of the prepaid card. It's been running for over 2 years without any problem.

Today, I got the SMS that seems "encoded" from the CLI:
  1. [dongle0] Got SMS from 179179: '(QKA_ESYKA_A^MAr_keA eKaCSIA&FCeIARgAllpfdpfrX@B]IAhQKAdK[CS]S]OAlCYkKARgAnh\drv@lCYSIAhSYYAdd^C]_d`bn\@ YKCgKAlSgSiAPiiau^^`eKaCSI]PWGgY]F_[AL_eA'
複製代碼
Is there anyone know how to "decode" it?

本帖最後由 ttmuskie 於 2017-9-13 10:42 編輯

I'm using python:
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. import os

  4. cmd = "sudo /usr/sbin/asterisk -rx 'dongle ussd dongle0 ##122#'"
  5. os.system(cmd)
複製代碼
Btw, for the encode/decode problem I've raised last year, it was fixed by itself (it mean I didn't change anything) after a week or so.

TOP

Good suggestion

TOP

返回列表