ari.v1.channel – Channel Resources

The ari.v1.channel module includes support for interacting with Asterisk channels.

class ari.v1.channel.ChannelManager(api)

Bases: ari.common.base.Manager

Channel resource.

add_music(channel_id, **kwargs)

Add music to the given channel.

Parameters:channel_id – ID of the channel within the stasis application.
answer(channel_id)

Answer the given channel.

Parameters:channel_id – ID of the channel within the stasis application.
delete(channel_id)

Hangup the given channel.

Parameters:channel_id – ID of the channel within the stasis application.
exit(channel_id, **kwargs)

Exit the given channel from stasis.

Parameters:channel_id – ID of the channel within the stasis application.
get(channel_id)

Get information of the given channel.

Parameters:channel_id – ID of the channel within the stasis application.
hold(channel_id)

Place the given channel on hold.

Parameters:channel_id – ID of the channel within the stasis application.
list()

List active channels.

mute(channel_id, **kwargs)

Mute the given channel.

Parameters:channel_id – ID of the channel within the stasis application.
remove_music(channel_id)

Remove music from the given channel.

Parameters:channel_id – ID of the channel within the stasis application.
unhold(channel_id)

Remove the given channel from hold.

Parameters:channel_id – ID of the channel within the stasis application.
unmute(channel_id, **kwargs)

Remove the given channel from mute.

Parameters:channel_id – ID of the channel within the stasis application.