twilio / voice-quickstart-objc

Twilio Voice Quickstart for iOS with Objective-C
MIT License
39 stars 24 forks source link

Use Voice iOS 4.3.0 #180

Closed bobiechen-twilio closed 5 years ago

bobiechen-twilio commented 5 years ago

Enhancements

Differentiated Services Code Point (DSCP) Tagging API

The Differentiated Services Code Point (DSCP) Tagging API allows you to mark the audio packets with Expedited Forwarding (EF) for the purposes of improved packet routing. When enabled, supporting networks will prioritize audio packet delivery for improved audio quality.

Use enableDscp to enable or disable DSCP tagging. Note, enableDscp is enabled by default. For example:

// Configure DSCP with `TVOConnectOptions`
let connectOptions = TVOConnectOptions(accessToken: accessToken) { (builder) in
    builder.enableDscp = true
}

let call = TwilioVoice.connect(with: connectOptions, delegate: callDelegate)
// Configure DSCP with `TVOAcceptOptions`
let acceptOptions = TVOAcceptOptions(accessToken: accessToken) { (builder) in
    builder.enableDscp = true
}

let call = callInvite.accept(with: acceptOptions, delegate: callDelegate)

For more information, refer to the docs.