wso2 / product-micro-integrator

The cloud-native configuration driven runtime that helps developers implement composite microservices.
https://wso2.com/integration/
Apache License 2.0
204 stars 221 forks source link

[Bug]: Cannot set default value for messageClass for Data Encoding #3525

Open anupama-pathirage opened 3 months ago

anupama-pathirage commented 3 months ago

Description

Moving the issue from https://github.com/wso2-extensions/esb-connector-smpp/issues/17

image

I wanted to set null for messageClass in JSMPP submitShortMessage method but this connector set CLASS1 as the default value if I kept the Synapse Configuration empty.

The JSMPP submitShortMessage method's Data Encoding parameters I expected to set: new GeneralDataCoding(Alphabet.ALPHA_DEFAULT, null, false)

The synapse configuration I tried to achieve this: <messageClass></messageClass>

Default value is set as CLASS1 here. It should be null, if no value is provided from synapse config. https://github.com/wso2-extensions/esb-connector-smpp/blob/master/src/main/java/org/wso2/carbon/esb/connector/SMSDTO.java#L140

Steps to Reproduce

No response

Affected Version(s)

No response

OS, DB, other environment details and versions

No response

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response