Asterisk AMI for hold unhold

Hi folks,
I am running Asterisk 16.30.0 and trying to use AMI.
I have a call connected (caller leg - callee leg)
I want to put a caller lega on hold & play a file, then call legb on hold using AMI. After a few seconds i want to call AMI again and unhold them (and bridge).
I cant find a way to do it. Redirect does work only on 1 channel then the other channel just hangs up.
I am not sure about Park, have not tested it. Is there anyway that i can put both channels in a conference and then play a file? and if i want to unhold them i can stop playing file?
ANy other idea how to achieve this?

Thanks

Redirect can take two channels.

Thanks.
How to bridge them back once the file is played?

https://wiki.asterisk.org/wiki/display/AST/ManagerAction_Bridge

https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Application_Bridge

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.