[prev in list] [next in list] [prev in thread] [next in thread] 

List:       asterisk-biz
Subject:    Re: [Asterisk-biz] text till answer
From:       gmail lists <vstath () gmail ! com>
Date:       2005-08-31 15:09:07
Message-ID: c1900e4f05083108093584df8d () mail ! gmail ! com
[Download RAW message or body]

The shell script I sent you (I have replaced the mpg123 binary with
it) does EXACTLY what you want.

At least it does exactly that in my installation....

On MOH it does cat file (from the beginning of the file). You either
do something different or I'm totally wrong.


On 30/08/05, ChB <a0305292@unet.univie.ac.at> wrote:
> i've had already activated raw-output, still that doesn't solve the issue with
> play from the beginning till pickup.
> regards
> christian
> 
> On Tue, 30 Aug 2005 10:34:14 +0300
> gmail lists <vstath@gmail.com> wrote:
> 
> > 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@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@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@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@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@lists.digium.com
> > > > http://lists.digium.com/mailman/listinfo/asterisk-biz
> > > >
> > >
> > _______________________________________________
> > Asterisk-Biz mailing list
> > Asterisk-Biz@lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-biz
> >
> _______________________________________________
> Asterisk-Biz mailing list
> Asterisk-Biz@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-biz
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic