[NMT] Feature request: Add option (or extra field) to SMSC: "SMS from" based on subscriber #12

Open
opened 2023-03-13 11:48:12 +00:00 by shadowcaster3 · 0 comments
Collaborator

Problem description:
Some NMT phones support SMS sending, but were never used in operator networks that supported this feature, thus "sms from" number was never properly programmed, and decoded originating address from SMS message can be completely different from subscriber number, if present at all.
Please add another field to SMSC with real subscriber number to /tmp/nmt_sms_submit in addition to one extracted from DMS layer.

See attached debug log:

[INFO] Tx calibration finished
[INFO] Rx calibration finished
nmt.c 1788 nmt-debug  : (chan 50) Sending frame 1a.
nmt.c 1790 nmt-debug  : (chan 50) Subsequent IDLE frames are not show, to prevent flooding the output.
nmt.c 1788 nmt-debug  : (chan 53) Sending frame 4.
nmt.c 1790 nmt-debug  : (chan 53) Subsequent IDLE frames are not show, to prevent flooding the output.
nmt.c 1603 nmt-debug  : (chan 50) Received frame 10b
nmt.c  543 nmt-notice : (chan 50) Frame for different channel 53 received, ignoring.
nmt.c 1603 nmt-debug  : (chan 53) Received frame 10b
nmt.c  725 nmt-info   : (chan 53) Received call from subscriber 3,726136
nmt.c  130 nmt-debug  : (chan 53) State change: IDLE -> MO CALL IDENT
nmt.c  814 nmt-info   : (chan 53) Sending identity request.
nmt.c 1788 nmt-debug  : (chan 53) Sending frame 3b.
nmt.c 1603 nmt-debug  : (chan 50) Received frame 10b
nmt.c  543 nmt-notice : (chan 50) Frame for different channel 53 received, ignoring.
nmt.c 1603 nmt-debug  : (chan 53) Received frame 10b
nmt.c  834 nmt-debug  : (chan 53) Skipping second seizure frame
nmt.c 1788 nmt-debug  : (chan 53) Sending frame 3b.
nmt.c 1788 nmt-debug  : (chan 53) Sending frame 3b.
nmt.c 1788 nmt-debug  : (chan 53) Sending frame 3b.
nmt.c 1603 nmt-debug  : (chan 50) Received frame 10b
nmt.c  543 nmt-notice : (chan 50) Frame for different channel 53 received, ignoring.
nmt.c 1603 nmt-debug  : (chan 53) Received frame 10b
nmt.c  838 nmt-info   : (chan 53) Received identity confirm (password 943).
nmt.c  130 nmt-debug  : (chan 53) State change: MO CALL IDENT -> MO CALL CONFIRM
nmt.c  852 nmt-info   : (chan 53) Send 'Proceed to send'.
nmt.c 1788 nmt-debug  : (chan 53) Sending frame 5a.
nmt.c 1603 nmt-debug  : (chan 53) Received frame 10b
nmt.c 1002 nmt-debug  : (chan 53) Dropping message 10b in state MO CALL CONFIRM
nmt.c 1788 nmt-debug  : (chan 53) Sending frame 5a.
nmt.c 1603 nmt-debug  : (chan 50) Received frame 10b
nmt.c  543 nmt-notice : (chan 50) Frame for different channel 53 received, ignoring.
nmt.c 1603 nmt-debug  : (chan 53) Received frame 10b
nmt.c 1002 nmt-debug  : (chan 53) Dropping message 10b in state MO CALL CONFIRM
nmt.c  855 nmt-info   : (chan 53) Send dial tone.
nmt.c  130 nmt-debug  : (chan 53) State change: MO CALL CONFIRM -> MO CALL DIALING
nmt.c 1603 nmt-debug  : (chan 53) Received frame 10b
nmt.c 1002 nmt-debug  : (chan 53) Dropping message 10b in state MO CALL DIALING
nmt.c 1603 nmt-debug  : (chan 53) Received frame 15
nmt.c 1603 nmt-debug  : (chan 53) Received frame 14a
nmt.c  897 nmt-info   : (chan 53) Received (odd)  digit 0.
nmt.c 1603 nmt-debug  : (chan 53) Received frame 14a
nmt.c 1603 nmt-debug  : (chan 50) Received frame 14b
nmt.c  745 nmt-debug  : (chan 50) Dropping message 14b in state IDLE
nmt.c 1603 nmt-debug  : (chan 53) Received frame 14b
nmt.c  934 nmt-info   : (chan 53) Received (even) digit 0.
nmt.c 1603 nmt-debug  : (chan 53) Received frame 14b
nmt.c 1603 nmt-debug  : (chan 50) Received frame
nmt.c  745 nmt-debug  : (chan 50) Dropping message  in state IDLE
nmt.c 1603 nmt-debug  : (chan 53) Received frame 14a
nmt.c  897 nmt-info   : (chan 53) Received (odd)  digit 0.
nmt.c 1603 nmt-debug  : (chan 50) Received frame 14a
nmt.c  745 nmt-debug  : (chan 50) Dropping message 14a in state IDLE
nmt.c 1603 nmt-debug  : (chan 53) Received frame 14a
nmt.c 1603 nmt-debug  : (chan 53) Received frame 14b
nmt.c  934 nmt-info   : (chan 53) Received (even) digit 5.
nmt.c 1603 nmt-debug  : (chan 50) Received frame
nmt.c  745 nmt-debug  : (chan 50) Dropping message  in state IDLE
nmt.c 1603 nmt-debug  : (chan 53) Received frame 14b
nmt.c 1603 nmt-debug  : (chan 53) Received frame 14a
nmt.c  897 nmt-info   : (chan 53) Received (odd)  digit 0.
nmt.c 1603 nmt-debug  : (chan 50) Received frame 14a
nmt.c  745 nmt-debug  : (chan 50) Dropping message 14a in state IDLE
nmt.c 1603 nmt-debug  : (chan 53) Received frame 14a
nmt.c 1603 nmt-debug  : (chan 50) Received frame
nmt.c  745 nmt-debug  : (chan 50) Dropping message  in state IDLE
nmt.c 1603 nmt-debug  : (chan 53) Received frame 14b
nmt.c  934 nmt-info   : (chan 53) Received (even) digit 1.
nmt.c 1603 nmt-debug  : (chan 53) Received frame 14b
nmt.c 1603 nmt-debug  : (chan 53) Received frame 15
nmt.c  984 nmt-info   : (chan 53) Dialing complete 3726136->000501, call established.
nmt.c  990 nmt-info   : Setup call to SMSC.
nmt.c  130 nmt-debug  : (chan 53) State change: MO CALL DIALING -> MO CALL COMPLETE
nmt.c 1028 nmt-info   : (chan 53) Send 'address complete'.
nmt.c 1788 nmt-debug  : (chan 53) Sending frame 5a.
nmt.c 1788 nmt-debug  : (chan 53) Sending frame 5a.
nmt.c 1603 nmt-debug  : (chan 53) Received frame 15
nmt.c 1675 nmt-debug  : (chan 53) Dropping message 15 in state MO CALL COMPLETE
nmt.c 1788 nmt-debug  : (chan 53) Sending frame 5a.
nmt.c 1603 nmt-debug  : (chan 53) Received frame 15
nmt.c 1675 nmt-debug  : (chan 53) Dropping message 15 in state MO CALL COMPLETE
nmt.c 1788 nmt-debug  : (chan 53) Sending frame 5a.
nmt.c 1033 nmt-info   : (chan 53) Send 'compandor in'.
nmt.c 1788 nmt-debug  : (chan 53) Sending frame 5a.
nmt.c 1788 nmt-debug  : (chan 53) Sending frame 5a.
nmt.c 1788 nmt-debug  : (chan 53) Sending frame 5a.
nmt.c 1788 nmt-debug  : (chan 53) Sending frame 5a.
nmt.c 1037 nmt-info   : (chan 53) Connect audio.
nmt.c  130 nmt-debug  : (chan 53) State change: MO CALL COMPLETE -> ACTIVE
nmt.c 1428 nmt-info   : (chan 53) Detected supervisory signal with quality=87.
nmt.c 1430 nmt-info   : (chan 53) Lost supervisory signal
sms.c  621 sms-debug  : Received 7 bytes from DMS layer: 0x00 0x04 0x08 0x91 0x9d 0x99 0x99
sms.c  429 sms-debug  : SMS still incomplete, waiting for originator address digits (got 4 of 4)
sms.c  621 sms-debug  : Received 7 bytes from DMS layer: 0x99 0x41 0x0d 0x11 0x04 0x07 0xa1
sms.c  447 sms-debug  : SMS still incomplete, waiting for TPDU to be complete
sms.c  621 sms-debug  : Received 7 bytes from DMS layer: 0xa5 0x2a 0x32 0xf3 0x00 0x30 0xff
sms.c  447 sms-debug  : SMS still incomplete, waiting for TPDU to be complete
sms.c  621 sms-debug  : Received 2 bytes from DMS layer: 0x01 0x41
sms.c  456 sms-debug  : Decoded originating address: '+9999999'
sms.c  503 sms-debug  : Decoded destination address: '5002233'
sms.c  522 sms-debug  : SMS coding is 8 bits (got 0x30)
sms.c  563 sms-debug  : Included message: 'A'
sms.c  566 sms-info   : Submitting SMS to upper layer
nmt.c 1997 nmt-notice : (chan 53) Received SMS from '+9999999' to '5002233' (ref=4)
SMS received '+9999999' -> '5002233': A
sms.c  346 sms-info   : Sending Submit Report (ok)
nmt.c 1603 nmt-debug  : (chan 50) Received frame 13a
nmt.c 1603 nmt-debug  : (chan 53) Received frame 13a
nmt.c 1625 nmt-info   : (chan 53) Received clearing by mobile phone in state ACTIVE.
nmt.c  130 nmt-debug  : (chan 53) State change: ACTIVE -> RELEASE MTX->MS
nmt.c 1369 nmt-info   : (chan 53) Send release.
nmt.c 1788 nmt-debug  : (chan 53) Sending frame 5a.
nmt.c 1788 nmt-debug  : (chan 53) Sending frame 5a.
nmt.c 1603 nmt-debug  : (chan 53) Received frame 13a
nmt.c 1603 nmt-debug  : (chan 53) Received frame 13a
nmt.c 1788 nmt-debug  : (chan 53) Sending frame 5a.
sms.c  704 sms-debug  : Resetting SMS states
nmt.c  447 nmt-info   : (chan 53) Entering IDLE state, sending idle frames on traffic channel (calls from mobile).
nmt.c  130 nmt-debug  : (chan 53) State change: RELEASE MTX->MS -> IDLE
nmt.c 1788 nmt-debug  : (chan 53) Sending frame 5a.
nmt.c 1603 nmt-debug  : (chan 53) Received frame 13a
nmt.c 1788 nmt-debug  : (chan 53) Sending frame 4.
nmt.c 1790 nmt-debug  : (chan 53) Subsequent IDLE frames are not show, to prevent flooding the output.

