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....
RTMP Channel driver The Channel RTMP Asterisk module allows to place audio (and video) calls from a web browser using the FlashPlayer from Adobe(R). The license...
Compare the best Internet providers in Wyola, MT. Find Internet service providers in Wyola, MT by entering your ZIP code above. View reviews, ratings, pricing, ...
-=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 Farson, WY. See the business VoIP phone service providers in Farson, WY in the above tables. Also read reviews, rati...
Find and compare the best VoIP providers in Round Mountain, NV. See the business VoIP phone service providers in Round Mountain, NV in the above tables. Also re...
Compare the best Internet providers in North Chicago, IL. Find Internet service providers in North Chicago, IL by entering your ZIP code above. View reviews, ra...
Compare the best Internet providers in Seaforth, MN. Find Internet service providers in Seaforth, MN by entering your ZIP code above. View reviews, ratings, pri...