VoIPGRID / VialerSIPLib

An Objective-c wrapper for PJSIP
GNU General Public License v3.0
133 stars 69 forks source link

IOS OPUS ountbound call normal but incoming call just don't hear sound #250

Closed TechGuyVN closed 2 years ago

TechGuyVN commented 2 years ago

Version

3.7.3 Latest on Aug 6, 2020

File / Feature

Expected behavior

Incoming Call with sound play

Actual behavior

incoming call with no sound

Stacktrace / Error message

[{This is log in my device on IOS}] (https://drive.google.com/file/d/17XL5mWYeHHCGAo2kVXdjuRePLFve5wHU/view?usp=sharing)

Other info

            var opusConfiguration = VSLOpusConfiguration()
            opusConfiguration.frameDuration = VSLOpusConfigurationFrameDuration(rawValue: 20)!
            opusConfiguration.constantBitRate = false
            if(agentInfo?.pbxAccount?.is_opus_quality == 1){
                opusConfiguration.sampleRate = VSLOpusConfigurationSampleRate(rawValue: 48000)!
            }else {
                opusConfiguration.sampleRate = VSLOpusConfigurationSampleRate(rawValue: 48000)!
            }
            codecConfiguration.audioCodecs = [
                VSLAudioCodecs(audioCodec: .opus, andPriority: 210),
            ]
            codecConfiguration.opusConfiguration = opusConfiguration
            endpointConfiguration.codecConfiguration = codecConfiguration;

Please help