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....
Compare the best Internet providers in Clifford, ND. Find Internet service providers in Clifford, ND by entering your ZIP code above. View reviews, ratings, pri...
Find and compare the best VoIP providers in Incline Village, NV. See the business VoIP phone service providers in Incline Village, NV in the above tables. Also ...
Find and compare the best VoIP providers in Termo, CA. See the business VoIP phone service providers in Termo, CA in the above tables. Also read reviews, rating...
Find and compare the best VoIP providers in Kneeland, CA. See the business VoIP phone service providers in Kneeland, CA in the above tables. Also read reviews, ...
This is the updated dial plan information for firmware version 1.3 A dial plan describes the number and pattern of digits that a user dials to reach a particula...
Compare the best Internet providers in Lane, SD. Find Internet service providers in Lane, SD by entering your ZIP code above. View reviews, ratings, pricing, an...
Compare the best Internet providers in Briar, MO. Find Internet service providers in Briar, MO by entering your ZIP code above. View reviews, ratings, pricing, ...
Transcription from ((http://www.soft-switch.org)): “Unicall is an abstraction layer, making telephony applications largely independent of the protocols us...
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.