The desired result is that user A’s phone rings; when he picks it up,
user B is dialled, and user A’s channel is connected to that. (This is
to be a back-end for a web-based address book.)
You’re looking for the “Originate” action in AMI. The originating channel is
user A’s device address, and the action can be either a predetermined
extension in the dialplan or an application (such as Dial), with arguments.
If you go the extension route, you can additionally set variables from the
originate command to be set prior to the extension being invoked.
This is “click-to-call”. It can be done with the Asterisk Manager Interface
(AMI). See this site:
Thanks to you and Tilghman for this, though as it turned out it was much
simpler to avoid AMI completely and use the Extension: parameter to an
outgoing call file.