Displaying 4 results from an estimated 4 matches for "sounddir".
2005 Feb 18
1
Asterisk@home festival weather report
...nds dir (as specified below)
#adjust the t2wp variable to point to your festival bin directory
use Asterisk::AGI;
use File::Basename;
use Digest::MD5 qw(md5_hex);
$AGI = new Asterisk::AGI;
my %input = $AGI->ReadParse();
my ($text)=@ARGV;
my $hash = md5_hex($text);
my $sounddir = "/var/lib/asterisk/sounds/tts";
my $wavefile = "$sounddir/"."tts-$hash.wav";
my $t2wp= "/usr/src/festival/bin/";
unless (-f $wavefile) {
open(fileOUT, ">$sounddir"."/say-text-$hash.txt");
print fileOUT &q...
2010 Apr 23
3
Playback all the sound files
Hello.
There are so many sound files in /var/lib/asterisk/en. Is there an easy
way to let me play back all of them one by one while I am watching CLI
to see the current file name?
Thanks for help.
--
Jian Gao
IT Technician
SJ Geophysics Ltd. <http://www.sjgeophysics.com>
jian.gao at sjgeophysics.com <mailto:jian.gao at sjgeophysics.com>
Tel: (604)582-1100
2016 Aug 23
2
Dial and start music on hold after timeout
...Answer() before the Dial, otherwise the announcement is never
> played, even in the first case) :
>
> exten = 007,1,Answer()
> same = n,Dial(SIP/foo&Local/s at playme,40)
>
> [playme]
> exten = s,1,Ringing()
> same = n,Wait(10)
> same = n,Playback(/var/lib/asterisk/sounddir/announce,noanswer)
> When it is working, I can see the following output in the CLI, which is
> not there otherwise :
> -- SIP/xxxxxxxxx requested media update control 26, passing it to
> Local/s at playme-000005be;1
>
> Otherwise, no error message, Asterisk tells he is playing the...
2016 Aug 23
2
Dial and start music on hold after timeout
How about:
exten => s,1,Dial(SIP/alice&LOCAL/555 at delayed-announce,40)
[delayed-announce]
exten => 555,1,Wait(20)
same => n,Playback(myannouncement,noanswer)
same => n,NoOP(Whatever else you want to do goes here)
The 'noanswer' option on the Playback means that SIP/alice should continue
to ring for the remaining 20 of the 40 seconds, as the Playback will not
answer