In my situation AMI is not an option. When somebdy puts a call on hold, on 
asterisk console I can see messages like "Started music on hold, class 
'default', on SIP/XXXXXXXX" and "Started music on hold, class 'default', on 
SIP/XXXXXXXX". I guess the only way in my scenerio is to modify 
res_musiconhold.so.

Thanks for your help.

Idris


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Ex Vito
Sent: Monday, February 02, 2009 5:31 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Music On Hold

On Fri, Jan 30, 2009 at 3:23 PM, Danny Nicholas <[email protected]> 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

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to