This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 26320779483b CAMEL-23832: camel-asterisk - improve the component and 
option descriptions (#30959)
26320779483b is described below

commit 26320779483b6ac845ce039d2b83698ffdb36280
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 27 14:25:11 2026 +0100

    CAMEL-23832: camel-asterisk - improve the component and option descriptions 
(#30959)
    
    New texts for the component description, 5 endpoint options and 4 headers, 
checked against the Camel code and
    asterisk-java 3.42.2. The CamelAsteriskEventName header holds the simple 
class name of the asterisk-java event, not the
    AMI event name. The texts now say that the connection uses port 5038, which 
header replaces the action option, and that
    the producer fails the message when no action is set.
    
    Documentation only, no behavior change. The component JSON, the catalog 
copy, the doc page header and the DSL are
    regenerated. camel-asterisk is marked as done in 
tasks/component-descriptions.md.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 .../apache/camel/catalog/components/asterisk.json  | 20 +++---
 .../camel/catalog/docs/asterisk-component.adoc     |  2 +-
 .../apache/camel/component/asterisk/asterisk.json  | 20 +++---
 .../src/main/docs/asterisk-component.adoc          |  2 +-
 .../component/asterisk/AsteriskConstants.java      | 16 +++--
 .../camel/component/asterisk/AsteriskEndpoint.java | 37 +++++-----
 .../component/ComponentsBuilderFactory.java        |  3 +-
 .../dsl/AsteriskComponentBuilderFactory.java       |  6 +-
 .../builder/endpoint/EndpointHeaderBuilders.java   |  3 +-
 .../builder/endpoint/StaticEndpointBuilders.java   | 12 ++--
 .../dsl/AsteriskEndpointBuilderFactory.java        | 83 +++++++++++++++-------
 tasks/component-descriptions.md                    |  2 +-
 12 files changed, 125 insertions(+), 81 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/asterisk.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/asterisk.json
index 90a81ade8a0f..947fcd84de1d 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/asterisk.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/asterisk.json
@@ -3,7 +3,7 @@
     "kind": "component",
     "name": "asterisk",
     "title": "Asterisk",
-    "description": "Interact with Asterisk PBX Server (VoIP).",
+    "description": "Receive events from an Asterisk PBX server and send 
actions to it over the Asterisk Manager Interface (AMI).",
     "deprecated": false,
     "firstVersion": "2.18.0",
     "label": "mobile",
@@ -29,10 +29,10 @@
     "autowiredEnabled": { "index": 2, "kind": "property", "displayName": 
"Autowired Enabled", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Whether autowiring is enabled. This is used for automatic autowiring options 
(the option must be marked as autowired) by looking up in the registry to find 
if there is a single instance of matching t [...]
   },
   "headers": {
-    "CamelAsteriskEventName": { "index": 0, "kind": "header", "displayName": 
"", "group": "consumer", "label": "consumer", "required": false, "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"important": true, "description": "The name of the Asterisk event.", 
"constantName": 
"org.apache.camel.component.asterisk.AsteriskConstants#EVENT_NAME" },
-    "CamelAsteriskExtension": { "index": 1, "kind": "header", "displayName": 
"", "group": "producer", "label": "producer", "required": false, "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The extension to query in case of an ExtensionStateAction.", 
"constantName": 
"org.apache.camel.component.asterisk.AsteriskConstants#EXTENSION" },
-    "CamelAsteriskContext": { "index": 2, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the context that contains the extension to query in 
case of an ExtensionStateAction.", "constantName": 
"org.apache.camel.component.asterisk.AsteriskConstants#CONTEXT" },
-    "CamelAsteriskAction": { "index": 3, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"org.apache.camel.component.asterisk.AsteriskAction", "enum": [ "QUEUE_STATUS", 
"SIP_PEERS", "EXTENSION_STATE" ], "deprecated": false, "autowired": false, 
"secret": false, "description": "The Asterisk action to do.", "constantName": 
"org.apache.camel.component.asterisk.AsteriskConstants#ACTION" }
+    "CamelAsteriskEventName": { "index": 0, "kind": "header", "displayName": 
"", "group": "consumer", "label": "consumer", "required": false, "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"important": true, "description": "The simple class name of the asterisk-java 
ManagerEvent in the body, for example NewChannelEvent or HangupEvent. Set by 
the consumer for each event.", "constantName": 
"org.apache.camel.component.asterisk.AsteriskConstants#EVE [...]
+    "CamelAsteriskExtension": { "index": 1, "kind": "header", "displayName": 
"", "group": "producer", "label": "producer", "required": false, "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The extension whose state the producer queries with the 
EXTENSION_STATE action, for example 100. The other actions do not use it.", 
"constantName": 
"org.apache.camel.component.asterisk.AsteriskConstants#EXTENSION" },
+    "CamelAsteriskContext": { "index": 2, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The dialplan context that contains the extension of the 
CamelAsteriskExtension header, for the EXTENSION_STATE action. The other 
actions do not use it.", "constantName": 
"org.apache.camel.component.asterisk.AsteriskConstants#CONTEXT" },
+    "CamelAsteriskAction": { "index": 3, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"org.apache.camel.component.asterisk.AsteriskAction", "enum": [ "QUEUE_STATUS", 
"SIP_PEERS", "EXTENSION_STATE" ], "deprecated": false, "autowired": false, 
"secret": false, "description": "The AMI action that the producer sends for 
this message. Replaces the action option.", "constantName": 
"org.apache.camel.component.asterisk.AsteriskConst [...]
   },
   "bodyTypes": {
     "consumerOut": { "carriers": [ "pojo" ], "javaType": 
"org.asteriskjava.manager.event.ManagerEvent", "description": "The AMI event: a 
subclass of ManagerEvent such as NewChannelEvent or HangupEvent, with its 
simple class name in the CamelAsteriskEventName header. The ConnectEvent of the 
login comes first" },
@@ -40,14 +40,14 @@
     "producerOut": { "carriers": [ "pojo" ], "byOption": [ { "option": 
"action", "value": "QUEUE_STATUS", "carriers": [ "pojo" ], "javaType": 
"org.asteriskjava.manager.ResponseEvents" }, { "option": "action", "value": 
"SIP_PEERS", "carriers": [ "pojo" ], "javaType": 
"org.asteriskjava.manager.ResponseEvents" }, { "option": "action", "value": 
"EXTENSION_STATE", "carriers": [ "pojo" ], "javaType": 
"org.asteriskjava.manager.response.ManagerResponse" } ], "description": 
"QUEUE_STATUS and SIP_ [...]
   },
   "properties": {
-    "name": { "index": 0, "kind": "path", "displayName": "Name", "group": 
"common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Name of component" },
-    "hostname": { "index": 1, "kind": "parameter", "displayName": "Hostname", 
"group": "common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The hostname of the asterisk server" },
-    "password": { "index": 2, "kind": "parameter", "displayName": "Password", 
"group": "common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": true, 
"security": "secret", "description": "Login password" },
-    "username": { "index": 3, "kind": "parameter", "displayName": "Username", 
"group": "common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": true, 
"security": "secret", "description": "Login username" },
+    "name": { "index": 0, "kind": "path", "displayName": "Name", "group": 
"common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "A logical name of the endpoint, for example the name of the 
Asterisk server. The component does not use it to connect." },
+    "hostname": { "index": 1, "kind": "parameter", "displayName": "Hostname", 
"group": "common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The host name or IP address of the Asterisk server. The 
consumer and the producer connect to the Asterisk Manager Interface (AMI) of 
this host on port 5038, which cannot be changed." },
+    "password": { "index": 2, "kind": "parameter", "displayName": "Password", 
"group": "common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": true, 
"security": "secret", "description": "The secret of the AMI user, as defined in 
the manager.conf file of the Asterisk server." },
+    "username": { "index": 3, "kind": "parameter", "displayName": "Username", 
"group": "common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": true, 
"security": "secret", "description": "The name of the AMI user, as defined in 
the manager.conf file of the Asterisk server. The consumer and the producer 
each log in with it when they start." },
     "bridgeErrorHandler": { "index": 4, "kind": "parameter", "displayName": 
"Bridge Error Handler", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions (if possible) occurred 
while the Camel consumer is trying to pickup incoming  [...]
     "exceptionHandler": { "index": 5, "kind": "parameter", "displayName": 
"Exception Handler", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "object", "javaType": 
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", 
"deprecated": false, "autowired": false, "secret": false, "description": "To 
let the consumer use a custom ExceptionHandler. Notice if the option 
bridgeErrorHandler is enabled then this option is not in use. By def [...]
     "exchangePattern": { "index": 6, "kind": "parameter", "displayName": 
"Exchange Pattern", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "enum", "javaType": 
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], 
"deprecated": false, "autowired": false, "secret": false, "description": "Sets 
the exchange pattern when the consumer creates an exchange." },
-    "action": { "index": 7, "kind": "parameter", "displayName": "Action", 
"group": "producer", "label": "producer", "required": false, "type": "enum", 
"javaType": "org.apache.camel.component.asterisk.AsteriskAction", "enum": [ 
"QUEUE_STATUS", "SIP_PEERS", "EXTENSION_STATE" ], "deprecated": false, 
"autowired": false, "secret": false, "description": "What action to perform 
such as getting queue status, sip peers or extension state." },
+    "action": { "index": 7, "kind": "parameter", "displayName": "Action", 
"group": "producer", "label": "producer", "required": false, "type": "enum", 
"javaType": "org.apache.camel.component.asterisk.AsteriskAction", "enum": [ 
"QUEUE_STATUS", "SIP_PEERS", "EXTENSION_STATE" ], "deprecated": false, 
"autowired": false, "secret": false, "description": "The AMI action that the 
producer sends for each message: QUEUE_STATUS for the status of the queues and 
their members, SIP_PEERS for the list  [...]
     "lazyStartProducer": { "index": 8, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Whether the producer should be started 
lazy (on the first message). By starting lazy you can use this to allow 
CamelContext and routes to startup in situations where a produc [...]
   }
 }
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/asterisk-component.adoc
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/asterisk-component.adoc
index fbfd1c6669a6..2fe45861000a 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/asterisk-component.adoc
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/asterisk-component.adoc
@@ -2,7 +2,7 @@
 :doctitle: Asterisk
 :shortname: asterisk
 :artifactid: camel-asterisk
-:description: Interact with Asterisk PBX Server (VoIP).
+:description: Receive events from an Asterisk PBX server and send actions to 
it over the Asterisk Manager Interface (AMI).
 :since: 2.18
 :supportlevel: Stable
 :tabs-sync-option:
diff --git 
a/components/camel-asterisk/src/generated/resources/META-INF/org/apache/camel/component/asterisk/asterisk.json
 
b/components/camel-asterisk/src/generated/resources/META-INF/org/apache/camel/component/asterisk/asterisk.json
index 90a81ade8a0f..947fcd84de1d 100644
--- 
a/components/camel-asterisk/src/generated/resources/META-INF/org/apache/camel/component/asterisk/asterisk.json
+++ 
b/components/camel-asterisk/src/generated/resources/META-INF/org/apache/camel/component/asterisk/asterisk.json
@@ -3,7 +3,7 @@
     "kind": "component",
     "name": "asterisk",
     "title": "Asterisk",
-    "description": "Interact with Asterisk PBX Server (VoIP).",
+    "description": "Receive events from an Asterisk PBX server and send 
actions to it over the Asterisk Manager Interface (AMI).",
     "deprecated": false,
     "firstVersion": "2.18.0",
     "label": "mobile",
@@ -29,10 +29,10 @@
     "autowiredEnabled": { "index": 2, "kind": "property", "displayName": 
"Autowired Enabled", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Whether autowiring is enabled. This is used for automatic autowiring options 
(the option must be marked as autowired) by looking up in the registry to find 
if there is a single instance of matching t [...]
   },
   "headers": {
-    "CamelAsteriskEventName": { "index": 0, "kind": "header", "displayName": 
"", "group": "consumer", "label": "consumer", "required": false, "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"important": true, "description": "The name of the Asterisk event.", 
"constantName": 
"org.apache.camel.component.asterisk.AsteriskConstants#EVENT_NAME" },
-    "CamelAsteriskExtension": { "index": 1, "kind": "header", "displayName": 
"", "group": "producer", "label": "producer", "required": false, "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The extension to query in case of an ExtensionStateAction.", 
"constantName": 
"org.apache.camel.component.asterisk.AsteriskConstants#EXTENSION" },
-    "CamelAsteriskContext": { "index": 2, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the context that contains the extension to query in 
case of an ExtensionStateAction.", "constantName": 
"org.apache.camel.component.asterisk.AsteriskConstants#CONTEXT" },
-    "CamelAsteriskAction": { "index": 3, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"org.apache.camel.component.asterisk.AsteriskAction", "enum": [ "QUEUE_STATUS", 
"SIP_PEERS", "EXTENSION_STATE" ], "deprecated": false, "autowired": false, 
"secret": false, "description": "The Asterisk action to do.", "constantName": 
"org.apache.camel.component.asterisk.AsteriskConstants#ACTION" }
+    "CamelAsteriskEventName": { "index": 0, "kind": "header", "displayName": 
"", "group": "consumer", "label": "consumer", "required": false, "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"important": true, "description": "The simple class name of the asterisk-java 
ManagerEvent in the body, for example NewChannelEvent or HangupEvent. Set by 
the consumer for each event.", "constantName": 
"org.apache.camel.component.asterisk.AsteriskConstants#EVE [...]
+    "CamelAsteriskExtension": { "index": 1, "kind": "header", "displayName": 
"", "group": "producer", "label": "producer", "required": false, "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The extension whose state the producer queries with the 
EXTENSION_STATE action, for example 100. The other actions do not use it.", 
"constantName": 
"org.apache.camel.component.asterisk.AsteriskConstants#EXTENSION" },
+    "CamelAsteriskContext": { "index": 2, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The dialplan context that contains the extension of the 
CamelAsteriskExtension header, for the EXTENSION_STATE action. The other 
actions do not use it.", "constantName": 
"org.apache.camel.component.asterisk.AsteriskConstants#CONTEXT" },
+    "CamelAsteriskAction": { "index": 3, "kind": "header", "displayName": "", 
"group": "producer", "label": "producer", "required": false, "javaType": 
"org.apache.camel.component.asterisk.AsteriskAction", "enum": [ "QUEUE_STATUS", 
"SIP_PEERS", "EXTENSION_STATE" ], "deprecated": false, "autowired": false, 
"secret": false, "description": "The AMI action that the producer sends for 
this message. Replaces the action option.", "constantName": 
"org.apache.camel.component.asterisk.AsteriskConst [...]
   },
   "bodyTypes": {
     "consumerOut": { "carriers": [ "pojo" ], "javaType": 
"org.asteriskjava.manager.event.ManagerEvent", "description": "The AMI event: a 
subclass of ManagerEvent such as NewChannelEvent or HangupEvent, with its 
simple class name in the CamelAsteriskEventName header. The ConnectEvent of the 
login comes first" },
@@ -40,14 +40,14 @@
     "producerOut": { "carriers": [ "pojo" ], "byOption": [ { "option": 
"action", "value": "QUEUE_STATUS", "carriers": [ "pojo" ], "javaType": 
"org.asteriskjava.manager.ResponseEvents" }, { "option": "action", "value": 
"SIP_PEERS", "carriers": [ "pojo" ], "javaType": 
"org.asteriskjava.manager.ResponseEvents" }, { "option": "action", "value": 
"EXTENSION_STATE", "carriers": [ "pojo" ], "javaType": 
"org.asteriskjava.manager.response.ManagerResponse" } ], "description": 
"QUEUE_STATUS and SIP_ [...]
   },
   "properties": {
-    "name": { "index": 0, "kind": "path", "displayName": "Name", "group": 
"common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Name of component" },
-    "hostname": { "index": 1, "kind": "parameter", "displayName": "Hostname", 
"group": "common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The hostname of the asterisk server" },
-    "password": { "index": 2, "kind": "parameter", "displayName": "Password", 
"group": "common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": true, 
"security": "secret", "description": "Login password" },
-    "username": { "index": 3, "kind": "parameter", "displayName": "Username", 
"group": "common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": true, 
"security": "secret", "description": "Login username" },
+    "name": { "index": 0, "kind": "path", "displayName": "Name", "group": 
"common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "A logical name of the endpoint, for example the name of the 
Asterisk server. The component does not use it to connect." },
+    "hostname": { "index": 1, "kind": "parameter", "displayName": "Hostname", 
"group": "common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The host name or IP address of the Asterisk server. The 
consumer and the producer connect to the Asterisk Manager Interface (AMI) of 
this host on port 5038, which cannot be changed." },
+    "password": { "index": 2, "kind": "parameter", "displayName": "Password", 
"group": "common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": true, 
"security": "secret", "description": "The secret of the AMI user, as defined in 
the manager.conf file of the Asterisk server." },
+    "username": { "index": 3, "kind": "parameter", "displayName": "Username", 
"group": "common", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": true, 
"security": "secret", "description": "The name of the AMI user, as defined in 
the manager.conf file of the Asterisk server. The consumer and the producer 
each log in with it when they start." },
     "bridgeErrorHandler": { "index": 4, "kind": "parameter", "displayName": 
"Bridge Error Handler", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions (if possible) occurred 
while the Camel consumer is trying to pickup incoming  [...]
     "exceptionHandler": { "index": 5, "kind": "parameter", "displayName": 
"Exception Handler", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "object", "javaType": 
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", 
"deprecated": false, "autowired": false, "secret": false, "description": "To 
let the consumer use a custom ExceptionHandler. Notice if the option 
bridgeErrorHandler is enabled then this option is not in use. By def [...]
     "exchangePattern": { "index": 6, "kind": "parameter", "displayName": 
"Exchange Pattern", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "enum", "javaType": 
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], 
"deprecated": false, "autowired": false, "secret": false, "description": "Sets 
the exchange pattern when the consumer creates an exchange." },
-    "action": { "index": 7, "kind": "parameter", "displayName": "Action", 
"group": "producer", "label": "producer", "required": false, "type": "enum", 
"javaType": "org.apache.camel.component.asterisk.AsteriskAction", "enum": [ 
"QUEUE_STATUS", "SIP_PEERS", "EXTENSION_STATE" ], "deprecated": false, 
"autowired": false, "secret": false, "description": "What action to perform 
such as getting queue status, sip peers or extension state." },
+    "action": { "index": 7, "kind": "parameter", "displayName": "Action", 
"group": "producer", "label": "producer", "required": false, "type": "enum", 
"javaType": "org.apache.camel.component.asterisk.AsteriskAction", "enum": [ 
"QUEUE_STATUS", "SIP_PEERS", "EXTENSION_STATE" ], "deprecated": false, 
"autowired": false, "secret": false, "description": "The AMI action that the 
producer sends for each message: QUEUE_STATUS for the status of the queues and 
their members, SIP_PEERS for the list  [...]
     "lazyStartProducer": { "index": 8, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Whether the producer should be started 
lazy (on the first message). By starting lazy you can use this to allow 
CamelContext and routes to startup in situations where a produc [...]
   }
 }
diff --git a/components/camel-asterisk/src/main/docs/asterisk-component.adoc 
b/components/camel-asterisk/src/main/docs/asterisk-component.adoc
index fbfd1c6669a6..2fe45861000a 100644
--- a/components/camel-asterisk/src/main/docs/asterisk-component.adoc
+++ b/components/camel-asterisk/src/main/docs/asterisk-component.adoc
@@ -2,7 +2,7 @@
 :doctitle: Asterisk
 :shortname: asterisk
 :artifactid: camel-asterisk
-:description: Interact with Asterisk PBX Server (VoIP).
+:description: Receive events from an Asterisk PBX server and send actions to 
it over the Asterisk Manager Interface (AMI).
 :since: 2.18
 :supportlevel: Stable
 :tabs-sync-option:
diff --git 
a/components/camel-asterisk/src/main/java/org/apache/camel/component/asterisk/AsteriskConstants.java
 
b/components/camel-asterisk/src/main/java/org/apache/camel/component/asterisk/AsteriskConstants.java
index aa9591e40988..f9eb44c8c6d6 100644
--- 
a/components/camel-asterisk/src/main/java/org/apache/camel/component/asterisk/AsteriskConstants.java
+++ 
b/components/camel-asterisk/src/main/java/org/apache/camel/component/asterisk/AsteriskConstants.java
@@ -19,17 +19,23 @@ package org.apache.camel.component.asterisk;
 import org.apache.camel.spi.Metadata;
 
 public final class AsteriskConstants {
-    @Metadata(label = "consumer", description = "The name of the Asterisk 
event.", javaType = "java.lang.String",
-              important = true)
+    @Metadata(label = "consumer",
+              description = "The simple class name of the asterisk-java 
ManagerEvent in the body, for example NewChannelEvent or"
+                            + " HangupEvent. Set by the consumer for each 
event.",
+              javaType = "java.lang.String", important = true)
     public static final String EVENT_NAME = "CamelAsteriskEventName";
-    @Metadata(label = "producer", description = "The extension to query in 
case of an `ExtensionStateAction`.",
+    @Metadata(label = "producer",
+              description = "The extension whose state the producer queries 
with the EXTENSION_STATE action, for example"
+                            + " 100. The other actions do not use it.",
               javaType = "java.lang.String")
     public static final String EXTENSION = "CamelAsteriskExtension";
     @Metadata(label = "producer",
-              description = "The name of the context that contains the 
extension to query in case of an `ExtensionStateAction`.",
+              description = "The dialplan context that contains the extension 
of the CamelAsteriskExtension header, for the"
+                            + " EXTENSION_STATE action. The other actions do 
not use it.",
               javaType = "java.lang.String")
     public static final String CONTEXT = "CamelAsteriskContext";
-    @Metadata(label = "producer", description = "The Asterisk action to do.",
+    @Metadata(label = "producer",
+              description = "The AMI action that the producer sends for this 
message. Replaces the action option.",
               javaType = "org.apache.camel.component.asterisk.AsteriskAction")
     public static final String ACTION = "CamelAsteriskAction";
 
diff --git 
a/components/camel-asterisk/src/main/java/org/apache/camel/component/asterisk/AsteriskEndpoint.java
 
b/components/camel-asterisk/src/main/java/org/apache/camel/component/asterisk/AsteriskEndpoint.java
index 97740ea38bd1..e8da57f2d032 100644
--- 
a/components/camel-asterisk/src/main/java/org/apache/camel/component/asterisk/AsteriskEndpoint.java
+++ 
b/components/camel-asterisk/src/main/java/org/apache/camel/component/asterisk/AsteriskEndpoint.java
@@ -34,7 +34,7 @@ import org.apache.camel.support.DefaultEndpoint;
 import org.apache.camel.util.ObjectHelper;
 
 /**
- * Interact with Asterisk PBX Server (VoIP).
+ * Receive events from an Asterisk PBX server and send actions to it over the 
Asterisk Manager Interface (AMI).
  */
 @UriEndpoint(firstVersion = "2.18.0", scheme = "asterisk", title = "Asterisk", 
syntax = "asterisk:name",
              category = { Category.MOBILE }, headersClass = 
AsteriskConstants.class)
@@ -63,22 +63,32 @@ import org.apache.camel.util.ObjectHelper;
                                                  + " the ManagerResponse, an 
ExtensionStateResponse. A ManagerError is the"
                                                  + " response when Asterisk 
answers with an error"))
 public class AsteriskEndpoint extends DefaultEndpoint implements 
EndpointServiceLocation {
-    @UriPath(description = "Name of component")
+    @UriPath(description = "A logical name of the endpoint, for example the 
name of the Asterisk server. The component does"
+                           + " not use it to connect.")
     @Metadata(required = true)
     private String name;
 
-    @UriParam
+    @UriParam(description = "The host name or IP address of the Asterisk 
server. The consumer and the producer connect to"
+                            + " the Asterisk Manager Interface (AMI) of this 
host on port 5038, which cannot be changed.")
     @Metadata(required = true)
     private String hostname;
 
-    @UriParam(label = "producer")
+    @UriParam(label = "producer",
+              description = "The AMI action that the producer sends for each 
message: QUEUE_STATUS for the status of the queues"
+                            + " and their members, SIP_PEERS for the list of 
SIP peers, or EXTENSION_STATE for the state of the"
+                            + " extension in the CamelAsteriskExtension and 
CamelAsteriskContext headers. The"
+                            + " CamelAsteriskAction header replaces this 
option for a message. If neither is set, the"
+                            + " producer fails the message.")
     private AsteriskAction action;
 
-    @UriParam(security = "secret")
+    @UriParam(security = "secret",
+              description = "The name of the AMI user, as defined in the 
manager.conf file of the Asterisk server. The consumer"
+                            + " and the producer each log in with it when they 
start.")
     @Metadata(required = true)
     private String username;
 
-    @UriParam(security = "secret")
+    @UriParam(security = "secret",
+              description = "The secret of the AMI user, as defined in the 
manager.conf file of the Asterisk server.")
     @Metadata(required = true)
     private String password;
 
@@ -127,9 +137,6 @@ public class AsteriskEndpoint extends DefaultEndpoint 
implements EndpointService
         return username;
     }
 
-    /**
-     * Login username
-     */
     public void setUsername(String username) {
         this.username = username;
     }
@@ -138,9 +145,6 @@ public class AsteriskEndpoint extends DefaultEndpoint 
implements EndpointService
         return password;
     }
 
-    /**
-     * Login password
-     */
     public void setPassword(String password) {
         this.password = password;
     }
@@ -149,9 +153,6 @@ public class AsteriskEndpoint extends DefaultEndpoint 
implements EndpointService
         return action;
     }
 
-    /**
-     * What action to perform such as getting queue status, sip peers or 
extension state.
-     */
     public void setAction(AsteriskAction action) {
         this.action = action;
     }
@@ -160,16 +161,10 @@ public class AsteriskEndpoint extends DefaultEndpoint 
implements EndpointService
         return hostname;
     }
 
-    /**
-     * The hostname of the asterisk server
-     */
     public void setHostname(String hostname) {
         this.hostname = hostname;
     }
 
-    /**
-     * Logical name
-     */
     public String getName() {
         return name;
     }
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index eeb30c00a54d..faf2feefa7cb 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -289,7 +289,8 @@ public interface ComponentsBuilderFactory {
     }
     /**
      * Asterisk (camel-asterisk)
-     * Interact with Asterisk PBX Server (VoIP).
+     * Receive events from an Asterisk PBX server and send actions to it over
+     * the Asterisk Manager Interface (AMI).
      * 
      * Category: mobile
      * Since: 2.18
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AsteriskComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AsteriskComponentBuilderFactory.java
index be114584f385..2c0c54228bc0 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AsteriskComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AsteriskComponentBuilderFactory.java
@@ -24,7 +24,8 @@ import org.apache.camel.builder.component.ComponentBuilder;
 import org.apache.camel.component.asterisk.AsteriskComponent;
 
 /**
- * Interact with Asterisk PBX Server (VoIP).
+ * Receive events from an Asterisk PBX server and send actions to it over the
+ * Asterisk Manager Interface (AMI).
  * 
  * Generated by camel build tools - do NOT edit this file!
  */
@@ -33,7 +34,8 @@ public interface AsteriskComponentBuilderFactory {
 
     /**
      * Asterisk (camel-asterisk)
-     * Interact with Asterisk PBX Server (VoIP).
+     * Receive events from an Asterisk PBX server and send actions to it over
+     * the Asterisk Manager Interface (AMI).
      * 
      * Category: mobile
      * Since: 2.18
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
index 957875e43f04..e9bb06d754b6 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
@@ -256,7 +256,8 @@ public class EndpointHeaderBuilders {
     }
     /**
      * Asterisk (camel-asterisk)
-     * Interact with Asterisk PBX Server (VoIP).
+     * Receive events from an Asterisk PBX server and send actions to it over
+     * the Asterisk Manager Interface (AMI).
      * 
      * Category: mobile
      * Since: 2.18
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index e95f0f25af9b..6178b6239141 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -882,7 +882,8 @@ public class StaticEndpointBuilders {
     }
     /**
      * Asterisk (camel-asterisk)
-     * Interact with Asterisk PBX Server (VoIP).
+     * Receive events from an Asterisk PBX server and send actions to it over
+     * the Asterisk Manager Interface (AMI).
      * 
      * Category: mobile
      * Since: 2.18
@@ -891,7 +892,8 @@ public class StaticEndpointBuilders {
      * Syntax: <code>asterisk:name</code>
      * 
      * Path parameter: name (required)
-     * Name of component
+     * A logical name of the endpoint, for example the name of the Asterisk
+     * server. The component does not use it to connect.
      * 
      * @param path name
      * @return the dsl builder
@@ -901,7 +903,8 @@ public class StaticEndpointBuilders {
     }
     /**
      * Asterisk (camel-asterisk)
-     * Interact with Asterisk PBX Server (VoIP).
+     * Receive events from an Asterisk PBX server and send actions to it over
+     * the Asterisk Manager Interface (AMI).
      * 
      * Category: mobile
      * Since: 2.18
@@ -910,7 +913,8 @@ public class StaticEndpointBuilders {
      * Syntax: <code>asterisk:name</code>
      * 
      * Path parameter: name (required)
-     * Name of component
+     * A logical name of the endpoint, for example the name of the Asterisk
+     * server. The component does not use it to connect.
      * 
      * @param componentName to use a custom component name for the endpoint
      * instead of the default name
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AsteriskEndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AsteriskEndpointBuilderFactory.java
index c4110a2a0c9c..2929bf941aaa 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AsteriskEndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AsteriskEndpointBuilderFactory.java
@@ -27,7 +27,8 @@ import org.apache.camel.builder.EndpointProducerBuilder;
 import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
 
 /**
- * Interact with Asterisk PBX Server (VoIP).
+ * Receive events from an Asterisk PBX server and send actions to it over the
+ * Asterisk Manager Interface (AMI).
  * 
  * Generated by camel build tools - do NOT edit this file!
  */
@@ -44,7 +45,9 @@ public interface AsteriskEndpointBuilderFactory {
             return (AdvancedAsteriskEndpointConsumerBuilder) this;
         }
         /**
-         * The hostname of the asterisk server.
+         * The host name or IP address of the Asterisk server. The consumer and
+         * the producer connect to the Asterisk Manager Interface (AMI) of this
+         * host on port 5038, which cannot be changed.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -59,7 +62,8 @@ public interface AsteriskEndpointBuilderFactory {
             return this;
         }
         /**
-         * Login password.
+         * The secret of the AMI user, as defined in the manager.conf file of
+         * the Asterisk server.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -74,7 +78,9 @@ public interface AsteriskEndpointBuilderFactory {
             return this;
         }
         /**
-         * Login username.
+         * The name of the AMI user, as defined in the manager.conf file of the
+         * Asterisk server. The consumer and the producer each log in with it
+         * when they start.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -229,7 +235,9 @@ public interface AsteriskEndpointBuilderFactory {
         }
 
         /**
-         * The hostname of the asterisk server.
+         * The host name or IP address of the Asterisk server. The consumer and
+         * the producer connect to the Asterisk Manager Interface (AMI) of this
+         * host on port 5038, which cannot be changed.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -244,7 +252,8 @@ public interface AsteriskEndpointBuilderFactory {
             return this;
         }
         /**
-         * Login password.
+         * The secret of the AMI user, as defined in the manager.conf file of
+         * the Asterisk server.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -259,7 +268,9 @@ public interface AsteriskEndpointBuilderFactory {
             return this;
         }
         /**
-         * Login username.
+         * The name of the AMI user, as defined in the manager.conf file of the
+         * Asterisk server. The consumer and the producer each log in with it
+         * when they start.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -274,8 +285,12 @@ public interface AsteriskEndpointBuilderFactory {
             return this;
         }
         /**
-         * What action to perform such as getting queue status, sip peers or
-         * extension state.
+         * The AMI action that the producer sends for each message: 
QUEUE_STATUS
+         * for the status of the queues and their members, SIP_PEERS for the
+         * list of SIP peers, or EXTENSION_STATE for the state of the extension
+         * in the CamelAsteriskExtension and CamelAsteriskContext headers. The
+         * CamelAsteriskAction header replaces this option for a message. If
+         * neither is set, the producer fails the message.
          * 
          * The option is a:
          * <code>org.apache.camel.component.asterisk.AsteriskAction</code> 
type.
@@ -290,8 +305,12 @@ public interface AsteriskEndpointBuilderFactory {
             return this;
         }
         /**
-         * What action to perform such as getting queue status, sip peers or
-         * extension state.
+         * The AMI action that the producer sends for each message: 
QUEUE_STATUS
+         * for the status of the queues and their members, SIP_PEERS for the
+         * list of SIP peers, or EXTENSION_STATE for the state of the extension
+         * in the CamelAsteriskExtension and CamelAsteriskContext headers. The
+         * CamelAsteriskAction header replaces this option for a message. If
+         * neither is set, the producer fails the message.
          * 
          * The option will be converted to a
          * <code>org.apache.camel.component.asterisk.AsteriskAction</code> 
type.
@@ -375,7 +394,9 @@ public interface AsteriskEndpointBuilderFactory {
         }
 
         /**
-         * The hostname of the asterisk server.
+         * The host name or IP address of the Asterisk server. The consumer and
+         * the producer connect to the Asterisk Manager Interface (AMI) of this
+         * host on port 5038, which cannot be changed.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -390,7 +411,8 @@ public interface AsteriskEndpointBuilderFactory {
             return this;
         }
         /**
-         * Login password.
+         * The secret of the AMI user, as defined in the manager.conf file of
+         * the Asterisk server.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -405,7 +427,9 @@ public interface AsteriskEndpointBuilderFactory {
             return this;
         }
         /**
-         * Login username.
+         * The name of the AMI user, as defined in the manager.conf file of the
+         * Asterisk server. The consumer and the producer each log in with it
+         * when they start.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -437,7 +461,8 @@ public interface AsteriskEndpointBuilderFactory {
     public interface AsteriskBuilders {
         /**
          * Asterisk (camel-asterisk)
-         * Interact with Asterisk PBX Server (VoIP).
+         * Receive events from an Asterisk PBX server and send actions to it
+         * over the Asterisk Manager Interface (AMI).
          * 
          * Category: mobile
          * Since: 2.18
@@ -450,7 +475,8 @@ public interface AsteriskEndpointBuilderFactory {
         }
         /**
          * Asterisk (camel-asterisk)
-         * Interact with Asterisk PBX Server (VoIP).
+         * Receive events from an Asterisk PBX server and send actions to it
+         * over the Asterisk Manager Interface (AMI).
          * 
          * Category: mobile
          * Since: 2.18
@@ -459,7 +485,8 @@ public interface AsteriskEndpointBuilderFactory {
          * Syntax: <code>asterisk:name</code>
          * 
          * Path parameter: name (required)
-         * Name of component
+         * A logical name of the endpoint, for example the name of the Asterisk
+         * server. The component does not use it to connect.
          * 
          * @param path name
          * @return the dsl builder
@@ -469,7 +496,8 @@ public interface AsteriskEndpointBuilderFactory {
         }
         /**
          * Asterisk (camel-asterisk)
-         * Interact with Asterisk PBX Server (VoIP).
+         * Receive events from an Asterisk PBX server and send actions to it
+         * over the Asterisk Manager Interface (AMI).
          * 
          * Category: mobile
          * Since: 2.18
@@ -478,7 +506,8 @@ public interface AsteriskEndpointBuilderFactory {
          * Syntax: <code>asterisk:name</code>
          * 
          * Path parameter: name (required)
-         * Name of component
+         * A logical name of the endpoint, for example the name of the Asterisk
+         * server. The component does not use it to connect.
          * 
          * @param componentName to use a custom component name for the endpoint
          * instead of the default name
@@ -501,7 +530,9 @@ public interface AsteriskEndpointBuilderFactory {
         public static final AsteriskHeaderNameBuilder INSTANCE = new 
AsteriskHeaderNameBuilder();
 
         /**
-         * The name of the Asterisk event.
+         * The simple class name of the asterisk-java ManagerEvent in the body,
+         * for example NewChannelEvent or HangupEvent. Set by the consumer for
+         * each event.
          * 
          * The option is a: {@code java.lang.String} type.
          * 
@@ -513,7 +544,9 @@ public interface AsteriskEndpointBuilderFactory {
             return "CamelAsteriskEventName";
         }
         /**
-         * The extension to query in case of an ExtensionStateAction.
+         * The extension whose state the producer queries with the
+         * EXTENSION_STATE action, for example 100. The other actions do not 
use
+         * it.
          * 
          * The option is a: {@code java.lang.String} type.
          * 
@@ -525,8 +558,9 @@ public interface AsteriskEndpointBuilderFactory {
             return "CamelAsteriskExtension";
         }
         /**
-         * The name of the context that contains the extension to query in case
-         * of an ExtensionStateAction.
+         * The dialplan context that contains the extension of the
+         * CamelAsteriskExtension header, for the EXTENSION_STATE action. The
+         * other actions do not use it.
          * 
          * The option is a: {@code java.lang.String} type.
          * 
@@ -538,7 +572,8 @@ public interface AsteriskEndpointBuilderFactory {
             return "CamelAsteriskContext";
         }
         /**
-         * The Asterisk action to do.
+         * The AMI action that the producer sends for this message. Replaces 
the
+         * action option.
          * 
          * The option is a: {@code
          * org.apache.camel.component.asterisk.AsteriskAction} type.
diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md
index da678242b9c7..bd208c8657d8 100644
--- a/tasks/component-descriptions.md
+++ b/tasks/component-descriptions.md
@@ -70,7 +70,7 @@ or removes its row.
 | camel-apicurio-registry | apicurio-registry |  |
 | camel-arangodb | arangodb |  |
 | camel-as2 | as2 |  |
-| camel-asterisk | asterisk |  |
+| camel-asterisk | asterisk | yes |
 | camel-atmosphere-websocket | atmosphere-websocket |  |
 | camel-atom | atom |  |
 | camel-avro-rpc | avro |  |

Reply via email to