I can't say it's always been like this, as I don't recall, but, Background in 1.0 behaved like this, answering the channel if it wasn't already answered and playing the sound file/s until they finished or an exten was dialed...
in 1.0 the 'skip' option would cause playback to be skipped if the channel was not 'up', the 'noanswer' option would cause the channel to not be answered in 1.2 the options became 's' for skip and 'n' for noanswer though the original 'skip' and 'noanswer' options are still valid even in 1.6 That said, in this example, you'd never leave background as it would sit there playing the background_song file waiting for digits to be dialled... using the dial option would be the way... d 2009/3/27 Danny Nicholas <[email protected]> > Is this correct for all versions, or does it start at 1.4 or 1.6? I did > put > a YMMV on the comment, so my answer was not to be taken as "fact". > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Jared Smith > Sent: Thursday, March 26, 2009 1:29 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] Early Media > > On Wed, 2009-03-25 at 08:34 -0500, Danny Nicholas wrote: > > YMMV, but you might try this > > > > Exten => s,1,background(background_song) > > > > Exten => s,n,Answer() ;start billing > > This is not correct. Background() automatically answers the call if it > hasn't been answered already. > > The way to accomplish the task the original poster asked is to use the > "m" option to the Dial() application. > > -- > Jared Smith > Training Manager > Digium, Inc. > > > _______________________________________________ > -- 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 >
_______________________________________________ -- 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
