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...<br>
<br>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<br>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<br>
<br>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...<br><br>d<br><br><div class="gmail_quote">
2009/3/27 Danny Nicholas <span dir="ltr"><<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is this correct for all versions, or does it start at 1.4 or 1.6? I did put<br>
a YMMV on the comment, so my answer was not to be taken as "fact".<br>
<div class="im"><br>
-----Original Message-----<br>
From: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br>
</div><div class="im">[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>] On Behalf Of Jared Smith<br>
Sent: Thursday, March 26, 2009 1:29 PM<br>
To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
</div><div class="im">Subject: Re: [asterisk-users] Early Media<br>
<br>
</div><div><div></div><div class="h5">On Wed, 2009-03-25 at 08:34 -0500, Danny Nicholas wrote:<br>
> YMMV, but you might try this<br>
><br>
> Exten => s,1,background(background_song)<br>
><br>
> Exten => s,n,Answer() ;start billing<br>
<br>
This is not correct. Background() automatically answers the call if it<br>
hasn't been answered already.<br>
<br>
The way to accomplish the task the original poster asked is to use the<br>
"m" option to the Dial() application.<br>
<br>
--<br>
Jared Smith<br>
Training Manager<br>
Digium, Inc.<br>
<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br>