# Holy Telephony Batman! It's Batphone 0.1.0

**URL:** <https://www.ruby-forum.com/t/holy-telephony-batman-its-batphone-0-1-0/87252>\
**Category:** Ruby\
**Created:** [March 1, 2007, 7:12am UTC](https://www.ruby-forum.com/t/holy-telephony-batman-its-batphone-0-1-0/87252 "2007-03-01T07:12:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hans\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a587f6/32.png) [@Hans\_F](https://www.ruby-forum.com/u/Hans_F)\
**Post date:** [March 1, 2007, 7:12am UTC](https://www.ruby-forum.com/t/holy-telephony-batman-its-batphone-0-1-0/87252/1 "2007-03-01T07:12:20Z")

</div>

Does the world need yet another Ruby Asterisk Gateway Interface library?  
Does the world need a guy who dresses up like a bat?

I was not satisfied with the complexity and learning curve of existing  
AGI libraries for Ruby, so rather than spend an hour learning one of  
them I spent several hours writing my own. I hope this pays off in the  
future when it only takes me 5 minutes to remember/relearn how to use  
batphone. It was fun, anyway. That’s the point, isn’t it? That’s why  
Batman does it. Not for the citizens of Gotham, but because it’s fun.

Here’s a synopsis:

```
 #!/usr/bin/ruby
 require 'agi'

 agi = AGI.new
 agi.answer
 agi.stream_file('batman_help_the_monkeys_are_everywhere', nil)
 begin
   # press pound to make them stop!
   r = agi.stream_file('tt-monkeys', '#')
 end while r.result != ?#
 agi.stream_file('POW', nil)
 agi.hangup

```

Here’s the URLs:

Documentation: [File: README](http://hans.fugal.net/src/batphone/doc/files/README.html)  
Download: [http://hans.fugal.net/src/batphone/batphone-0.1.0.tar.gz](http://hans.fugal.net/src/batphone/batphone-0.1.0.tar.gz)

POW!

---

<div class="post-metadata">

**Author:** ![Hans\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a587f6/32.png) [@Hans\_F](https://www.ruby-forum.com/u/Hans_F)\
**Post date:** [March 1, 2007, 8:10am UTC](https://www.ruby-forum.com/t/holy-telephony-batman-its-batphone-0-1-0/87252/2 "2007-03-01T08:10:27Z")

</div>

On Thu, 1 Mar 2007, Hans F. wrote:

> Does the world need yet another Ruby Asterisk Gateway Interface library? Does  
> the world need a guy who dresses up like a bat?

i do, thanks!

-a
