BelledonneCommunications / linphone-iphone

Linphone is a free VoIP and video softphone based on the SIP protocol. Mirror of linphone-iphone (git://git.linphone.org/linphone-iphone.git)

Home Page:http://linphone.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some questions about Bluetooth devices

gaoruiqing187 opened this issue · comments

When I connected to the phone using a Bluetooth headset, I set the system Bluetooth mode, and I did use the headset when playing audio. But when I call the linphone to make a call, it's the phone's microphone,How do I set it to Bluetooth。

This is my code to set the system mode。
do {
try AVAudioSession.sharedInstance().setCategory(.playAndRecord, mode: .voiceChat, options: [.allowBluetooth])
try AVAudioSession.sharedInstance().setActive(true, options: .notifyOthersOnDeactivation)
} catch {
print(error.localizedDescription)
}