Project

General

Profile

Bug #3169

OsmoMSC rejects SMPP messages with empty SMS

Added by laforge 6 months ago.

Status:
New
Priority:
Low
Assignee:
sysmocom
Category:
SMPP Interface
Target version:
-
Start date:
04/14/2018
Due date:
% Done:

0%

Resolution:

Description

From what I can tell, an empty SMS is odd, but legal as per protocol spec.

If I submit an empty SMS via SMPP, I get:

Sat Apr 14 20:23:57 2018 DSMPP <000c> smpp_smsc.c:747 [msc_tester] smpp_pdu_rx(00 00 00 35 00 00 00 04 00 00 00 00 00 00 00 02 43 4d 54 00 00 00 31 32 33 34 35 00 01 01 34 39 31 32 33 30 30 30 30 30 34 35 00 01 00 00 00 00 00 00 01 00 00 )
Sat Apr 14 20:23:57 2018 DSMPP <000c> smpp_smsc.c:729 [msc_tester] Rx SUBMIT-SM (491230000045/1/1)
Sat Apr 14 20:23:57 2018 DLSMS <0017> smpp_openbsc.c:138 SMPP neither message payload nor valid sm_length.

and on SMPP level, an submit_sm_resp with "Invalid Parameter Length (0xC2)" is returned to the ESME.

Let's double-check if empty messages are legal, and then simply accept them.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)