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

2005-05-18 Thread Adam Goryachev
On Tue, 2005-05-17 at 17:04 +0100, Seb Auriol wrote:
 In fact, this is what I'm doing at the moment on the production system, but
 we've had a complaint because it doesn't start at the beginning for each
 caller. This is pretty important because the file starts with something like
 Thank you for calling X. We appreciate your patience during this brief
 period...
 
 Thanks for the info on Background though. I think the wiki could do with
 some clarification on this.
 
 Kind regards,
 

Search the wiki for alternate MoH options, I think there is at least one
which will support playing the music from the beginning for each caller.

Also check bugs.digium.com I suppose...

Regards,
Adam


___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2005-05-18 Thread Steve Edwards
On Wed, 18 May 2005, Adam Goryachev wrote:
On Tue, 2005-05-17 at 17:04 +0100, Seb Auriol wrote:
In fact, this is what I'm doing at the moment on the production system, but
we've had a complaint because it doesn't start at the beginning for each
caller. This is pretty important because the file starts with something like
Thank you for calling X. We appreciate your patience during this brief
period...
Thanks for the info on Background though. I think the wiki could do with
some clarification on this.
Kind regards,
Search the wiki for alternate MoH options, I think there is at least one
which will support playing the music from the beginning for each caller.
Check out '[moh_files] in musiconhold.conf.
Thanks in advance,

Steve Edwards  [EMAIL PROTECTED]  Voice: +1-760-468-3867 PST
Newline   [EMAIL PROTECTED]Fax: +1-760-731-3000
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


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

2005-05-17 Thread Seb Auriol
Title: Background() problem (with queue(), etc.)






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



___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

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

2005-05-17 Thread Adam Goryachev
On Tue, 2005-05-17 at 11:35 +0100, Seb Auriol wrote:
 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?

Yes, the obvious solution convert vm-intro to a mp3 file, and put it
in a directory by itself. Then you can setup musiconhold.conf with a
class pointing to this dir, fix up your step 7 as appropriate, and you
are all done.

PS, Background simply listens for DTMF while playing the file, but it
won't continue in the dialplan until after the file is finished. The
queue function is designed to play the file while at the same time,
calling agents to get the call delivered/answered.

Regards,
Adam
-- 
 -- 
Adam Goryachev
Website Managers
Ph:  +61 2 9345 4395[EMAIL PROTECTED]
Fax: +61 2 9345 4396www.websitemanagers.com.au

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2005-05-17 Thread Seb Auriol
In fact, this is what I'm doing at the moment on the production system, but
we've had a complaint because it doesn't start at the beginning for each
caller. This is pretty important because the file starts with something like
Thank you for calling X. We appreciate your patience during this brief
period...

Thanks for the info on Background though. I think the wiki could do with
some clarification on this.

Kind regards,

Seb
  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adam Goryachev
Sent: 17 May 2005 16:13
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Background() problem (with queue(), etc.)

On Tue, 2005-05-17 at 11:35 +0100, Seb Auriol wrote:
 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?

Yes, the obvious solution convert vm-intro to a mp3 file, and put it
in a directory by itself. Then you can setup musiconhold.conf with a
class pointing to this dir, fix up your step 7 as appropriate, and you
are all done.

PS, Background simply listens for DTMF while playing the file, but it
won't continue in the dialplan until after the file is finished. The
queue function is designed to play the file while at the same time,
calling agents to get the call delivered/answered.

Regards,
Adam
-- 
 -- 
Adam Goryachev
Website Managers
Ph:  +61 2 9345 4395[EMAIL PROTECTED]
Fax: +61 2 9345 4396www.websitemanagers.com.au

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2005-05-17 Thread Peter Svensson
On Tue, 17 May 2005, Seb Auriol wrote:

 In fact, this is what I'm doing at the moment on the production system, but
 we've had a complaint because it doesn't start at the beginning for each
 caller. This is pretty important because the file starts with something like
 Thank you for calling X. We appreciate your patience during this brief
 period...

There was some talk (possibly with patches) 6-12 months ago about 
modifying the queue application to allow it to play sound clips. 

Perhaps inspiration can be drawn from the icd project, where the
announcements are listed together with instructions on how the list should
be repeated. The list includes position and time announcements as well.

Asterisk already has a syntax that is usable - the zonedata tone 
definitions. An announcements definition could be:

 
announce=!welcome,15,!position,15,!msg2,30,position,30,msg3,30,position,30,msg4,30

This would play the welcome file, wait 15s, announce the position, wait 
15s, play the msg2 file, wait 30s, play msg3, wait 30s, position, wait 30s 
play msg4, wait 30, repeast to the second position announcement.


Peter


___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] 'background' problem

2004-06-14 Thread Mark Elkins
On Sat, 2004-06-12 at 17:47, Mark Elkins wrote:
 I have a 'day' and a 'night' mode. In the day mode, I play a
 'background' message which is interruptable by the pushing of a DTMF key
 - ie - all is normal.

Let me try again...

If I mix background announcements with SayUnixTime - then my IVR
menu system breaks - DTMF tones are not recognised.

Is this a Bug?
What is the work around?

My example was...

exten = s,7,Playback(posix-welcome-afterhours) ; Welcome to
Posix;
Systems After hours support, Our business hours are Monday
; to Friday, 8am to 5pm. The time is now 
exten = s,8,SayUnixTime(||AIMP); A:Day, I:Hours, M:Minutes, P:am/pm
exten = s,9,Playback(posix-welcome-afterhours-try)
-- 
  .  . ___. .__  Posix Systems - Sth Africa
 /| /|   / /__   [EMAIL PROTECTED]  -  Mark J Elkins, Cisco CCIE
/ |/ |ARK \_/ /__ LKINS  Tel: +27 12 807 0590  Cell: +27 82 601 0496

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] 'background' problem

2004-06-12 Thread Mark Elkins
I have a 'day' and a 'night' mode. In the day mode, I play a
'background' message which is interruptable by the pushing of a DTMF key
- ie - all is normal.

In night mode - I decided to get smarter...

I play two backgrounds with a 'sayunixtime' in between and now DTMF does
nothing - the menu times out to my 'lets get the operator then'...

If I change the three commands to a single 'playback' - everything works
as expected.

Is this because 'sayunixtime' breaks things?
Should I use something else instead of the first 'playback'?
This is with a very recent version of Head CVS.

Code:
exten = s,7,Playback(posix-welcome-afterhours) ; Welcome to Posix;
Systems After hours support, Our business hours are Monday
; to Friday, 8am to 5pm. The time is now 
exten = s,8,SayUnixTime(||AIMP); A:Day, I:Hours, M:Minutes, P:am/pm
exten = s,9,Playback(posix-welcome-afterhours-try) ; Please dial 1
; for support, ...Blah... or Stay on the line for an operator
   
Suggestions?

-- 
  .  . ___. .__  Posix Systems - Sth Africa
 /| /|   / /__   [EMAIL PROTECTED]  -  Mark J Elkins, Cisco CCIE
/ |/ |ARK \_/ /__ LKINS  Tel: +27 12 807 0590  Cell: +27 82 601 0496

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users