# Asterisk AMI for hold unhold

**URL:** <https://community.asterisk.org/t/asterisk-ami-for-hold-unhold/98113>\
**Category:** Asterisk APIs\
**Created:** [August 5, 2023, 8:53pm UTC](https://community.asterisk.org/t/asterisk-ami-for-hold-unhold/98113 "2023-08-05T20:53:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jehanzaib\_kiani](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jehanzaib\_kiani](https://community.asterisk.org/u/jehanzaib_kiani)\
**Post date:** [August 5, 2023, 8:53pm UTC](https://community.asterisk.org/t/asterisk-ami-for-hold-unhold/98113/1 "2023-08-05T20:53:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [August 5, 2023, 11:05pm UTC](https://community.asterisk.org/t/asterisk-ami-for-hold-unhold/98113/2 "2023-08-05T23:05:54Z")

</div>

Redirect can take two channels.

---

<div class="post-metadata">

**Author:** ![jehanzaib\_kiani](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jehanzaib\_kiani](https://community.asterisk.org/u/jehanzaib_kiani)\
**Post date:** [August 6, 2023, 12:35am UTC](https://community.asterisk.org/t/asterisk-ami-for-hold-unhold/98113/3 "2023-08-06T00:35:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [August 6, 2023, 12:07pm UTC](https://community.asterisk.org/t/asterisk-ami-for-hold-unhold/98113/4 "2023-08-06T12:07:27Z")

</div>

[https://wiki.asterisk.org/wiki/display/AST/ManagerAction\_Bridge](https://wiki.asterisk.org/wiki/display/AST/ManagerAction_Bridge)

[https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Application\_Bridge](https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Application_Bridge)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [September 5, 2023, 12:08pm UTC](https://community.asterisk.org/t/asterisk-ami-for-hold-unhold/98113/5 "2023-09-05T12:08:01Z")

</div>

Closed on September 5, 2023, 12:08pm UTC

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