Problem description: Some NMT phones support SMS sending, but were never used in operator networks that supported this feature, thus "sms from" number was never properly programmed, and decoded originating address from SMS message can be completely different from subscriber number, if present at all. Please add another field to SMSC with real subscriber number to /tmp/nmt_sms_submit in addition to one extracted from DMS layer. See attached debug log: ``` [INFO] Tx calibration finished [INFO] Rx calibration finished nmt.c 1788 nmt-debug : (chan 50) Sending frame 1a. nmt.c 1790 nmt-debug : (chan 50) Subsequent IDLE frames are not show, to prevent flooding the output. nmt.c 1788 nmt-debug : (chan 53) Sending frame 4. nmt.c 1790 nmt-debug : (chan 53) Subsequent IDLE frames are not show, to prevent flooding the output. nmt.c 1603 nmt-debug : (chan 50) Received frame 10b nmt.c 543 nmt-notice : (chan 50) Frame for different channel 53 received, ignoring. nmt.c 1603 nmt-debug : (chan 53) Received frame 10b nmt.c 725 nmt-info : (chan 53) Received call from subscriber 3,726136 nmt.c 130 nmt-debug : (chan 53) State change: IDLE -> MO CALL IDENT nmt.c 814 nmt-info : (chan 53) Sending identity request. nmt.c 1788 nmt-debug : (chan 53) Sending frame 3b. nmt.c 1603 nmt-debug : (chan 50) Received frame 10b nmt.c 543 nmt-notice : (chan 50) Frame for different channel 53 received, ignoring. nmt.c 1603 nmt-debug : (chan 53) Received frame 10b nmt.c 834 nmt-debug : (chan 53) Skipping second seizure frame nmt.c 1788 nmt-debug : (chan 53) Sending frame 3b. nmt.c 1788 nmt-debug : (chan 53) Sending frame 3b. nmt.c 1788 nmt-debug : (chan 53) Sending frame 3b. nmt.c 1603 nmt-debug : (chan 50) Received frame 10b nmt.c 543 nmt-notice : (chan 50) Frame for different channel 53 received, ignoring. nmt.c 1603 nmt-debug : (chan 53) Received frame 10b nmt.c 838 nmt-info : (chan 53) Received identity confirm (password 943). nmt.c 130 nmt-debug : (chan 53) State change: MO CALL IDENT -> MO CALL CONFIRM nmt.c 852 nmt-info : (chan 53) Send 'Proceed to send'. nmt.c 1788 nmt-debug : (chan 53) Sending frame 5a. nmt.c 1603 nmt-debug : (chan 53) Received frame 10b nmt.c 1002 nmt-debug : (chan 53) Dropping message 10b in state MO CALL CONFIRM nmt.c 1788 nmt-debug : (chan 53) Sending frame 5a. nmt.c 1603 nmt-debug : (chan 50) Received frame 10b nmt.c 543 nmt-notice : (chan 50) Frame for different channel 53 received, ignoring. nmt.c 1603 nmt-debug : (chan 53) Received frame 10b nmt.c 1002 nmt-debug : (chan 53) Dropping message 10b in state MO CALL CONFIRM nmt.c 855 nmt-info : (chan 53) Send dial tone. nmt.c 130 nmt-debug : (chan 53) State change: MO CALL CONFIRM -> MO CALL DIALING nmt.c 1603 nmt-debug : (chan 53) Received frame 10b nmt.c 1002 nmt-debug : (chan 53) Dropping message 10b in state MO CALL DIALING nmt.c 1603 nmt-debug : (chan 53) Received frame 15 nmt.c 1603 nmt-debug : (chan 53) Received frame 14a nmt.c 897 nmt-info : (chan 53) Received (odd) digit 0. nmt.c 1603 nmt-debug : (chan 53) Received frame 14a nmt.c 1603 nmt-debug : (chan 50) Received frame 14b nmt.c 745 nmt-debug : (chan 50) Dropping message 14b in state IDLE nmt.c 1603 nmt-debug : (chan 53) Received frame 14b nmt.c 934 nmt-info : (chan 53) Received (even) digit 0. nmt.c 1603 nmt-debug : (chan 53) Received frame 14b nmt.c 1603 nmt-debug : (chan 50) Received frame nmt.c 745 nmt-debug : (chan 50) Dropping message in state IDLE nmt.c 1603 nmt-debug : (chan 53) Received frame 14a nmt.c 897 nmt-info : (chan 53) Received (odd) digit 0. nmt.c 1603 nmt-debug : (chan 50) Received frame 14a nmt.c 745 nmt-debug : (chan 50) Dropping message 14a in state IDLE nmt.c 1603 nmt-debug : (chan 53) Received frame 14a nmt.c 1603 nmt-debug : (chan 53) Received frame 14b nmt.c 934 nmt-info : (chan 53) Received (even) digit 5. nmt.c 1603 nmt-debug : (chan 50) Received frame nmt.c 745 nmt-debug : (chan 50) Dropping message in state IDLE nmt.c 1603 nmt-debug : (chan 53) Received frame 14b nmt.c 1603 nmt-debug : (chan 53) Received frame 14a nmt.c 897 nmt-info : (chan 53) Received (odd) digit 0. nmt.c 1603 nmt-debug : (chan 50) Received frame 14a nmt.c 745 nmt-debug : (chan 50) Dropping message 14a in state IDLE nmt.c 1603 nmt-debug : (chan 53) Received frame 14a nmt.c 1603 nmt-debug : (chan 50) Received frame nmt.c 745 nmt-debug : (chan 50) Dropping message in state IDLE nmt.c 1603 nmt-debug : (chan 53) Received frame 14b nmt.c 934 nmt-info : (chan 53) Received (even) digit 1. nmt.c 1603 nmt-debug : (chan 53) Received frame 14b nmt.c 1603 nmt-debug : (chan 53) Received frame 15 nmt.c 984 nmt-info : (chan 53) Dialing complete 3726136->000501, call established. nmt.c 990 nmt-info : Setup call to SMSC. nmt.c 130 nmt-debug : (chan 53) State change: MO CALL DIALING -> MO CALL COMPLETE nmt.c 1028 nmt-info : (chan 53) Send 'address complete'. nmt.c 1788 nmt-debug : (chan 53) Sending frame 5a. nmt.c 1788 nmt-debug : (chan 53) Sending frame 5a. nmt.c 1603 nmt-debug : (chan 53) Received frame 15 nmt.c 1675 nmt-debug : (chan 53) Dropping message 15 in state MO CALL COMPLETE nmt.c 1788 nmt-debug : (chan 53) Sending frame 5a. nmt.c 1603 nmt-debug : (chan 53) Received frame 15 nmt.c 1675 nmt-debug : (chan 53) Dropping message 15 in state MO CALL COMPLETE nmt.c 1788 nmt-debug : (chan 53) Sending frame 5a. nmt.c 1033 nmt-info : (chan 53) Send 'compandor in'. nmt.c 1788 nmt-debug : (chan 53) Sending frame 5a. nmt.c 1788 nmt-debug : (chan 53) Sending frame 5a. nmt.c 1788 nmt-debug : (chan 53) Sending frame 5a. nmt.c 1788 nmt-debug : (chan 53) Sending frame 5a. nmt.c 1037 nmt-info : (chan 53) Connect audio. nmt.c 130 nmt-debug : (chan 53) State change: MO CALL COMPLETE -> ACTIVE nmt.c 1428 nmt-info : (chan 53) Detected supervisory signal with quality=87. nmt.c 1430 nmt-info : (chan 53) Lost supervisory signal sms.c 621 sms-debug : Received 7 bytes from DMS layer: 0x00 0x04 0x08 0x91 0x9d 0x99 0x99 sms.c 429 sms-debug : SMS still incomplete, waiting for originator address digits (got 4 of 4) sms.c 621 sms-debug : Received 7 bytes from DMS layer: 0x99 0x41 0x0d 0x11 0x04 0x07 0xa1 sms.c 447 sms-debug : SMS still incomplete, waiting for TPDU to be complete sms.c 621 sms-debug : Received 7 bytes from DMS layer: 0xa5 0x2a 0x32 0xf3 0x00 0x30 0xff sms.c 447 sms-debug : SMS still incomplete, waiting for TPDU to be complete sms.c 621 sms-debug : Received 2 bytes from DMS layer: 0x01 0x41 sms.c 456 sms-debug : Decoded originating address: '+9999999' sms.c 503 sms-debug : Decoded destination address: '5002233' sms.c 522 sms-debug : SMS coding is 8 bits (got 0x30) sms.c 563 sms-debug : Included message: 'A' sms.c 566 sms-info : Submitting SMS to upper layer nmt.c 1997 nmt-notice : (chan 53) Received SMS from '+9999999' to '5002233' (ref=4) SMS received '+9999999' -> '5002233': A sms.c 346 sms-info : Sending Submit Report (ok) nmt.c 1603 nmt-debug : (chan 50) Received frame 13a nmt.c 1603 nmt-debug : (chan 53) Received frame 13a nmt.c 1625 nmt-info : (chan 53) Received clearing by mobile phone in state ACTIVE. nmt.c 130 nmt-debug : (chan 53) State change: ACTIVE -> RELEASE MTX->MS nmt.c 1369 nmt-info : (chan 53) Send release. nmt.c 1788 nmt-debug : (chan 53) Sending frame 5a. nmt.c 1788 nmt-debug : (chan 53) Sending frame 5a. nmt.c 1603 nmt-debug : (chan 53) Received frame 13a nmt.c 1603 nmt-debug : (chan 53) Received frame 13a nmt.c 1788 nmt-debug : (chan 53) Sending frame 5a. sms.c 704 sms-debug : Resetting SMS states nmt.c 447 nmt-info : (chan 53) Entering IDLE state, sending idle frames on traffic channel (calls from mobile). nmt.c 130 nmt-debug : (chan 53) State change: RELEASE MTX->MS -> IDLE nmt.c 1788 nmt-debug : (chan 53) Sending frame 5a. nmt.c 1603 nmt-debug : (chan 53) Received frame 13a nmt.c 1788 nmt-debug : (chan 53) Sending frame 4. nmt.c 1790 nmt-debug : (chan 53) Subsequent IDLE frames are not show, to prevent flooding the output. ```
jolly was assigned by laforge 2023-06-03 08:29:50 +00:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cellular-infrastructure/osmocom-analog#12
No description provided.