Claus Ibsen created CAMEL-26185:
-----------------------------------
Summary: camel-asterisk - the QUEUE_STATUS and SIP_PEERS actions
return only the "will follow" response, the queue and peer events are lost
Key: CAMEL-26185
URL: https://issues.apache.org/jira/browse/CAMEL-26185
Project: Camel
Issue Type: Bug
Components: camel-asterisk
Reporter: Claus Ibsen
Fix For: 4.24.0
Found while adding the catalog body types of asterisk (CAMEL-24961, PR #28413).
h4. 1. QUEUE_STATUS and SIP_PEERS lose their result events
{{AsteriskProducer.process}} (main 2a465aa4814c, line 73) sends every action
with {{AsteriskConnection.sendAction}} (line 102 to 105), which returns the
first {{ManagerResponse}} only. {{QueueStatusAction}} and {{SipPeersAction}}
are event generating actions: the answer is a "will follow" response, and the
actual data comes as {{QueueParamsEvent}}/{{QueueMemberEvent}} and
{{PeerEntryEvent}} events, which are dropped. The body after the producer is
only the "will follow" response. Checked on 4.24.0-SNAPSHOT with a fake AMI
server.
Proposed: use {{ManagerConnection.sendEventGeneratingAction}} for event
generating actions and set the {{ResponseEvents}} (or the list of events) as
the body.
_Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)