summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Hatch <Jeff.Hatch@multitech.com>2017-06-12 08:07:56 -0500
committerJeff Hatch <Jeff.Hatch@multitech.com>2017-06-12 08:07:56 -0500
commit5a1e0b6b0f1a79eb1741236470734821c4480d59 (patch)
tree56fffb830c230e7c72b852438c83628a663449f0
parent3d1e17bba0c67376a138a1ae3542ab4b700f5f06 (diff)
downloadsms-utils-1.0.4.tar.gz
sms-utils-1.0.4.tar.bz2
sms-utils-1.0.4.zip
SMS Commands not working for International Numbers1.0.4
-rw-r--r--src/pdu_decode.c4
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: