How to set custom click-to-call Asterisk?

In the Internet there are many instructions on how to configure click-to-call according to the following scheme. The script initiates dialing to the number, if the customer answered the call, the Asterisk dials the operator's extension number. I have the task to initiate a call and connect to an operator immediately. As I understand it, you need to set the context. But how exactly - can't understand.
March 23rd 20 at 18:52
1 answer
March 23rd 20 at 18:54
Simply reverse the parties.
First call the operator, and when he picked up the phone, initiate a call to the client.

Find more questions by tags Asterisk