Version 11 (modified by bennylp, 14 years ago) (diff)


Getting Started: Building for Apple iPhone

  1. Features
  2. Requirements
  3. Build Preparation
  4. Building PJSIP
  5. Other iPhone Projects

Apple iPhone target is supported by PJSIP version 1.6.5 and later.


The iPhone port contains a native CoreAudio based audio device, which has the following features:

  • built-in echo cancellation
  • output volume setting
  • change input route to bluetooth input
  • change output route
  • input latency setting
  • output latency setting


You'll need an iPhone SDK. We tested mainly with version 3.x SDK/devices, but we tested building against SDK version 2.x and it builds fine.

Build Preparation

  1. Get the source code, if you haven't already.
  2. Please set your config_site.h to the following:
    #define PJ_CONFIG_IPHONE 1
    #include <pj/config_site_sample.h>

Building PJSIP

Just run:

$ cd /your/pjsip/dir
$ ./configure-iphone
$ make dep && make clean && make


  • the ./configure-iphone is a shell script that calls the standard ./configure script with settings suitable for iPhone target.
  • the latest iPhone SDK version will be selected by default. You may change this by setting SDK environment variable to the desired SDK path.
  • you may pass standard ./configure options to this script too.
  • for more info, run ./configure-iphone --help
  • other customizations are similar to what is explained in Building with GNU page.

Other iPhone Projects

Also have a look at these projects by pjsip users:

Attachments (1)

Download all attachments as: .zip