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 1cb43b79bc31705b4dc3da6fea871460b0feca3a
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Fri Sep 3 08:39:24 2021 +0200

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

diff --git a/docs/components/modules/ROOT/pages/asterisk-component.adoc 
b/docs/components/modules/ROOT/pages/asterisk-component.adoc
index 5011c7f..82128e3 100644
--- a/docs/components/modules/ROOT/pages/asterisk-component.adoc
+++ b/docs/components/modules/ROOT/pages/asterisk-component.adoc
@@ -136,4 +136,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