[Asterisk-Users] Background() problem (with queue(), etc.)

Seb Auriol sebau at syntec.co.uk
Tue May 17 03:35:06 MST 2005


Hi all,

I want to be able to play messages while someone is in a queue.  From the
documentation the Background() command should work:  From wiki:  """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."""
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.

Relevant entries from extensions.conf:
...
exten => 2401,4,Ringing	
exten => 2401,5,Wait,2
exten => 2401,6,Answer
exten => 2401,7,SetMusicOnHold(default)
exten => 2401,8,Background(vm-intro) ; Use this prompt just for testing...
exten => 2401,9,Queue(q1)

Anybody think of a way of solving this problem?

Many thanks,

Seb Auriol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050517/6a2e2f52/attachment.htm


More information about the asterisk-users mailing list