[asterisk-dev] [Code Review] 3983: func_channel: Add CHANNEL(onhold) item to get the current hold status of the channel.
rmudgett
reviewboard at asterisk.org
Mon Sep 8 11:15:08 CDT 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3983/
-----------------------------------------------------------
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/979dd36a/attachment.html>
More information about the asterisk-dev
mailing list