is that possible to listen any incoming sms on some user defined port? I use RSocket to send and receive sms without user interaction. There's no problem to send a sms with user defined port using application port addressing but how can I set the RSocket to listen any incoming sms in some user defined port number?
It works if I just set the RSocket to bind any incoming sms based on text match. But if the incoming sms has a user defined port /application port addressing on its user data header then the RSocket can't recognize it and the sms will come directly into inbox.
The sms body is encrypted, it's a 8bit sms, class 1 and I assumed that if there's no application port addressing on user data header then at the end you will get some "wrong" byte hexs (i.e. byte-hex from 0x80 until 0x9f would be converted as 0x1a or 0x01). Even, if the incoming sms has only one wrong byte-hex on the body, you can't decrypt it..
sms body in byte-hex: (from sms gateway server without application port addressing on udh):
02 6f 30 bb 0d 5c bd 61 44 98 8e db 85 29 8c a2 aa 5c 23 a2 ec 00 d2 b7 e6 bf 4e 4f 7c 76 ab c4 8a 71 6d 89 36 91 f8 fc 7d 4a a3 21 7a aa dd
incoming sms body in byte-hex on device:
02 6f 30 bb 0d 5c bd 61 44 01 01 db 01 29 01 a2 aa 5c 23 a2 ec 00 d2 b7 e6 bf 4e 4f 7c 76 ab c4 01 71 6d 01 36 01 f8 fc 7d 4a a3 21 7a aa dd
Can anyone explain this?