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 Aberdeen, SK. See the business VoIP phone service providers in Aberdeen, SK in the above tables. Also read reviews, ...
Compare the best Internet providers in Bennington, KS. Find Internet service providers in Bennington, KS by entering your ZIP code above. View reviews, ratings,...
As the challenge of competing in the telecom domain becomes more intense than ever, telcos are looking for elusive success strategies. But the problem is that t...
The growing demand for VoIP and cloud-based services has provided excellent agent opportunities for telecom agents, IT consultants, systems integrators, interco...
Find and compare the best VoIP providers in Colombier, QC. See the business VoIP phone service providers in Colombier, QC in the above tables. Also read reviews...
Compare the best Internet providers in Mackinaw, IL. Find Internet service providers in Mackinaw, IL by entering your ZIP code above. View reviews, ratings, pri...
Find and compare the best VoIP providers in Fall City, WA. See the business VoIP phone service providers in Fall City, WA in the above tables. Also read reviews...
Find and compare the best VoIP providers in Hebertville, QC. See the business VoIP phone service providers in Hebertville, QC in the above tables. Also read rev...
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.