Re: Is it possible to enforce service_type on SMPP connection?
Alexander Malysh <[email protected]> Tue, 2 Nov 2021 12:16:27 +0100
| Newsgroups | gmane.comp.mobile.kannel.user |
|---|---|
| Message-ID | <3887b4c7-fbf9-4ed7-96c3-1cc01de9d596@Spark> |
Hi, Kannel uses binfo from message as service_type in submit_sm or configured service_type from SMSC group. Therefore you just have to not set binfo filed in message and kannel will use configured service_type. Regards, Alexander Malysh Am 1. Nov. 2021, 13:44 +0100 schrieb [email protected]: > Dear friends, > > I need and advice from a Kannel guru and thanks in advance for any help: > > The problem: I was happy using Kannel too bridge two SMSC by SMPP 3.4, running Kannel as ESME for both. Everything was fine before I need to connect third one, and I got an issue: > > > 1. One of my old connected SMSC set service_type to “CMT” and it is hardcoded, mean I can’t change this behavior. > 2. The new SMSC only accepts when service_type is set to default “” (empty string) or hardcoded non-standard value “sms”. Any other value made it fail to accept the message and not even answer to submit_sm. > > > Therefore, I got one-way SMS path: it delivers from new to old, looks like old don’t care about service type at all. But it fails from old to new as the new sends service_type=”CMT”, which can’t be accepted by new one. > > Then, I found “service-type” configuration variable which seems to set exact service type for SMPP connection. However, after some tests, I found it works as below: > > 1. If routed message has service_type=”” (default) it be set per “service-type” variable value. No matter is it comes from SMSbox or routed from other SMPP. > 2. If incoming service_type has any non-empty value, it will be left intact and forwarded whatever I place to service-type variable. It neither set it to default nor any other value, just left intact. > > > So, my question is: is it possible to configure Kannel to enforce service_type field on an outgoing SMTP message, overriding any other value? > > For my experience it looks like the answer is “no”, but may behavior also controlled by some other options and I do not know how to set it right way. > > Also, it looks like I can use one more “leg” to forward it by http/kanel connection (two kannel instances?). Then service_type be taken from variable and it might work. But I prefer configure one instance if possible. > > Extra info: Kannel 1.4.5 on Centos 7, very trivial config with 3 SMSC and only regex mask for each. Think, no use to attach it here. > > Thank you in advance for your attention and help! > > Sincerely, > > Alex