This is an automated email from the ASF dual-hosted git repository.
oscerd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
The following commit(s) were added to refs/heads/main by this push:
new e5d38ae1d Fix #1060: add an SMPP source Kamelet (#2989)
e5d38ae1d is described below
commit e5d38ae1ddb5fe4aae7e24575325321556547e7f
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Sep 1 11:04:00 2026 +0200
Fix #1060: add an SMPP source Kamelet (#2989)
Receives SMS messages and delivery receipts from a SMSC using the SMPP
protocol (camel-smpp). The short message text becomes the body; the
received PDU details stay in the CamelSmpp* headers the component sets.
Exposes the connection options an operator needs -- host, port, systemId,
password, systemType, encoding and usingSSL -- plus addressRange, which is
the consumer-side option that tells the SMSC which messages to route to
this ESME. systemId and password carry the credentials descriptor;
password is format: password.
Marked Preview for the same reason as the sink (#1059): there is no SMSC
simulator in the project's test toolchain, so this ships without a Citrus
test and without kamelet.verified.
Parameter binding verified against the real camel-smpp component with
`camel run`: the consumer endpoint is created and startup fails only with
ConnectException (no SMSC on localhost), not with an unknown-option error.
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
---
docs/modules/ROOT/nav.adoc | 1 +
kamelets/smpp-source.kamelet.yaml | 98 ++++++++++++++++++++++
.../resources/kamelets/smpp-source.kamelet.yaml | 98 ++++++++++++++++++++++
3 files changed, 197 insertions(+)
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index 6d0e05b9b..281995c15 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -220,6 +220,7 @@
* xref:simple-filter-action.adoc[]
* xref:slack-sink.adoc[]
* xref:slack-source.adoc[]
+* xref:smpp-source.adoc[]
* xref:smpp-sink.adoc[]
* xref:snowflake-sink.adoc[]
* xref:snowflake-source.adoc[]
diff --git a/kamelets/smpp-source.kamelet.yaml
b/kamelets/smpp-source.kamelet.yaml
new file mode 100644
index 000000000..6cfe54ddb
--- /dev/null
+++ b/kamelets/smpp-source.kamelet.yaml
@@ -0,0 +1,98 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+apiVersion: camel.apache.org/v1
+kind: Kamelet
+metadata:
+ name: smpp-source
+ annotations:
+ camel.apache.org/kamelet.support.level: "Preview"
+ camel.apache.org/catalog.version: "4.22.1-SNAPSHOT"
+ camel.apache.org/kamelet.icon:
"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA2NCI+PHBhdGggZmlsbD0iIzVjOGFjNCIgZD0iTTU0IDhIMTBhNiA2IDAgMCAwLTYgNnYyNmE2IDYgMCAwIDAgNiA2aDZ2MTBsMTMtMTBoMjVhNiA2IDAgMCAwIDYtNlYxNGE2IDYgMCAwIDAtNi02eiIvPjxnIGZpbGw9IiNmZmZmZmYiPjxjaXJjbGUgY3g9IjIwIiBjeT0iMjciIHI9IjMuNSIvPjxjaXJjbGUgY3g9IjMyIiBjeT0iMjciIHI9IjMuNSIvPjxjaXJjbGUgY3g9IjQ0IiBjeT0iMjciIHI9IjMuNSIvPjwvZz48L3N2Zz4K"
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "SMPP"
+ camel.apache.org/kamelet.namespace: "Messaging"
+ labels:
+ camel.apache.org/kamelet.type: "source"
+spec:
+ definition:
+ title: "SMPP Source"
+ description: |-
+ Receive SMS messages and delivery receipts from a SMSC (Short Message
Service Center) using the SMPP protocol.
+
+ The short message text is emitted as the message body. Details of the
received PDU are available in the CamelSmpp* headers.
+ required:
+ - host
+ type: object
+ properties:
+ host:
+ title: Host
+ description: The hostname of the SMSC server to connect to.
+ type: string
+ example: "smsc.example.com"
+ port:
+ title: Port
+ description: The port of the SMSC server to connect to.
+ type: integer
+ default: 2775
+ systemId:
+ title: System ID
+ description: The system id (username) for connecting to the SMSC
server.
+ type: string
+ default: smppclient
+ x-descriptors:
+ - urn:camel:group:credentials
+ password:
+ title: Password
+ description: The password for connecting to the SMSC server.
+ type: string
+ format: password
+ x-descriptors:
+ - urn:camel:group:credentials
+ systemType:
+ title: System Type
+ description: The type of ESME (External Short Message Entity) binding
to the SMSC (max. 13 characters).
+ type: string
+ example: "cp"
+ addressRange:
+ title: Address Range
+ description: The address range the consumer binds with, as defined in
section 5.2.7 of the SMPP 3.4 specification. The SMSC uses it to route messages
to this ESME.
+ type: string
+ encoding:
+ title: Encoding
+ description: The encoding scheme of the short message user data.
+ type: string
+ default: "ISO-8859-1"
+ usingSSL:
+ title: Using SSL
+ description: Whether to secure the connection to the SMSC server with
TLS (the smpps protocol).
+ type: boolean
+ default: false
+ dependencies:
+ - "camel:smpp"
+ - "camel:kamelet"
+ template:
+ from:
+ uri: "smpp:{{host}}:{{port}}"
+ parameters:
+ systemId: "{{systemId}}"
+ password: "{{?password}}"
+ systemType: "{{?systemType}}"
+ addressRange: "{{?addressRange}}"
+ encoding: "{{encoding}}"
+ usingSSL: "{{usingSSL}}"
+ steps:
+ - to: "kamelet:sink"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/smpp-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/smpp-source.kamelet.yaml
new file mode 100644
index 000000000..6cfe54ddb
--- /dev/null
+++
b/library/camel-kamelets/src/main/resources/kamelets/smpp-source.kamelet.yaml
@@ -0,0 +1,98 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+apiVersion: camel.apache.org/v1
+kind: Kamelet
+metadata:
+ name: smpp-source
+ annotations:
+ camel.apache.org/kamelet.support.level: "Preview"
+ camel.apache.org/catalog.version: "4.22.1-SNAPSHOT"
+ camel.apache.org/kamelet.icon:
"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA2NCI+PHBhdGggZmlsbD0iIzVjOGFjNCIgZD0iTTU0IDhIMTBhNiA2IDAgMCAwLTYgNnYyNmE2IDYgMCAwIDAgNiA2aDZ2MTBsMTMtMTBoMjVhNiA2IDAgMCAwIDYtNlYxNGE2IDYgMCAwIDAtNi02eiIvPjxnIGZpbGw9IiNmZmZmZmYiPjxjaXJjbGUgY3g9IjIwIiBjeT0iMjciIHI9IjMuNSIvPjxjaXJjbGUgY3g9IjMyIiBjeT0iMjciIHI9IjMuNSIvPjxjaXJjbGUgY3g9IjQ0IiBjeT0iMjciIHI9IjMuNSIvPjwvZz48L3N2Zz4K"
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "SMPP"
+ camel.apache.org/kamelet.namespace: "Messaging"
+ labels:
+ camel.apache.org/kamelet.type: "source"
+spec:
+ definition:
+ title: "SMPP Source"
+ description: |-
+ Receive SMS messages and delivery receipts from a SMSC (Short Message
Service Center) using the SMPP protocol.
+
+ The short message text is emitted as the message body. Details of the
received PDU are available in the CamelSmpp* headers.
+ required:
+ - host
+ type: object
+ properties:
+ host:
+ title: Host
+ description: The hostname of the SMSC server to connect to.
+ type: string
+ example: "smsc.example.com"
+ port:
+ title: Port
+ description: The port of the SMSC server to connect to.
+ type: integer
+ default: 2775
+ systemId:
+ title: System ID
+ description: The system id (username) for connecting to the SMSC
server.
+ type: string
+ default: smppclient
+ x-descriptors:
+ - urn:camel:group:credentials
+ password:
+ title: Password
+ description: The password for connecting to the SMSC server.
+ type: string
+ format: password
+ x-descriptors:
+ - urn:camel:group:credentials
+ systemType:
+ title: System Type
+ description: The type of ESME (External Short Message Entity) binding
to the SMSC (max. 13 characters).
+ type: string
+ example: "cp"
+ addressRange:
+ title: Address Range
+ description: The address range the consumer binds with, as defined in
section 5.2.7 of the SMPP 3.4 specification. The SMSC uses it to route messages
to this ESME.
+ type: string
+ encoding:
+ title: Encoding
+ description: The encoding scheme of the short message user data.
+ type: string
+ default: "ISO-8859-1"
+ usingSSL:
+ title: Using SSL
+ description: Whether to secure the connection to the SMSC server with
TLS (the smpps protocol).
+ type: boolean
+ default: false
+ dependencies:
+ - "camel:smpp"
+ - "camel:kamelet"
+ template:
+ from:
+ uri: "smpp:{{host}}:{{port}}"
+ parameters:
+ systemId: "{{systemId}}"
+ password: "{{?password}}"
+ systemType: "{{?systemType}}"
+ addressRange: "{{?addressRange}}"
+ encoding: "{{encoding}}"
+ usingSSL: "{{usingSSL}}"
+ steps:
+ - to: "kamelet:sink"