[asterisk-dev] [Code Review] 2680: ARI: Channels - MOH start and stop

jrose reviewboard at asterisk.org
Tue Jul 16 15:53:56 CDT 2013

This is an automatically generated e-mail. To reply, visit:

Review request for Asterisk Developers, David Lee and Matt Jordan.

Bugs: ASTERISK-21974

Repository: Asterisk


This solves half of the issue.

mohStartChannel(channel, mohclass) - Play music on hold of the specified class to the requested channel. May be interrupted by other media requests such as playOnChannel.
mohStop(channel) - Stop playing music on hold for the requested channel.

This patch is pretty simple, so I don't think there will be an issue with it.


  /trunk/include/asterisk/stasis_app.h 394458 
  /trunk/res/res_stasis_http_channels.c 394458 
  /trunk/res/stasis/control.c 394458 
  /trunk/res/stasis_http/resource_channels.h 394458 
  /trunk/res/stasis_http/resource_channels.c 394458 
  /trunk/rest-api/api-docs/channels.json 394458 

Diff: https://reviewboard.asterisk.org/r/2680/diff/


Started music on hold without the mohclass arg and with the mohclass arg. Observed how it would react if mohstart were used with one class and then switched to another. The music on hold would restart with the new class as anticipated.

Tested stop music on hold with and without music on hold playing. If it's playing, it stops as one would anticipate and if it's not playing, nothing happens. Nothing too irregular there.

Tested both of these operations while the channel is in a bridge. Didn't work. Oh no. Well, I talked with Matt about it after finding out the same thing happens with all media playback operations in ARI and he says this is a known bug outside the scope of this problem..



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130716/31e3f856/attachment.htm>

More information about the asterisk-dev mailing list