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

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

commit e11c4a3d46957dbe7f528707a4e4a02211541204
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Fri Sep 3 08:32:25 2021 +0200

    CAMEL-16849 - Add at least one example for component in docs - 
Camel-Asterisk
---
 .../src/main/docs/asterisk-component.adoc              | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/components/camel-asterisk/src/main/docs/asterisk-component.adoc 
b/components/camel-asterisk/src/main/docs/asterisk-component.adoc
index ff88e06..df5eac9 100644
--- a/components/camel-asterisk/src/main/docs/asterisk-component.adoc
+++ b/components/camel-asterisk/src/main/docs/asterisk-component.adoc
@@ -134,4 +134,22 @@ Supported actions are:
 * SIP_PEERS: List SIP peers
 * EXTENSION_STATE: Check extension status
 
+== Examples
+
+=== Producer Example
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:in")
+  
.to("asterisk://myVoIP?hostname=hostname&username=username&password=password&action=EXTENSION_STATE")
+--------------------------------------------------------------------------------
+
+=== Consumer Example
+
+[source,java]
+--------------------------------------------------------------------------------
+from("asterisk:myVoIP?hostname=hostname&username=username&password=password")
+  .log("Received a message - ${body}");
+--------------------------------------------------------------------------------
+
 
include::{page-component-version}@camel-spring-boot::page$asterisk-starter.adoc[]

Reply via email to