davsclaus opened a new pull request, #30959:
URL: https://github.com/apache/camel/pull/30959

   # Description
   
   Part of [CAMEL-23832](https://issues.apache.org/jira/browse/CAMEL-23832). 
The umbrella ticket stays open.
   
   ## Summary
   
   New texts for the component description, 5 endpoint options (`name`, 
`hostname`, `username`, `password`, `action`)
   and 4 headers, checked against the Camel code and asterisk-java 3.42.2 
(`ManagerConnectionFactory`,
   `ExtensionStateAction`). The old texts were mostly a few words ("Login 
username", "Name of component", "The Asterisk
   action to do."). The `CamelAsteriskEventName` header was described as the 
name of the Asterisk event, but it holds the
   simple class name of the asterisk-java event (for example 
`NewChannelEvent`). The new texts say that the connection
   uses the AMI port 5038, which header replaces the `action` option, which 
headers `EXTENSION_STATE` reads, and that the
   producer fails the message when no action is set. The component description 
now starts with a verb.
   
   ### Found, not changed
   
   - There is no option for the AMI port: `ManagerConnectionFactory(host, 
username, password)` always uses port 5038, and
     `hostname` cannot take a `host:port` value.
   - The producer logs in with the event mask `on`, like the consumer, so 
Asterisk sends all events to the producer
     connection, where nobody listens to them.
   - `username` and `password` have no `security` label, so they are in the 
`common` group.
   - The `name` path is not used by the code.
   
   ## Tests
   
   - There is no new test, as only description text changes.
   - A script compared the component JSON with the parent commit: only 
`description` fields changed (10 texts).
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [x] I ran the formatter and built the module, then regenerated the catalog 
copy, `dsl/camel-endpointdsl` and `dsl/camel-componentdsl`, and committed all 
generated changes.
   
   # AI-assisted contributions
   
   - [x] If this PR includes AI-generated code, commits have proper 
co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR 
description identifies the AI tool used.
   
   _Claude Code on behalf of davsclaus_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to