Changes between Version 110 and Version 111 of Getting-Started/iPhone


Ignore:
Timestamp:
Feb 16, 2022 5:49:35 AM (2 years ago)
Author:
ming
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Getting-Started/iPhone

    v110 v111  
    3939 }}} 
    4040 
    41 Open {{{ipjsua.xcodeproj}}} using Xcode in [source:pjproject/trunk/pjsip-apps/src/pjsua/ios pjproject/pjsip-apps/src/pjsua/ios]. If you enable video and use libyuv/libopenh264, add the libraries into the application. Build the project and run. You will see telnet instructions on the device's screen. Telnet to this address to operate the application. See [wiki:PJSUA-CLI PJSUA CLI Manual] for commands available. (For release 2.1 and below, ipjsua is located in [source:pjproject/trunk/pjsip-apps/src/ipjsua pjproject/pjsip-apps/src/ipjsua] and does not have CLI telnet feature). 
     41Open {{{ipjsua.xcodeproj}}} using Xcode in [source:pjproject/trunk/pjsip-apps/src/pjsua/ios pjproject/pjsip-apps/src/pjsua/ios]. If you enable video and use libyuv/libopenh264, add the libraries into the application. Build the project and run. You will see telnet instructions on the device's screen. Telnet to this address to operate the application. See [wiki:PJSUA-CLI PJSUA CLI Manual] for commands available. 
    4242 
    4343Notes: 
     
    5050=== Supporting multiple architectures (armv6, armv7, armv7s, arm64, and so on) === 
    5151 
    52 You need to compile separately for each architecture. If your iPhone SDK has '''{{{llvm-gcc}}}''' compiler (which is the supported compiler starting iOS SDK 5) or '''{{{clang}}}''', then you need to set '''{{{ARCH}}}''' environment variable to the desired architecture before running {{{configure-iphone}}}, for example: 
     52You need to compile separately for each architecture by setting '''{{{ARCH}}}''' environment variable to the desired architecture before running {{{configure-iphone}}. For example: 
    5353{{{ 
    5454export ARCH="-arch arm64" 
     
    117117==== OpenH264 or !VideoToolbox (if you need H264 codec, choose one of them) ==== 
    118118 
    119        * For OpenH264, follow the instructions in ticket #1947 (or ticket #1758 if you use PJSIP before version 2.6). 
     119       * For OpenH264, follow the instructions in ticket #1947. 
    120120       * For !VideoToolbox (supported since PJSIP version 2.7), define this in your config_site.h: 
    121121         {{{#define PJMEDIA_HAS_VID_TOOLBOX_CODEC 1}}} 
     
    168168 
    169169Alternatively, using OpenSSL backend is also supported. Follow the instructions below to enable TLS transport by using OpenSSL: 
    170  1. Starting from release 2.6, build and install OpenSSL-1.1.x, please check this [https://wiki.openssl.org/index.php/Compilation_and_Installation#iOS OpenSSL wiki]. For example, to build for arm64 architecture: 
     170 1. Build and install OpenSSL-1.1.x, please check this [https://wiki.openssl.org/index.php/Compilation_and_Installation#iOS OpenSSL wiki]. For example, to build for arm64 architecture: 
    171171 {{{ 
    172172export CROSS_TOP=/Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/ 
     
    177177make install 
    178178}}} 
    179  For PJSIP version before 2.6: Build and install OpenSSL-1.0.0 for iPhone by following [http://www.x2on.de/2010/07/13/tutorial-iphone-app-with-compiled-openssl-1-0-0a-library/ these instructions] or OpenSSL-0.9.8o with [http://www.x2on.de/2010/02/01/tutorial-iphone-app-with-compiled-openssl-library/ these instructions]. 
    180  1. Specify OpenSSL location when running {{{configure-iphone}}}, for example (with Bash): 
    181  {{{ 
    182 ./configure-iphone --with-ssl=[your_openssl_dir] 
    183  }}} 
     179 
    184180 And check that OpenSSL is detected by the configure script: 
    185181 {{{ 
     
    301297 
    302298Note: these steps do not troubleshoot audio problems. 
    303  
    304 === Audio issue (no audio) (iOS7) === 
    305  
    306 There are a few reports that the audio is not working on iOS 7 (so far it's only reported to happen in iPhone 5) after getting the following error: 
    307  
    308 {{{ 
    309 iPhone mediaserverd[45] <Error>: 10:53:59.986 ERROR:     [0x240b000] 740: _vp: initialize hw input: fs mismatched! REF=0.000000Hz, MIC=44100.000000Hz 
    310 iPhone mediaserverd[45] <Error>: Resampler2 bad sample rate(s) :        0.00    16000.00 
    311 }}} 
    312  
    313 One solution is to set the sound device's clock rate to 44100 Hz as to avoid resampling. 
    314  
    315 === Audio issues (inability to mute, volume control center synchronization, playback reduced volume) (iOS7) === 
    316  
    317 There are several issues with the use of Voice Processing IO Audio Unit in iOS 7, such as unable to mute the volume using the side volume button, unable to synchronize with the control center volume slide bar, significantly reduced volume for audio playback to speaker after a call. Currently there is no workaround for this. Please refer to ticket #1697 for more details. 
    318  
    319 === List of Issues === 
    320  
    321 [[TicketQuery(type=defect&summary~=iphone)]] 
    322  
    323 == Other iPhone Projects == 
    324  
    325 Also have a look at these PJSIP iPhone ports by pjsip users: 
    326  
    327  * [http://code.google.com/p/siphon/ Siphon] Project by Samuel Vinson 
    328  * [http://code.google.com/p/pjsip-iphone-audio-driver/ iPhone Audio Driver] by [http://www.voalte.com/ Voalté] 
    329  * [http://code.teluu.com/tabikphone/ TabikPhone], an adaptation of Sipphone code from V-Net Corp