Port Your PJSIP Engine to BlackBerry 10 in Less Than 10 minutes

[This is a guest post from Gurtej Sandhu, developer relations at RIM]

If you haven’t already heard, the BlackBerry 10 countdown is on. If you have an existing application using PJSIP libraries, this is your opportunity to port your pjsip open source stack to BlackBerry 10 in a matter of minutes. As you may have already heard, Bob Cripps has successfully ported PJSIP to BlackBerry 10. Just very recently Bob has helped simplify building PJSIP for BlackBerry 10 by creating a set of executable scripts. This work has now all been committed to our BlackBerry github repository.

I took this opportunity to dig deep into building PJSIP for BlackBerry 10. As soon as I had my Linux environment up and running with all the prerequisites installed, I am happy to say that it took me less than ten minutes to build and load PJSIP BlackBerry 10 Cascades sample project to my BlackBerry 10 Dev Alpha device. So please don’t try to reinvent the wheel – dive right into this github repository to port PJSIP to BlackBerry 10. Remember to follow the README instructions as they are very important. You can also follow the instructions in PJSIP porting guide knowledge base article.

If you run into any issues in porting PJSIP to BlackBerry 10 you can send me a tweet @_GurtejSandhu or write your comment below and I will be happy to assist.

Again, huge kudos to Bob Cripps for contributing his recent work in simplifying building PJSIP for BlackBerry 10.

Success stories:


BlackBerry 10 Development:



Related Posts

4 Responses to “Port Your PJSIP Engine to BlackBerry 10 in Less Than 10 minutes”

  1. 1 Miika Ahdesmäki (@mja_fin) 3 February 2013 at 15:01

    Hi therel,
    I tried following the instructions here: http://supportforums.blackberry.com/t5/Native-Development/Porting-PJSIP-PJMEDIA-and-PJLIB-to-BlackBerry-10/ta-p/2085751

    When I build the project for the BlackBerry target, there are errors about missing .h files, a’la:
    /home/ahdesmak/bbndk/target_10_0_9_2318/qnx6/usr/include/pjsip/include/pjsip/sip_config.h:59:35: fatal error: pjsip/sip_autoconf.h: No such file or directory

    Any help appreciated!


  2. 2 Gurtej S. Sandhu 5 February 2013 at 20:52

    Hi Mike,

    In the sdkfile.zip that was generated you should see the sip_autoconf file in below path sdkfiles\usr\include\pjsip\include\pjsip. Can you confirm if this file is there? If it is then the problem is that you are not copying the files to the correct location in your NDK path. Can you please confirm if you are copying the header “folders and “library files” from the sdkfile.zip to the correct NDK path as specified in steps 11-13.

    Gurtej Sandhu

  3. 3 Miika Ahdesmäki (@mja_fin) 10 February 2013 at 11:10

    Hi Gurtej,
    Thanks for the reply! I think I found the reason it wasn’t working; updates to the NDK do not update bbndk-env.sh, so it was pointing to the wrong host and target directories (old ones, 10.0.9.x). I updated the .sh to point to the latest host and target and redid everything in the instructions. Works great.. Well, compiles and deploys.. working on making my first call now. I’ll keep you posted, awesome work!

  4. 4 Miika Ahdesmäki (@mja_fin) 10 February 2013 at 16:35

    OK so I tried placing a call using
    pjsua_call_make_call(my_acc_id, &uri, 0, NULL, NULL, NULL);
    ..and the app crashes (BB Dev Alpha). Are there any examples anywhere how to interface pjsua_call_make_call() with the phone (if such is necessary)?

Comments are currently closed.

%d bloggers like this: