Patch Set 1:

File openbsc/src/libmsc/gsm_04_11.c:

Line 637:       if (!sms_report)
> log error, or maybe OSMO_ASSERT(sms_report)?
Is there anything the user can do after this error?

Why bother?

I mean, you only hit this is there is not memory left... So likely there is a 

OSMO_ASSERT() would stop openBSC from running, is that getting this any better? 
This sounds like calling BUG() in the kernel.

So what do we get from spamming the user with an error that *only* happens if 
we have no memory left?
File openbsc/src/libmsc/smpp_openbsc.c:

Line 521:       /* We got a DELIVER_SM response for this is status report, this 
> (hard to understand, fix typo/punctuation?)
This is a reply to a DELIVER_SM with esm_class = Delivery Receipt, we're just 
having a conversation that was initiated by the SMSC. So we don't need to send 
any RP-ACK to the mobile, as we do with DELIVER_SM for a plan SMS.

Line 659:               deliver.esm_class = 0x04;
> (would be nice to have constants instead of magic numbers ... but not relat
I agree, this applies all over the place, but that would require a bit of work.

Line 709:                      sms->msg_ref);
> user message reference was always missing? maybe the fact that it is added 
Yes, message reference was always missing because there was no status-reports 

We can just add a branch here to skip this if saving bytes on the network are 
really a concern at the cost of slowing down the CPU path.
File openbsc/src/libmsc/smpp_smsc.h:

Line 95:        bool                    report;
> (can be understood as "you should report" or "this is a report" ... would b
This just annotates that the SMPP command that we send represents a 

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: Ic1a9023074bfa938099377980b6aff9b262fab2a
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Pablo Neira Ayuso <>
Gerrit-Reviewer: Harald Welte <>
Gerrit-Reviewer: Holger Freyther <>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Keith Whyte <>
Gerrit-Reviewer: Neels Hofmeyr <>
Gerrit-Reviewer: Pablo Neira Ayuso <>
Gerrit-HasComments: Yes

Reply via email to