Creating Phone 2.0 Applications with Adhearsion

14
August 3-5 Trump Towers Chicago © 2010 Verendus, LLC Creative Commons License - CC-BY-SA Creating Phone 2.0 Applications with Adhearsion Ben Klang, Verendus LLC

description

Creating Phone 2.0 Applications with Adhearsion presented by Ben Klang at ClueCon 2010

Transcript of Creating Phone 2.0 Applications with Adhearsion

Page 1: Creating Phone 2.0 Applications with Adhearsion

August 3-5Trump TowersChicago

© 2010 Verendus, LLCCreative Commons License - CC-BY-SA

CreatingPhone 2.0

Applications with

AdhearsionBen Klang, Verendus LLC

Page 2: Creating Phone 2.0 Applications with Adhearsion

August 3-5Trump TowersChicago

© 2010 Verendus, LLCCreative Commons License - CC-BY-SA

Why Phone 2.0?

● Phone 2.0: bringing web mashups to the telephone world

● The web iterates quickly: your phone system should too

● The phone system is no longer an island● Phone isn't just about voice anymore: it's a key

piece of the overall communications package

Page 3: Creating Phone 2.0 Applications with Adhearsion

August 3-5Trump TowersChicago

© 2010 Verendus, LLCCreative Commons License - CC-BY-SA

Why Adhearsion?

● extensions.conf isn't a programming language● Looping and string/math operations are painful● Interfaces to data sources (SQL/LDAP) are primitive

● Softswitches and PBXes are a bad place to implement high-level features● Instability brings down the entire phone system● Each new tech requires a large development effort● Little to no code re-use possible

● Adhearsion: the chassis to your phone engine

Page 4: Creating Phone 2.0 Applications with Adhearsion

August 3-5Trump TowersChicago

© 2010 Verendus, LLCCreative Commons License - CC-BY-SA

Why Adhearsion?

● Plain, easy-to-read syntax with the DSL● Ruby has libraries (gems) for almost everything● JRuby (Ruby in Java VM) has even more● Ruby makes programming accessible● Adhearsion makes programming phones

accessible

Page 5: Creating Phone 2.0 Applications with Adhearsion

August 3-5Trump TowersChicago

© 2010 Verendus, LLCCreative Commons License - CC-BY-SA

What is Adhearsion?

● A framework for creating telephone applications● The first (only?) of its kind● Written in Ruby● Talks to SQL, LDAP

XMPP, REST, JSON,YAML, XML

● …and as manyother acronymsas you can name

Page 6: Creating Phone 2.0 Applications with Adhearsion

August 3-5Trump TowersChicago

© 2010 Verendus, LLCCreative Commons License - CC-BY-SA

XMPP: Instant Information

Page 7: Creating Phone 2.0 Applications with Adhearsion

August 3-5Trump TowersChicago

© 2010 Verendus, LLCCreative Commons License - CC-BY-SA

Code Example: Simple Menu

Page 8: Creating Phone 2.0 Applications with Adhearsion

August 3-5Trump TowersChicago

© 2010 Verendus, LLCCreative Commons License - CC-BY-SA

Code Example: A Bit More Involved

Page 9: Creating Phone 2.0 Applications with Adhearsion

August 3-5Trump TowersChicago

© 2010 Verendus, LLCCreative Commons License - CC-BY-SA

The Future of Adhearsion

● Next Week: Adhearsion 0.8.5● First release with XMPP, some minor features,

many bugs fixed

● 1Q 2011?: Adhearsion 0.9.0● Add support for multiple telephony engines

– FreeSWITCH: Yes. Yate: Maybe? Others?● Further improvements to the DSL● Better Manager/EventSocket abstraction

● Later: Adhearsion 1.0

Page 10: Creating Phone 2.0 Applications with Adhearsion

August 3-5Trump TowersChicago

© 2010 Verendus, LLCCreative Commons License - CC-BY-SA

Who is Adhearsion?

● Jay Phillips● Founder, creator, visionary (2006-2009)

● Jason Goecke● Champion, Loudspeaker, Voxeo Liason

● Ben Klang● Current maintainer, trying to fill big shoes

Page 11: Creating Phone 2.0 Applications with Adhearsion

August 3-5Trump TowersChicago

© 2010 Verendus, LLCCreative Commons License - CC-BY-SA

AdhearsionConf 2010

Page 12: Creating Phone 2.0 Applications with Adhearsion

August 3-5Trump TowersChicago

© 2010 Verendus, LLCCreative Commons License - CC-BY-SA

Learn More about Adhearsion

● Website:● http://adhearsion.com

● IRC● irc.freenode.net #adhearsion

● Mailing List● http://groups.google.com/group/adhearsion

Page 13: Creating Phone 2.0 Applications with Adhearsion

August 3-5Trump TowersChicago

© 2010 Verendus, LLCCreative Commons License - CC-BY-SA

Questions

● ???

Page 14: Creating Phone 2.0 Applications with Adhearsion

August 3-5Trump TowersChicago

© 2010 Verendus, LLCCreative Commons License - CC-BY-SA