Getting Hold Status Via AMI ?

Home » Asterisk Users » Getting Hold Status Via AMI ?
Asterisk Users 1 Comment

Hi,

Is there any way to tell via the AMI or console if a given SIP channel is hold? ChanIsAvail in the dialplan appears to have a ‘hold’ status, but AMI and CLI commands tend to return ‘in use’, which is the same state as a regular active call.

Thanks

-Brian

One thought on - Getting Hold Status Via AMI ?

  • Hey Brian,

    I don’t know exactly how to find this out (although I’d love to!) but I know it is possible. I saw a video on a custom web socket based AMI connection that showed when the channel was on hold.

    I’d assume if you open an AMI interface, log all of the calls and ensure you put a channel on hold while logging you could find it within the log?

    If you find it, please let us (or at least me!) know.

    Cheers,

    Andrew

    From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Brian Camp Sent: Tuesday, 28 August 2012 3:22 AM
    To: asterisk-users@lists.digium.com Subject: [asterisk-users] Getting hold status via AMI ?

    Hi,

    Is there any way to tell via the AMI or console if a given SIP channel is hold? ChanIsAvail in the dialplan appears to have a ‘hold’ status, but AMI and CLI commands tend to return ‘in use’, which is the same state as a regular active call.

    Thanks

    -Brian