Opened 8 years ago
Last modified 3 years ago
#1941 closed enhancement
Review iOS 10 integration to PJSIP — at Version 3
Reported by: | nanang | Owned by: | bennylp |
---|---|---|---|
Priority: | normal | Milestone: | release-2.6 |
Component: | common | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: | no |
Description (last modified by ming)
iOS 10 is coming with new features such as CallKit, framework changes such as in AVFoundation, and also API deprecations. This ticket will review and apply any integrations needed in PJSIP library.
PushKit guide
What your application needs to do:
- Set up PushKit according to Apple's doc.
- Upon startup, request for push tokens.
- Send REGISTER to SIP server with additional specific header or header params to tell the SIP server about the PN (Push Notification) info (server URI, tokens, etc). You can use pjsua_acc_config.reg_hdr_list or pjsua_acc_config.reg_contact_params (the later is available in ticket #1965).
Note: draft Push Notifications in the Session Initiation Protocol (SIP) suggests to put it in Contact header params, for example:Contact: <sip:alice@alicemobile.example.com; pn-type=acme;pn-methods="INVITE"; pn-uri="https://pn.acme.example.com/ZTY4ZDJlMzODE1NmUgKi0K">
- After a successful registration, SIP client can go background and will be woken up by the OS upon receiving push notification.
Configure your SIP server:
- Parse the PN info in registration.
- Upon receiving an incoming SIP INVITE, SIP server should contact PN server as specified via PN URI and tokens.
- After some interval (assuming the SIP client has been woken up), it then can send/forward the SIP INVITE message to the SIP client.
CallKit support
- AVAudioSession handling
Application needs to handle its own audio session management according to Apple's doc.
API/Symbol Deprecations
- "kCFStreamNetworkServiceTypeVoIP is deprecated (first deprecated in iOS 9.0 - use PushKit for VoIP control purposes."
See the PushKit guide above.
If you want to disable the use of kCFStreamNetworkServiceTypeVoIP, set PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT to 0.
- AVFoundation API deprecation:
"warning: 'devices' is deprecated: first deprecated in iOS 10.0 - Use AVCaptureDeviceDiscoverySession instead."
Done in r5454.
Reference:
Change History (3)
comment:1 Changed 8 years ago by ming
comment:2 Changed 8 years ago by ming
In 5454:
comment:3 Changed 8 years ago by ming
- Description modified (diff)
Note: See
TracTickets for help on using
tickets.
In 5453: