We recently had the need to connect Kannel to an SMSC that preferred an ems_class of 0 for generic SMS messages instead of Kannel's default of 3. The only things I could find were archived list postings referencing patching the source, but since we're running multiple routes on the same installation, a config item was preferred.
I've added a new smsc config entry, "esm-class-submit", which takes the same values as defined in smpp_pdu.h. The default if not defined is still 3, but I'm now able to define "esm-class-submit = 0" on a per-route basis and see it reflected in the outgoing PDU dumps. Although our testing seems fine, I'm hoping someone more familiar with the source could take a quick glance to see if it's likely to break anything else. If it turns out to be useful to anyone else, even better.
ems_class_sender.patch
Description: ems_class_sender.patch
