[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
Tue Sep 9 11:14:14 CDT 2014


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

(Updated Sept. 9, 2014, 11:14 a.m.)


Status
------

This change has been marked as submitted.


Review request for Asterisk Developers.


Changes
-------

Committed in revision 422870


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/20140909/639b953b/attachment.html>


More information about the asterisk-dev mailing list