VoIP Development on BlackBerry 10

Case Studies & Success Stories

TITLE_IMAGE

Let me be the first to share with you that real-time communications (VoIP) development is not only possible, but the BlackBerry® 10 platform was specifically built from ground up to deliver the best communications experience. There may be plenty of open source stacks out there for VoIP development, but an important one that comes to mind is PJSIP. To provide a brief overview, PJSIP is a free and open source multimedia stack written in C, and it supports audio, video, presence, and instant messaging capabilities. This allows you to develop compelling real-time communication applications, such as VoIP phone.

This may seem like a lot of porting effort but based on my experience in working with our good friends here at Truphone, this was fairly easy to bring over to BlackBerry 10. I want to take this opportunity and share their experience in porting a PJSIP open source multimedia stack over to BlackBerry 10. Check out my interview with Adam from Truphone below:

What is Tru App?

The Tru app is our mobile application, available on BlackBerry 10, iOS, and Android, that allows our users to call and message people for free, or very cheaply. It works with our SIM offerings to provide a unique experience across GSM and VoIP.

Share your experience in cross compiling your code for BlackBerry 10.

Piece of cake! We have about 250k LoC in our voice engine, with many layers: signaling, NAT traversal, socket management, codec management, and much more. The only layer we needed to work on was that part that controlled the audio units (the actual hardware). Even that didn’t require that much work — 60 man days and our entire audio engine was ported and hooked up in our automated build environment with unit and integration tests complete!

What APIs did you use to build Tru App on BlackBerry 10?

For the audio unit work, we needed to work with the AlSA-like API that the BlackBerry 10 OS (which is QNX based) provides. This is subtly different to ALSA in that you request a preferred audio unit to be opened on your behalf, based on what state the device is in; e.g. it might be in hands-free mode, or might have a headset plugged in. We had to learn those APIs, which was fairly straightforward, as all the documentation was available online on the QNX website. There were one or two changes that are obviously specific to BlackBerry 10’s QNX implementation, but RIM® helped us in overcoming those challenges, and I’m sure that information will be fed into the API docs for the upcoming release of BlackBerry 10.

Other than that, we had to work with the Cascades™ framework and its Qt APIs (as well as QML to render our views). That was only complex in so far that much of it was not documented, but that is common with pre-alpha products! Since the alpha devices were released to the public at BlackBerry World™, all the documentation has been provided to make this a fairly straightforward task.

How was your experience relative to working with other platforms and BlackBerry 10?

It’s unix-like, which makes it open source friendly, which means you can stand on the shoulders of giants. It’s a great platform for prototyping and innovating, or indeed any project where you need to get productive quickly.

There are seemingly no private APIs on the device either, which means you don’t have to spend time working around limitations put on the device by the manufacturer.

How was your experience working with the RIM team?

Without wanting to sound like I’m biased, it was honestly really impressive. I’d heard RIM had put a lot of investment into developer relations, and that was obvious. The guys were massively responsive and attentive. It wasn’t just the dev relations guys either — the devs themselves took time to speak to us and get our feedback.

Is Tru App going to be available on BlackBerry 10?

Yep, we’ll be ready come the launch date!

What does this port mean for developers?

It’s a platform that you can add to your existing mobile strategy with low cost and minimum effort. It’s a platform you can innovate on, and there is an existing customer base you can rely on for revenue. Tecnically, it’s a very strong platform.

Thanks for sharing all of these details with us, Adam!

You can follow this success story at:
http://blog.truphone.com/2012/05/blackberry-10-the-developers-advantage-1.html

Truphone has contributed their work back to the PJSIP project and this is now available for download. Kudos to both to both Adam Linford and Bob Cripps for making this all happen.

PJSIP Blog
Getting Started: Building for BlackBerry 10

About Gurtej S.

Gurtej is an Application Development Consultant with the Developer Relations at Research In Motion (RIM). His responsibilities include managing the technical relationships with System Integrators (SI) and Independent Software Vendors (ISVs) who specialize in integrating with the BlackBerry Enterprise Solution. Gurtej’s area of expertise includes BES and enterprise application development.

Join the conversation

Show comments Hide comments
+ -
blog comments powered by Disqus