| 112 | === Unable to support Bluetooth input === |
| 113 | |
| 114 | Since Bluetooth input support is only available for iOS 3.1 or later, you need to specifically specify that your deployment target is iOS 3.1 or above. You can do this either in '''{{{user.mak}}}''': |
| 115 | {{{ |
| 116 | export CFLAGS += -D__IPHONE_OS_VERSION_MIN_REQUIRED=30100 |
| 117 | }}} |
| 118 | or in '''{{{config_site.h}}}''': |
| 119 | {{{ |
| 120 | #define __IPHONE_OS_VERSION_MIN_REQUIRED 30100 |
| 121 | }}} |
| 122 | You need to recompile PJSIP after this. |
| 123 | |
| 124 | === Problem with interruption (by a phone call or an alarm), headset plug/unplug, or Bluetooth input === |
| 125 | |
| 126 | For devices running iOS 4.0 or later, you need to enable your application to respond to remote-control events. This allows PJSIP to properly receive and process the above events. You can do this by adding the following code in your application: |
| 127 | {{{ |
| 128 | [[UIApplication sharedApplication] beginReceivingRemoteControlEvents]; |
| 129 | }}} |
| 130 | For more details, please refer to Apple's doc on [http://developer.apple.com/library/ios/#documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/RemoteControl/RemoteControl.html Remote Control of Multimedia]. |
| 131 | |