diff options
-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: |