Pickup([targets])
Full arguments reference
targetsextensionrequired - Specification of the pickup target.extensionrequiredcontext
extension2- Additional specifications of pickup targets. (multiple)extension2requiredcontext2
This application can pickup a specified ringing channelA single call leg passing through Asterisk. Channels represent connections to endpoints and are what dialplan applications act on.. The channel to pickup can be specified in the following ways.
1) If no extension targets are specified, the application will pickup a channel matching the pickup group of the requesting channel.
2) If the extension is specified with a 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. of the special string PICKUPMARK (for example 10@PICKUPMARK), the application will pickup a channel which has defined the channel variable PICKUPMARK with the same value as extension (in this example, 10).
3) If the extension is specified with or without a context, the channel with a matching extension and context will be picked up. If no context is specified, the current context will be used.
Note
The extension is typically set on matching channels by the dial application that created the channel. The context is set on matching channels by the channel driver for the device.
targetsextensionrequired - Specification of the pickup target.extensionrequiredcontext
extension2- Additional specifications of pickup targets. (multiple)extension2requiredcontext2
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.