[asterisk-dev] [Code Review] 3983: func_channel: Add CHANNEL(onhold) item to get the current hold status of the channel.

Mark Michelson reviewboard at asterisk.org
Mon Sep 8 14:03:08 CDT 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3983/#review13262
-----------------------------------------------------------

Ship it!


Ship It!

- Mark Michelson


On Sept. 8, 2014, 4:15 p.m., rmudgett wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/3983/
> -----------------------------------------------------------
> 
> (Updated Sept. 8, 2014, 4:15 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Bugs: AFS-113 and ASTERISK-24038
>     https://issues.asterisk.org/jira/browse/AFS-113
>     https://issues.asterisk.org/jira/browse/ASTERISK-24038
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> It would be useful to get the current hold status of a channel.
> 
> Added CHANNEL(onhold) item that returns 1 (onhold) and 0 (not-onhold) for the hold status of a channel.
> 
> 
> Diffs
> -----
> 
>   /trunk/funcs/func_channel.c 422836 
> 
> Diff: https://reviewboard.asterisk.org/r/3983/diff/
> 
> 
> Testing
> -------
> 
> A calls B
> Issued AMI getvar action on B for CHANNEL(onhold) and got 0.
> A puts B on hold
> Issued AMI getvar action on B for CHANNEL(onhold) and got 1.
> 
> Works as intended.
> 
> 
> Thanks,
> 
> rmudgett
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140908/a7028ab7/attachment.html>


More information about the asterisk-dev mailing list