Upgrade 3CX to v18 and get it hosted free!

Asterisk CLI Originate

Author image

Synopsis

Starts a call from the CLI and links it to an application or context.

Description

There are two ways to use this command. A call can be originated between a channel and a specific application, or between a channel and an extension in the dialplan. This is similar to call files or the manager originate action.

originate <tech/data> application <appname> [appdata]

This will originate a call between the specified channel and the given application. Arguments to the application are optional.

originate <tech/data> extension [<exten>@][<context>] 

This will originate a call between the specified channel and the given extension. If no context is specified, the ‘default’ context will be used. If no extension is given, the ‘s’ extension will be used.

NOTE:
As of Asterisk 1.6 the new syntax for originating calls from the CLI is:

channel originate <tech/data> application <appname> [appdata]
channel originate <tech/data> extension [<exten>@][<context>] 

Example

In extensions.conf

[greeting]]
exten => 400,1,Answer
exten => 400,n,Background("hello")
exten => 400,n,Wait(5)
exten => 400,n,HangUp()

Then in CLI:

originate Zap/1/123456 extension 400@greeting

This can be used from external scripts like this: asterisk -rx “originate zap/1/123456 extension 1@greeting”

See also

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.