[asterisk-users] Music On Hold

Ex Vito ex.vitorino at gmail.com
Sun Feb 1 21:30:56 CST 2009


On Fri, Jan 30, 2009 at 3:23 PM, Danny Nicholas <danny at debsinc.com> wrote:
> The dialplan AFAIK doesn't cover HOLD handling.  If you can spare the
> overhead, you can make a daemon to watch hints and run a script whenever the
> hint for a line goes to hold and changes from hold to inuse.  Just run
> "asterisk –rx "core show hints"" and "asterisk –rx "core show channels"" and
> integrate the 2 outputs.  For your purpose, you can probably just use the
> first command.
>

  You should instaed use the AMI and create an event based solution
  instead of relying on polling via "asterisk -rx" !...

  Check out:

  http://www.voip-info.org/wiki-Asterisk+manager+API
  http://www.voip-info.org/wiki/view/asterisk+manager+events

  Cheers,
--
  exvito



More information about the asterisk-users mailing list