Régis MARTIN
2004-Nov-15 15:35 UTC
[Asterisk-Users] Standard messages instead of MOH during dial
Hi, I know the question was already asked but I never found an answer to this problem. So, I try again (things changes :-)) Is there a way to play a specific message or sound from the start during the dial command. I want to do exactly the same thing that the ?m? option of Dial command but with a music that start from the beginning for each new caller. Caller 1 hears ?hello, please hold we?re looking for your friend, lalalal (music)? Caller 2 (2 seconds after the first caller) hears ?hello, please hold we?re looking for your friend, lalalal (music)? Caller 3 (1 seconds after the second caller) hears ?hello, please hold we?re looking for your friend, lalalal (music)? Each time, the message starts from the beginning and was diffused during the dial. As what I read, Background could do the thing because Background must return immediately. But, It?s not what happens. My Background command stay at background priority and go to the next priority (the dial) only when the sound is finish. s,1,Background(sound) s,2,Dial(channel) If the sound takes 3 minutes, the dial start only after the 3 minutes. I want to start the Dial immediately and stop background when caller answer. Is there a way to do this ? Does someone as ever modified to dial or background command to do this ? Thanks in advance, R?gis -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20041115/035f09cf/attachment.htm
Eric Wieling
2004-Nov-15 15:45 UTC
[Asterisk-Users] Standard messages instead of MOH during dial
R?gis MARTIN wrote:> Hi, > > > > I know the question was already asked but I never found an answer to > this problem. So, I try again? (things changes J) > > Is there a way to play a specific message or sound from the start during > the dial command. > > I want to do exactly the same thing that the ?m? option of Dial command > but with a music that start from the beginning for each new caller. > > > > Caller 1 hears ?hello, please hold we?re looking for your friend, > lalalal (music)? > > Caller 2 (2 seconds after the first caller) hears ?hello, please hold > we?re looking for your friend, lalalal (music)? > > Caller 3 (1 seconds after the second caller) hears ?hello, please hold > we?re looking for your friend, lalalal (music)? > > > > Each time, the message starts from the beginning and was diffused during > the dial. > > > > As what I read, Background could do the thing because Background must > return immediately. But, It?s not what happens. > > My Background command stay at background priority and go to the next > priority (the dial) only when the sound is finish.You can use Playback of course. do a "show applications" at the CLI to see all the nifty applications you can have in your dialplan.
Michael Loftis
2004-Nov-15 15:50 UTC
[Asterisk-Users] Standard messages instead of MOH during dial
Background plays a sound while waiting for an extension. You want to Playback your short announcement then start your dial command with the m option.
Brian West
2004-Nov-15 16:16 UTC
[Asterisk-Users] Standard messages instead of MOH during dial
http://bugs.digium.com/bug_view_page.php?bug_id=0002639 That?s what you want. bkw> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of R?gis MARTIN > Sent: Monday, November 15, 2004 4:36 PM > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] Standard messages instead of MOH during dial > > Hi, > > > > I know the question was already asked but I never found an answer to this > problem. So, I try again(things changes :-))> > Is there a way to play a specific message or sound from the start during > the dial command. > > I want to do exactly the same thing that the ?m? option of Dial command > but with a music that start from the beginning for each new caller. > > > > Caller 1 hears ?hello, please hold we?re looking for your friend, lalalal > (music)? > > Caller 2 (2 seconds after the first caller) hears ?hello, please hold > we?re looking for your friend, lalalal (music)? > > Caller 3 (1 seconds after the second caller) hears ?hello, please hold > we?re looking for your friend, lalalal (music)? > > > > Each time, the message starts from the beginning and was diffused during > the dial. > > > > As what I read, Background could do the thing because Background must > return immediately. But, It?s not what happens. > > My Background command stay at background priority and go to the next > priority (the dial) only when the sound is finish. > > > > s,1,Background(sound) > > s,2,Dial(channel) > > > > If the sound takes 3 minutes, the dial start only after the 3 minutes. I > want to start the Dial immediately and stop background when caller answer. > > > > Is there a way to do this ? > > Does someone as ever modified to dial or background command to do this ? > > > > Thanks in advance, > > > > R?gis > >
Régis MARTIN
2004-Nov-16 01:36 UTC
[Asterisk-Users] Standard messages instead of MOH during dial
I will try, but the PlayBack documentation say that Playback play the whole sound and then go to the next extension. I begin to think that my English is really poor. I want to play a sound during (at the same time) the DIAL, but this sound must start from the beginning for each call. Not "jump" into the sound like with MOH. Regis -----Message d'origine----- De?: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] De la part de Eric Wieling Envoy??: lundi 15 novembre 2004 23:46 ??: Asterisk Users Mailing List - Non-Commercial Discussion Objet?: Re: [Asterisk-Users] Standard messages instead of MOH during dial R?gis MARTIN wrote:> Hi, > > > > I know the question was already asked but I never found an answer to > this problem. So, I try again(things changes J)> > Is there a way to play a specific message or sound from the start during > the dial command. > > I want to do exactly the same thing that the ?m? option of Dial command > but with a music that start from the beginning for each new caller. > > > > Caller 1 hears ?hello, please hold we?re looking for your friend, > lalalal (music)? > > Caller 2 (2 seconds after the first caller) hears ?hello, please hold > we?re looking for your friend, lalalal (music)? > > Caller 3 (1 seconds after the second caller) hears ?hello, please hold > we?re looking for your friend, lalalal (music)? > > > > Each time, the message starts from the beginning and was diffused during > the dial. > > > > As what I read, Background could do the thing because Background must > return immediately. But, It?s not what happens. > > My Background command stay at background priority and go to the next > priority (the dial) only when the sound is finish.You can use Playback of course. do a "show applications" at the CLI to see all the nifty applications you can have in your dialplan. _______________________________________________ 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
Régis MARTIN
2004-Nov-16 01:36 UTC
[Asterisk-Users] Standard messages instead of MOH during dial
As what I could read, this patch allows users to replace the moh default system to play something else instead of mp3. Not my problem. Regis -----Message d'origine----- De?: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] De la part de Brian West Envoy??: mardi 16 novembre 2004 00:16 ??: 'Asterisk Users Mailing List - Non-Commercial Discussion' Objet?: RE: [Asterisk-Users] Standard messages instead of MOH during dial http://bugs.digium.com/bug_view_page.php?bug_id=0002639 That?s what you want. bkw> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of R?gis MARTIN > Sent: Monday, November 15, 2004 4:36 PM > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] Standard messages instead of MOH during dial > > Hi, > > > > I know the question was already asked but I never found an answer to this > problem. So, I try again(things changes :-))> > Is there a way to play a specific message or sound from the start during > the dial command. > > I want to do exactly the same thing that the ?m? option of Dial command > but with a music that start from the beginning for each new caller. > > > > Caller 1 hears ?hello, please hold we?re looking for your friend, lalalal > (music)? > > Caller 2 (2 seconds after the first caller) hears ?hello, please hold > we?re looking for your friend, lalalal (music)? > > Caller 3 (1 seconds after the second caller) hears ?hello, please hold > we?re looking for your friend, lalalal (music)? > > > > Each time, the message starts from the beginning and was diffused during > the dial. > > > > As what I read, Background could do the thing because Background must > return immediately. But, It?s not what happens. > > My Background command stay at background priority and go to the next > priority (the dial) only when the sound is finish. > > > > s,1,Background(sound) > > s,2,Dial(channel) > > > > If the sound takes 3 minutes, the dial start only after the 3 minutes. I > want to start the Dial immediately and stop background when caller answer. > > > > Is there a way to do this ? > > Does someone as ever modified to dial or background command to do this ? > > > > Thanks in advance, > > > > R?gis > >_______________________________________________ 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
Matt Riddell
2004-Nov-16 02:08 UTC
[Asterisk-Users] Standard messages instead of MOH during dial
R?gis MARTIN wrote:> As what I could read, this patch allows users to replace the moh default > system to play something else instead of mp3. > > Not my problem.He posted the solution to your problem. You did not try it. What more can we say. The patch he sent you to will play all mp3 files (or any other filetype) from the beginning of the file every time. For future responses, please do not top post as it destroys the thread.> http://bugs.digium.com/bug_view_page.php?bug_id=0002639 > > That?s what you want.-- Cheers, Matt Riddell _______________________________________________ http://www.sineapps.com/news.php (Daily Asterisk News - html) http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)