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....
Find and compare the best VoIP providers in Cobalt, ID. See the business VoIP phone service providers in Cobalt, ID in the above tables. Also read reviews, rati...
Find and compare the best VoIP providers in Guasti, CA. See the business VoIP phone service providers in Guasti, CA in the above tables. Also read reviews, rati...
Find and compare the best VoIP providers in Palo Verde, AZ. See the business VoIP phone service providers in Palo Verde, AZ in the above tables. Also read revie...
Compare the best Internet providers in Hamilton, ND. Find Internet service providers in Hamilton, ND by entering your ZIP code above. View reviews, ratings, pri...
Compare the best Internet providers in Coello, IL. Find Internet service providers in Coello, IL by entering your ZIP code above. View reviews, ratings, pricing...
Find and compare the best VoIP providers in Carrizozo, NM. See the business VoIP phone service providers in Carrizozo, NM in the above tables. Also read reviews...
Compare the best Internet providers in Willow Springs, IL. Find Internet service providers in Willow Springs, IL by entering your ZIP code above. View reviews, ...
Compare the best Internet providers in Triumph, IL. Find Internet service providers in Triumph, IL by entering your ZIP code above. View reviews, ratings, prici...
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.