Asterisk Manager Interface (AMI) : Pickup and Hold

Hello,

Is there a way to pickup a call on a phone with AMI ?
I found this :
voip-info.org/wiki/view/Asterisk+cmd+Pickup

But how to use it in AMI ?

Same question with Hold.

Thanks in advance.

I really don’t understand what it is that you are trying to achieve, but here’s my two cents:

There are no native AMI commands for either scenario.

You need to be creative here, you can use the Redirect AMI command ,
in combination with executing these cli commands through the command AMI command:
https://wiki.asterisk.org/wiki/display/AST/Application_Pickup and the https://wiki.asterisk.org/wiki/display/AST/Application_MusicOnHold cli commands