Hi Guys, I would like to know if is there a way to actively stop a Background() music? Thanks, Noel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090522/1e317b99/attachment.htm
Background(file,m) will stop when user hits a DTMF digit that is an active extension in your dialplan. _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Noel R. Morais Sent: Friday, May 22, 2009 4:29 PM To: asterisk-users at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090522/04f2bdba/attachment.htm
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 <danny at 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-bounces at lists.digium.com [mailto: > asterisk-users-bounces at lists.digium.com] *On Behalf Of *Noel R. Morais > *Sent:* Friday, May 22, 2009 4:29 PM > *To:* asterisk-users at 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090522/61f4e6a7/attachment.htm
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-bounces at lists.digium.com [mailto:asterisk-users-bounces at 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 <danny at 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-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Noel R. Morais Sent: Friday, May 22, 2009 4:29 PM To: asterisk-users at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090522/f63d49bd/attachment.htm
On Fri, 22 May 2009, Noel R. Morais wrote:> But I need a way to actively stop it. Without waiting for user hit a DTMF or > the background timeout.What event would trigger your desire to stop the background()? Thanks in advance, ------------------------------------------------------------------------ Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000