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 04e6bfb7a Fix #1059: add an SMPP sink Kamelet (#2988)
04e6bfb7a is described below

commit 04e6bfb7a770e5bb6113969269a4790bbefd0983
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Sep 1 11:01:37 2026 +0200

    Fix #1059: add an SMPP sink Kamelet (#2988)
    
    Sends the message body as an SMS short message through a SMSC using the
    SMPP protocol (camel-smpp).
    
    Exposes the connection and addressing options an operator needs -- host,
    port, systemId, password, systemType, sourceAddr, destAddr, encoding,
    splittingPolicy and usingSSL -- and leaves the component defaults in place
    for everything else. systemId and password carry the credentials
    descriptor; password is format: password.
    
    Marked Preview: camel-smpp has no Kamelet in the catalog yet and there is
    no SMSC simulator in the project's test toolchain, so this ships without a
    Citrus test and without kamelet.verified.
    
    Verified that every parameter binds against the real camel-smpp component
    by running the Kamelet with `camel run`: the endpoint is created and the
    route fails only with ConnectException (no SMSC on localhost), rather than
    the unknown-option error a mistyped parameter would produce.
    
    Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
---
 docs/modules/ROOT/nav.adoc                         |   1 +
 kamelets/smpp-sink.kamelet.yaml                    | 113 +++++++++++++++++++++
 .../main/resources/kamelets/smpp-sink.kamelet.yaml | 113 +++++++++++++++++++++
 3 files changed, 227 insertions(+)

diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index eeff133c2..6d0e05b9b 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-sink.adoc[]
 * xref:snowflake-sink.adoc[]
 * xref:snowflake-source.adoc[]
 * xref:solr-sink.adoc[]
diff --git a/kamelets/smpp-sink.kamelet.yaml b/kamelets/smpp-sink.kamelet.yaml
new file mode 100644
index 000000000..bb169695f
--- /dev/null
+++ b/kamelets/smpp-sink.kamelet.yaml
@@ -0,0 +1,113 @@
+# ---------------------------------------------------------------------------
+# 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-sink
+  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: "sink"
+spec:
+  definition:
+    title: "SMPP Sink"
+    description: |-
+      Send SMS messages through a SMSC (Short Message Service Center) using 
the SMPP protocol.
+
+      The message body is sent as the short message text.
+    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"
+      sourceAddr:
+        title: Source Address
+        description: The address of the SME (Short Message Entity) which 
originated the message.
+        type: string
+        default: "1616"
+      destAddr:
+        title: Destination Address
+        description: The destination SME address. For mobile terminated 
messages this is the directory number of the recipient.
+        type: string
+        default: "1717"
+      encoding:
+        title: Encoding
+        description: The encoding scheme of the short message user data.
+        type: string
+        default: "ISO-8859-1"
+      splittingPolicy:
+        title: Splitting Policy
+        description: The policy for handling long messages. ALLOW splits long 
messages into 140 byte parts, TRUNCATE cuts them at 140 bytes, REJECT fails the 
exchange.
+        type: string
+        default: ALLOW
+        enum: ["ALLOW", "TRUNCATE", "REJECT"]
+      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: "kamelet:source"
+      steps:
+      - to:
+          uri: "smpp:{{host}}:{{port}}"
+          parameters:
+            systemId: "{{systemId}}"
+            password: "{{?password}}"
+            systemType: "{{?systemType}}"
+            sourceAddr: "{{sourceAddr}}"
+            destAddr: "{{destAddr}}"
+            encoding: "{{encoding}}"
+            splittingPolicy: "{{splittingPolicy}}"
+            usingSSL: "{{usingSSL}}"
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/smpp-sink.kamelet.yaml 
b/library/camel-kamelets/src/main/resources/kamelets/smpp-sink.kamelet.yaml
new file mode 100644
index 000000000..bb169695f
--- /dev/null
+++ b/library/camel-kamelets/src/main/resources/kamelets/smpp-sink.kamelet.yaml
@@ -0,0 +1,113 @@
+# ---------------------------------------------------------------------------
+# 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-sink
+  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: "sink"
+spec:
+  definition:
+    title: "SMPP Sink"
+    description: |-
+      Send SMS messages through a SMSC (Short Message Service Center) using 
the SMPP protocol.
+
+      The message body is sent as the short message text.
+    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"
+      sourceAddr:
+        title: Source Address
+        description: The address of the SME (Short Message Entity) which 
originated the message.
+        type: string
+        default: "1616"
+      destAddr:
+        title: Destination Address
+        description: The destination SME address. For mobile terminated 
messages this is the directory number of the recipient.
+        type: string
+        default: "1717"
+      encoding:
+        title: Encoding
+        description: The encoding scheme of the short message user data.
+        type: string
+        default: "ISO-8859-1"
+      splittingPolicy:
+        title: Splitting Policy
+        description: The policy for handling long messages. ALLOW splits long 
messages into 140 byte parts, TRUNCATE cuts them at 140 bytes, REJECT fails the 
exchange.
+        type: string
+        default: ALLOW
+        enum: ["ALLOW", "TRUNCATE", "REJECT"]
+      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: "kamelet:source"
+      steps:
+      - to:
+          uri: "smpp:{{host}}:{{port}}"
+          parameters:
+            systemId: "{{systemId}}"
+            password: "{{?password}}"
+            systemType: "{{?systemType}}"
+            sourceAddr: "{{sourceAddr}}"
+            destAddr: "{{destAddr}}"
+            encoding: "{{encoding}}"
+            splittingPolicy: "{{splittingPolicy}}"
+            usingSSL: "{{usingSSL}}"

Reply via email to