Dial A Joke with Asterisk

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Dial A Joke with Asterisk - Presentation Transcript

    1. Dial-a-Joke with Asterisk
      • Alex Dong @ Sydney Barcamp 2009
      • http://www.AlexDong.com /
    2. What’s Dial-a-Joke
      • A telephone service that users can call to listen to previously recorded jokes.
      • Goal: call a SIP address to listen to a random one from http://joke.alexdong.com /
      SIP PBX TTS JOKE Asterisk Ceptral Swift Softphone X-lite
    3. Heavylifting - TTS
      • text=`curl -s http://joke.alexdong.com/` swift -o /tmp/joke.wav -p audio/channels=1,audio/sampling-rate=8000 " $text " wait sox /tmp/joke.wav /tmp/newjoke.wav trim 7.5 cp /tmp/newjoke.wav /tmp/joke.wav
    4. Asterisk on OSX
      • sudo port install asterisk
      • /Library/Asterisk/
      • sudo asterisk -cb
    5. Asterisk - SIP Channel
      • sip.conf
      • [alex] type=friend username=alex secret=!@#$!#@$ host=dynamic context=joke
    6. Asterisk - Workflow
      • [tour] exten => 1,1,Answer() exten => 1,n,System(~/joke.sh) exten => 1,n,Playback(/tmp/joke) exten => 1,n,Hangup()
    7. SIP Softphone

    + alexdongalexdong, 4 months ago

    custom

    420 views, 0 favs, 1 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 420
      • 419 on SlideShare
      • 1 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 5
    Most viewed embeds
    • 1 views on http://asterisk.ru

    more

    All embeds
    • 1 views on http://asterisk.ru

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories