Official Document Https://trac.pjsip.org/repos/wiki/Getting-Started/iPhone
Function
Features that can be implemented on the iphone:
- Includes CoreAudio-based audio devices that support the built-in ILBC codec support built-in ILBC codec support for integrated ILBC codec video
- Built-in/device echo Canceller
- Output volume settings
- Input delay settings
- Output delay settings
- Support for built-in ILBC encoders
- Video
Compiling the environment
- Xcode
- Xcode command line, Apple Developer downloads and install
Prepare before compiling
1. Get the source code: Https://trac.pjsip.org/repos/wiki/Getting-Started/Download-Source
2. Introduction to Config_site.h, Official document: Https://trac.pjsip.org/repos/wiki/Getting-Started/Build-Preparation
Create a new Config_site.h file under source Engineering path PJLIB/INCLUDE/PJ, that is, the config_site.h path is pjlib/include/pj/config_site.h. Write the following code in the Config_site.h file that will activate the iphone-specific settings in config_site_sample.h.
#define Pj_config_iphone 1#include <pj/config_site_sample.h>
Compiling PJSIP
Command line, run the following command:
$ cd/path/to/your/pjsip/dir$./configure-iphone$ make dep && do clean && make
When you run the./configure-iphone, the error "-bash:./configure-iphone:/bin/bash^m:bad interpreter:no such file or directory", Workaround: $ vim configure-iphone, in the bottom mode, enter ": Set FF" to see if the format is UNIX, if not, continue typing ": Set Fileformat=unix" After executing input ": Wq".
Continue running $./configure-iphone, error "./configure-iphone:line 162:./aconfigure:permission denied", Workaround: Command line execution $ chmod +x./aconfigure, after completion, execute the $ again./configure-iphone
When you're done compiling, Xcode opens the project pjproject/pjsip-apps/src/pjsua/ios/ipjsua.xcodeproj
Pjsip-ios Source Code Compilation