baresip / baresip-ios

Baresip for iOS
46 stars 33 forks source link

Cant use audio from background #47

Open kisso opened 2 years ago

kisso commented 2 years ago

Hello, I am trying to connect to call from background, I get VoIP notification and after accepting the call I start app and get following error: CALL_ANSWERED stream: update 'audio' audio: Set audio decoder: PCMU 8000Hz 1ch audiounit: AudioSessionSetActive: 1701737535 audio: start_player failed (audiounit.default): Operation not supported call: update: audio_decoder_set error: Operation not supported audio: Set audio encoder: PCMU 8000Hz 1ch audiounit: AudioSessionSetActive: 1701737535 audio: start_player failed (audiounit.default): Operation not supported audiounit: AudioSessionSetActive: 1701737535 audio: start_source failed (audiounit.default): Operation not supported sip:*8@sip.example.sk: session closed: Operation not supported CALL_CLOSED

When I am doing same from foreground it works.

Koshub commented 2 years ago

@kisso Did you enable background audio & Voice over IP modes in your XCode project?