exten=> s,1,agi(swift.agi|This is some text\, which needs to be converted to speech.)
shell script
#!/bin/sh
# Assign the value sent from the exten=> line to "$text" so it can be used below
text=`echo $*`
# Set $stdin to something
stdin="0"
while [ "$stdin" != "" ]
do
read stdin
if [ "$stdin" != "" ]
then
stdin2=`echo $stdin | sed -e 's/: /=/' -e 's/"//g' -e 's/$/"/' -e 's/=/="/'`
eval `echo $stdin2`
fi
done
calleridnum=`echo $agi_callerid | cut -f2 -d\< | cut -f1 -d\>`
calleridname=`echo $agi_callerid | cut -f1 -d\< `
/usr/local/bin/swift -o /tmp/$agi_uniqueid.wav -p audio/channels=1,audio/sampling-rate=8000 " $text "
# Now, tell asterisk to play that file
echo "stream file /tmp/$agi_uniqueid #"
# Read the reply from asterisk to our command
read stream
# Clean up our mess and delete that file
rm /tmp/$agi_uniqueid.wav
exit 0
Small businesses often need help to keep up with the demands of their industry, especially when it comes to communication. Traditional phone systems can be cost...
VoIP (Voice over Internet Protocol) enables people to communicate with each other over the internet instead of using complex wire systems in traditional phones....
-=NOTE: These pages are automatically updated once perday from the Asterisk subversion repository when the repository changes revisions. Anychanges made to this...
Find and compare the best VoIP providers in Swisshome, OR. See the business VoIP phone service providers in Swisshome, OR in the above tables. Also read reviews...
Compare the best Internet providers in Brooks, MN. Find Internet service providers in Brooks, MN by entering your ZIP code above. View reviews, ratings, pricing...
VOIP User Groups – Australia Please list Australian VOIP user groups below. If none exists in your city, consider starting one. Sydney VoIP community reso...
Find and compare the best VoIP providers in Biggar, SK. See the business VoIP phone service providers in Biggar, SK in the above tables. Also read reviews, rati...
Find and compare the best VoIP providers in La Puente, CA. See the business VoIP phone service providers in La Puente, CA in the above tables. Also read reviews...
Configuring a tiny Asterisk system There is a lot of interest in running Asterisk on “embedded” platforms like the Linksys NSLU2. News 2014-01-18 Ne...
Compare the best Internet providers in Sunburst, MT. Find Internet service providers in Sunburst, MT by entering your ZIP code above. View reviews, ratings, pri...
Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing
Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.
Verify your Email
Check your inbox!
We’ve sent you an email. Click on the button in the email body to verify your email address – (if you can not find it, check your spam folder).
Upon verification you will be directed to the 3CX setup wizard.
We use cookies to improve your experience on our website. By continuing you are giving consent to cookies being used.