[Asterisk-biz] text till answer
gmail lists
vstath at gmail.com
Tue Aug 30 00:34:14 MST 2005
Ah, ok, found it in the Wiki also:
http://www.voip-info.org/tiki-index.php?page=Asterisk+mpg123+faking+it
On 30/08/05, gmail lists <vstath at gmail.com> wrote:
> You can simply use this trick to do your job reliably and without need
> for real mpg123:
>
> file: mpg123 (just the same name but it will be a shell script)
>
> --------
>
> #!/bin/sh
> while [ 1 ]; do cat /var/lib/asterisk/mohmp3/please-wait.raw || exit; done
>
> --------
>
> and use a program to save the MOH file in RAW mode (I use audacity for windows).
>
> Each time your caller is on MOH he will hear the file from start.
>
> I think this (from the top of my head and without testing) will do the
> trick for you.
>
>
>
> On 30/08/05, Trevor G. Hammonds <trevor at skyhost.net> wrote:
> > My suggestion is to background a short "please wait..." file, then dump them
> > into the Dial command with the m option. Use a specifically-created MOH
> > class with a "please continue to hold..." message mixed into the music every
> > X seconds. This way, they always hear the message before entering the hold
> > queue, and as long as the call is ringing, they continue to hear MOH
> > interspersed with your message.
> >
> > Sincerely,
> > Trevor Hammonds
> >
> >
> > ChB wrote on Monday, 29 August 2005 6:18 PM:
> >
> > > well, problem is that the sound file contains the information "please
> > > hold the line, were right with you" so the called person should be
> > > able to pick up the call and stop the playback of the file, basically
> > > i want the m-feature, just for _every_ call, from the beginning.
> > >
> > > regards
> > > christian
> > >
> > >
> > > On Monday Aug 2005 11:45:21 -0400 "Tony Fontoura" <tony at fontoura.com>
> > > wrote:
> > >
> > >> Suggestion:
> > >> Use "play" to answer the call with your sound file and only then dial
> > >> the extension.
> > >>
> > >>
> > >> -----Original Message-----
> > >> From: Christian Benke
> > >> Sent: Monday, August 29, 2005 11:36 AM
> > >> To: asterisk-biz at lists.digium.com
> > >> Subject: [Asterisk-biz] text till answer
> > >>
> > >> hello!
> > >>
> > >> i'm looking for a feature to play a sound-file containing a text
> > >> until the called party picks up the phone. i've already tried with
> > >> the 'special' musiconhold-feature by adding the m-option at the end
> > >> of DIAL but it
> > >> is not exactly what i want. the proble m with the m-option is that
> > >> the file is played to a second caller at the same position as it was
> > >> played to the first caller, so when the second person calls, the text
> > >> is played somewhere in the middle of the track instead of the
> > >> beginning. i only works when the file has already been fully
> > >> played(e.g. when there was enough time between the first and the
> > >> second call). i want to play a text for every caller(that is played
> > >> from the beginning) until the called party picks up the phone, is
> > >> that possible? th ank you for all suggestions!
> > >>
> > >> regards
> > >> chris
> >
> > _______________________________________________
> > Asterisk-Biz mailing list
> > Asterisk-Biz at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-biz
> >
>
More information about the asterisk-biz
mailing list