diff options
author | Jeff Hatch <Jeff.Hatch@multitech.com> | 2017-06-12 08:07:56 -0500 |
---|---|---|
committer | Jeff Hatch <Jeff.Hatch@multitech.com> | 2017-06-12 08:07:56 -0500 |
commit | 5a1e0b6b0f1a79eb1741236470734821c4480d59 (patch) | |
tree | 56fffb830c230e7c72b852438c83628a663449f0 /src | |
parent | 3d1e17bba0c67376a138a1ae3542ab4b700f5f06 (diff) | |
download | sms-utils-5a1e0b6b0f1a79eb1741236470734821c4480d59.tar.gz sms-utils-5a1e0b6b0f1a79eb1741236470734821c4480d59.tar.bz2 sms-utils-5a1e0b6b0f1a79eb1741236470734821c4480d59.zip |
SMS Commands not working for International Numbers1.0.4
Diffstat (limited to 'src')
-rw-r--r-- | src/pdu_decode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pdu_decode.c b/src/pdu_decode.c index 2906a88..5d74a2a 100644 --- a/src/pdu_decode.c +++ b/src/pdu_decode.c @@ -153,6 +153,10 @@ int pdu_decode_addr(const char *pdu_str, struct pdu_addr *addr, int smsc) nibble_swap(addr->addr, addr_len); strunpad(addr->addr, 'F'); + if(addr->type == 0x91) {//91 indicates international format of the phone number + memmove(&addr->addr[1],addr->addr,addr_len); + addr->addr[0]='+'; + }; pdu_str += addr_len; done: |