You could make the background file into a MOH file in a separate class and use the MOH commands to start and stop it. Easier than coding C and recompiling.
_____ From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Noel R. Morais Sent: Friday, May 22, 2009 4:45 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] How to stop a background music But I need a way to actively stop it. Without waiting for user hit a DTMF or the background timeout. Like "StopMusicOnHold()", is there something like "StopBackground()"? Thanks On Fri, May 22, 2009 at 6:35 PM, Danny Nicholas <da...@debsinc.com> wrote: Background(file,m) will stop when user hits a DTMF digit that is an active extension in your dialplan. _____ From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Noel R. Morais Sent: Friday, May 22, 2009 4:29 PM To: asterisk-users@lists.digium.com Subject: [asterisk-users] How to stop a background music Hi Guys, I would like to know if is there a way to actively stop a Background() music? Thanks, Noel _______________________________________________ -- 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