Originate(tech_data,type,arg1[,arg2,arg3,timeout,options])
Full arguments reference
tech_datarequired - Channel technology and data for creating the outbound channel. For example, SIPSession Initiation Protocol, the standard signaling protocol used to set up, manage, and tear down VoIP calls between Asterisk and phones or carriers./1234.typerequired - This should beapporexten, depending on whether the outbound channel should be connected to an application or extension.arg1required - If the type isapp, then this is the application name. If the type isexten, then this is the contextA named section of the dialplan that groups extensions. Calls enter a specific context and can only reach extensions visible from it, making contexts the basic unit of call routing and security. that the channel will be sent to.arg2- If the type isapp, then this is the data passed as arguments to the application. If the type isexten, then this is the extension that the channel will be sent to.arg3- If the type isexten, then this is the priority that the channel is sent to. If the type isapp, then this parameter is ignored.timeout- Timeout in seconds. Default is 30 seconds.optionsa- Originate asynchronously. In other words, continue in the dialplanThe core call-routing configuration of Asterisk, written mostly in extensions.conf as contexts, extensions, and priorities that decide how every call is handled. Full definition → without waiting for the originated channel to answer.b- Before originating the outgoing call, Gosub to the specified location using the newly created channel.contextextenpriorityrequiredarg1required (multiple)argN
B- Before originating the outgoing call, Gosub to the specified location using the current channel.contextextenpriorityrequiredarg1required (multiple)argN
C- Comma-separated list of codecs to use for this call. Default isslin.c- The caller IDThe calling party number (and optionally name) presented on an outbound call, set from the endpoint or manipulated in the dialplan. number to use for the called channel. Default is the current channel's Caller ID number.n- The caller ID name to use for the called channel. Default is the current channel's Caller ID name.v- A series of channel variables to set on the destination channel.var1(multiple)namerequiredvaluerequired
This application originates an outbound call and connects it to a specified extensionA dialplan entry that matches a dialed number or pattern within a context and triggers a sequence of prioritized steps. or application. This application will block until the outgoing call fails or gets answered, unless the async option is used. At that point, this application will exit with the status variable set and dialplanThe core call-routing configuration of Asterisk, written mostly in extensions.conf as contexts, extensions, and priorities that decide how every call is handled. Full definition → processing will continue.
This application sets the following channelA single call leg passing through Asterisk. Channels represent connections to endpoints and are what dialplan applications act on. variable before exiting:
- ORIGINATE_STATUS - This indicates the result of the call origination.
FAILEDSUCCESSBUSYCONGESTIONHANGUPRINGINGUNKNOWN- In practice, you should never see this value. Please report it to the issue tracker if you ever see it.
tech_datarequired - Channel technology and data for creating the outbound channel. For example, SIPSession Initiation Protocol, the standard signaling protocol used to set up, manage, and tear down VoIP calls between Asterisk and phones or carriers./1234.typerequired - This should beapporexten, depending on whether the outbound channel should be connected to an application or extension.arg1required - If the type isapp, then this is the application name. If the type isexten, then this is the contextA named section of the dialplan that groups extensions. Calls enter a specific context and can only reach extensions visible from it, making contexts the basic unit of call routing and security. that the channel will be sent to.arg2- If the type isapp, then this is the data passed as arguments to the application. If the type isexten, then this is the extension that the channel will be sent to.arg3- If the type isexten, then this is the priority that the channel is sent to. If the type isapp, then this parameter is ignored.timeout- Timeout in seconds. Default is 30 seconds.optionsa- Originate asynchronously. In other words, continue in the dialplanThe core call-routing configuration of Asterisk, written mostly in extensions.conf as contexts, extensions, and priorities that decide how every call is handled. Full definition → without waiting for the originated channel to answer.b- Before originating the outgoing call, Gosub to the specified location using the newly created channel.contextextenpriorityrequiredarg1required (multiple)argN
B- Before originating the outgoing call, Gosub to the specified location using the current channel.contextextenpriorityrequiredarg1required (multiple)argN
C- Comma-separated list of codecs to use for this call. Default isslin.c- The caller IDThe calling party number (and optionally name) presented on an outbound call, set from the endpoint or manipulated in the dialplan. number to use for the called channel. Default is the current channel's Caller ID number.n- The caller ID name to use for the called channel. Default is the current channel's Caller ID name.v- A series of channel variables to set on the destination channel.var1(multiple)namerequiredvaluerequired
User Notes
Know a tip or gotcha for this topic? Share it below and help others.
Contribute a note
Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.