<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>Background() problem (with queue(), etc.)</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT COLOR="#808080" SIZE=2 FACE="Arial">Hi all,</FONT>
</P>
<P><FONT COLOR="#808080" SIZE=2 FACE="Arial">I want to be able to play messages while someone is in a queue. From the documentation the Background() command should work: From wiki: """</FONT><FONT FACE="Times New Roman">Starts playing a given sound file, but immediately returns, permitting the sound file to play in the background while the next commands (if any) execute.</FONT><FONT COLOR="#808080" SIZE=2 FACE="Arial">""" But in my example below, it does not return until it has finished playing the prompt. (Even if one puts a NoOp at priority 9, it doesn't execute until vm-intro has finished playing.) This is no use to me, as I want to queue them immediately, and use Background to play an intro and then sales messages with music in the background (this is already mixed in one sound file). Even if I do some ugly hack by changing all the "queue-…" messages in queues.conf (all except one would be a blank file) and then using these, people don't really get put into the queue until these messages end.</FONT></P>
<P><FONT COLOR="#808080" SIZE=2 FACE="Arial">Relevant entries from extensions.conf:</FONT>
<BR><FONT COLOR="#808080" SIZE=2 FACE="Arial">...</FONT>
<BR><FONT COLOR="#808080" SIZE=2 FACE="Arial">exten => 2401,4,Ringing </FONT>
<BR><FONT COLOR="#808080" SIZE=2 FACE="Arial">exten => 2401,5,Wait,2</FONT>
<BR><FONT COLOR="#808080" SIZE=2 FACE="Arial">exten => 2401,6,Answer</FONT>
<BR><FONT COLOR="#808080" SIZE=2 FACE="Arial">exten => 2401,7,SetMusicOnHold(default)</FONT>
<BR><FONT COLOR="#808080" SIZE=2 FACE="Arial">exten => 2401,8,Background(vm-intro) ; Use this prompt just for testing...</FONT>
<BR><FONT COLOR="#808080" SIZE=2 FACE="Arial">exten => 2401,9,Queue(q1)</FONT>
</P>
<P><FONT COLOR="#808080" SIZE=2 FACE="Arial">Anybody think of a way of solving this problem?</FONT>
</P>
<P><FONT COLOR="#808080" SIZE=2 FACE="Arial">Many thanks,</FONT>
</P>
<P><FONT COLOR="#808080" SIZE=2 FACE="Arial">Seb Auriol</FONT>
</P>
</BODY>
</HTML>