twilio/voice-quickstart-objc

AVAudioSessionPortImpl.mm:56:ValidateRequiredFields

DrBeak1 opened this issue · 3 comments

@bchen-twilio requested this issue be moved here. Originally posted here

Description

When trying to call, error:
[avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)

Steps to Reproduce

  1. Try to make a call

Code

- (void)viewDidLoad {
    [super viewDidLoad];
    id<TVOAudioDevice> audioDevice = [TVODefaultAudioDevice audioDeviceWithBlock:^{
        kDefaultAVAudioSessionConfigurationBlock();
        
        // Overwrite the category to `playback`
        AVAudioSession *session = [AVAudioSession sharedInstance];
        NSError *error = nil;
        if (![session setCategory:AVAudioSessionCategoryPlayback
                             mode:AVAudioSessionModeVoiceChat
                          options:AVAudioSessionCategoryOptionAllowBluetooth
                            error:&error]) {
            NSLog(@"AVAudioSession setCategory:options:mode:error: %@",error);
        }
    }];
    
    TwilioVoice.audioDevice = audioDevice;
}

- (void)makeCall {
    NSUUID *uuid = [NSUUID UUID];
                
    NSDictionary *params = @{@"to":[NSString stringWithFormat:@"+1%@",self.customer.phone],
                                         @"From":@"<redacted>"};
                
    self.call = [TwilioVoice call:token params:params uuid:uuid delegate:self];
}

Expected Behavior

Call is connected

Actual Behavior

Call fails due to AVAudio issues.

Reproduces How Often

100%

Logs

2018-12-04 17:50:03.686859-0800 MyApp[467:37630] INFO:Twilio:[Core]:Creating peer connection signaling thread ...
2018-12-04 17:50:03.687691-0800 MyApp[467:37630] INFO:Twilio:[Core]:Creating peer connection worker thread ...
2018-12-04 17:50:03.688034-0800 MyApp[467:37630] INFO:Twilio:[Core]:Creating peer connection networking thread ...
2018-12-04 17:50:03.688347-0800 MyApp[467:37630] TRACE:Twilio:[Core]:Creating built-in AudioDecoderFactory ...
2018-12-04 17:50:03.689167-0800 MyApp[467:37630] TRACE:Twilio:[Core]:Creating built-in AudioEncoderFactory ...
2018-12-04 17:50:03.689286-0800 MyApp[467:37630] INFO:Twilio:[Core]:Creating media engine ...
2018-12-04 17:50:03.690701-0800 MyApp[467:37630] INFO:Twilio:[Core]:Done creating media engine.
2018-12-04 17:50:03.690842-0800 MyApp[467:37630] INFO:Twilio:[Core]:Creating peer connection factory ...
2018-12-04 17:50:03.696986-0800 MyApp[467:37630] INFO:Twilio:[Core]:Done creating peer connection factory.
2018-12-04 17:50:03.698296-0800 MyApp[467:37630] INFO:Twilio:[Core]:Adding audio track ...
2018-12-04 17:50:03.880665-0800 MyApp[467:37630] INFO:Twilio:[Core]:Creating dedicated notifier queue ...
2018-12-04 17:50:03.880843-0800 MyApp[467:37630] DEBUG:Twilio:[Core]:Initializing SIP stack ...
2018-12-04 17:50:03.885611-0800 MyApp[467:37630] DEBUG:Twilio:[Core]:Adding IPv4/IPv6 TLS transports ...
2018-12-04 17:50:03.885872-0800 MyApp[467:37630] INFO:Twilio:[Signaling]:RESIP::TRANSPORT: Connection::Connection: new connection created to who: [ V4 0.0.0.0:0 UNKNOWN_TRANSPORT target domain=unspecified mFlowKey=0 ]
2018-12-04 17:50:03.885992-0800 MyApp[467:37630] INFO:Twilio:[Signaling]:RESIP::TRANSPORT: Creating TLS transport for domain  interface= port=0
2018-12-04 17:50:03.886422-0800 MyApp[467:37630] INFO:Twilio:[Signaling]:RESIP::TRANSPORT: Connection::Connection: new connection created to who: [ V4 0.0.0.0:0 UNKNOWN_TRANSPORT target domain=unspecified mFlowKey=0 ]
2018-12-04 17:50:03.886501-0800 MyApp[467:37630] INFO:Twilio:[Signaling]:RESIP::TRANSPORT: Creating TLS transport for domain  interface= port=0
2018-12-04 17:50:03.886865-0800 MyApp[467:37630] DEBUG:Twilio:[Core]:Initializing DUM ...
2018-12-04 17:50:03.887073-0800 MyApp[467:37630] DEBUG:Twilio:[Core]:Starting SIP stack thread ...
2018-12-04 17:50:03.887200-0800 MyApp[467:37630] DEBUG:Twilio:[Core]:Starting DUM thread ...
2018-12-04 17:50:03.889499-0800 MyApp[467:37630] WARN:Twilio:[Core]:No ICE servers were provided, was this intended?
For the best connectivity you should either enable Network Traversal Service in your Room Settings or provide your own servers via IceOptions.
2018-12-04 17:50:03.889745-0800 MyApp[467:37630] INFO:Twilio:[Core]:Creating peer connection ...
2018-12-04 17:50:03.893776-0800 MyApp[467:37630] INFO:Twilio:[Core]:Adding local stream to peer connection ...
2018-12-04 17:50:03.895442-0800 MyApp[467:37630] DEBUG:Twilio:[Platform]:-[TVOLocalAudioTrack dealloc]
2018-12-04 17:50:03.895700-0800 MyApp[467:37630] DEBUG:Twilio:[Platform]:-[TVOAudioTrack dealloc]
2018-12-04 17:50:03.907867-0800 MyApp[467:37743] DEBUG:Twilio:[Core]:ERROR Description -
2018-12-04 17:50:03.908229-0800 MyApp[467:37743] DEBUG:Twilio:[Core]:New SipCall ...
2018-12-04 17:50:03.908300-0800 MyApp[467:37743] DEBUG:Twilio:[Core]:Querying chunderm.gll.twilio.com
2018-12-04 17:50:03.908349-0800 MyApp[467:37743] INFO:Twilio:[Core]:Looking up: chunderm.gll.twilio.com
2018-12-04 17:50:03.932628-0800 MyApp[467:37738] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)
2018-12-04 17:50:03.936956-0800 MyApp[467:37738] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)
2018-12-04 17:50:03.939233-0800 MyApp[467:37738] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)
2018-12-04 17:50:03.956120-0800 MyApp[467:37743] DEBUG:Twilio:[Core]:Address family: 2: 54.84.219.21
2018-12-04 17:50:03.956222-0800 MyApp[467:37743] DEBUG:Twilio:[Core]:Address family: 2: 54.84.219.21
2018-12-04 17:50:03.956345-0800 MyApp[467:37743] INFO:Twilio:[Core]:Setting outbound proxy to: sip:54.84.219.21:443;transport=tls
2018-12-04 17:50:03.957285-0800 MyApp[467:37630] DEBUG:Twilio:[Platform]:Received ICE event.
	Group: ice-gathering-state
	Name: gathering
2018-12-04 17:50:03.960011-0800 MyApp[467:37779] DEBUG:Twilio:[Core]:Socket created in ../resiprocate-1.8/resip/stack/TcpBaseTransport.cxx at line 223, transport: 1, socket: 36
2018-12-04 17:50:03.960698-0800 MyApp[467:37779] INFO:Twilio:[Signaling]:RESIP::TRANSPORT: Connection::Connection: new connection created to who: [ V4 54.84.219.21:443 TLS target domain=54.84.219.21 mFlowKey=36 ]
2018-12-04 17:50:03.960801-0800 MyApp[467:37779] INFO:Twilio:[Signaling]:RESIP::TRANSPORT: Creating TLS connection for domain  [ V4 54.84.219.21:443 TLS target domain=54.84.219.21 mFlowKey=0 ] on 36
2018-12-04 17:50:04.026667-0800 MyApp[467:37630] DEBUG:Twilio:[Platform]:Received ICE event.
	Group: ice-gathering-state
	Name: complete
2018-12-04 17:50:04.037260-0800 MyApp[467:37779] INFO:Twilio:[Signaling]:RESIP::TRANSPORT: TLS handshake starting (client mode)
2018-12-04 17:50:04.037489-0800 MyApp[467:37779] INFO:Twilio:[Signaling]:RESIP::TRANSPORT: TLS connected
2018-12-04 17:50:04.213869-0800 MyApp[467:37779] INFO:Twilio:[Signaling]:RESIP::TRANSPORT: TLS connected
2018-12-04 17:50:04.214058-0800 MyApp[467:37779] INFO:Twilio:[Signaling]:RESIP::TRANSPORT: TLS sessions set up with TLSv1.2 TLSv1/SSLv3 ECDHE-RSA-AES128-GCM-SHA256
2018-12-04 17:50:04.214269-0800 MyApp[467:37779] INFO:Twilio:[Signaling]:RESIP::SIP: subjectAltName of TLS session cert contains DNS <*.twilio.com>
2018-12-04 17:50:04.214648-0800 MyApp[467:37779] INFO:Twilio:[Signaling]:RESIP::SIP: subjectAltName of TLS session cert contains DNS <twilio.com>
2018-12-04 17:50:04.215401-0800 MyApp[467:37779] INFO:Twilio:[Signaling]:RESIP::TRANSPORT: TLS handshake done for peer *.twilio.com, twilio.com
2018-12-04 17:50:04.301328-0800 MyApp[467:37780] INFO:Twilio:[Signaling]:RESIP::DUM: Got: SipResp: 100 tid=4a94e7ad5a49046a cseq=1 INVITE / 1 from(wire)
2018-12-04 17:50:04.336484-0800 MyApp[467:37780] INFO:Twilio:[Signaling]:RESIP::DUM: Got: SipResp: 180 tid=4a94e7ad5a49046a cseq=1 INVITE contact=172.18.38.8:10193 / 1 from(wire)
2018-12-04 17:50:04.337950-0800 MyApp[467:37780] INFO:Twilio:[Signaling]:RESIP::DUM: Transition UAC_Start -> UAC_Early
2018-12-04 17:50:04.338345-0800 MyApp[467:37780] DEBUG:Twilio:[Core]:onNewSession:
SIP/2.0 180 Ringing

Via: SIP/2.0/TLS 10.32.200.52;received=73.158.38.35;branch=z9hG4bK-524287-1---4a94e7ad5a49046a;rport=51299

Record-Route: <sip:172.18.23.136:10193;r2=on;transport=udp;ftag=44172e1a;lr>

Record-Route: <sip:54.84.219.21:443;r2=on;transport=tls;ftag=44172e1a;lr>

Contact: <sip:172.18.38.8:10193>

To: <sip:chunderm.gll.twilio.com:443;transport=tls>;tag=61366869_6772d868_55460809-3521-4f7a-8040-24d63bbcc558

From: <sip:VoiceSDK@chunderm.gll.twilio.com>;tag=44172e1a

Call-ID: vayEluH3ZkgEffd2YE2H5Q..

CSeq: 1 INVITE

Server: Twilio

X-Twilio-CallSid: CA72386c1a3071069aff9dfb994947a088

X-Twilio-LegInfo: external

Content-Length: 0
2018-12-04 17:50:04.341592-0800 MyApp[467:37780] DEBUG:Twilio:[Core]:onNewCall
2018-12-04 17:50:04.341896-0800 MyApp[467:37780] INFO:Twilio:[Signaling]:RESIP::DUM: UAC_Early: startStaleCallTimer
2018-12-04 17:50:04.342828-0800 MyApp[467:37780] DEBUG:Twilio:[Core]:onProvisional:
SIP/2.0 180 Ringing

Via: SIP/2.0/TLS 10.32.200.52;received=73.158.38.35;branch=z9hG4bK-524287-1---4a94e7ad5a49046a;rport=51299

Record-Route: <sip:172.18.23.136:10193;r2=on;transport=udp;ftag=44172e1a;lr>

Record-Route: <sip:54.84.219.21:443;r2=on;transport=tls;ftag=44172e1a;lr>

Contact: <sip:172.18.38.8:10193>

To: <sip:chunderm.gll.twilio.com:443;transport=tls>;tag=61366869_6772d868_55460809-3521-4f7a-8040-24d63bbcc558

From: <sip:VoiceSDK@chunderm.gll.twilio.com>;tag=44172e1a

Call-ID: vayEluH3ZkgEffd2YE2H5Q..

CSeq: 1 INVITE

Server: Twilio

X-Twilio-CallSid: CA72386c1a3071069aff9dfb994947a088

X-Twilio-LegInfo: external

Content-Length: 0
2018-12-04 17:50:04.346205-0800 MyApp[467:37780] DEBUG:Twilio:[Core]:onRinging
2018-12-04 17:50:04.567202-0800 MyApp[467:37780] INFO:Twilio:[Signaling]:RESIP::DUM: Got: SipResp: 200 tid=4a94e7ad5a49046a cseq=1 INVITE contact=172.18.38.8:10193 / 1 from(wire)
2018-12-04 17:50:04.567649-0800 MyApp[467:37780] INFO:Twilio:[Signaling]:RESIP::DUM: Transition UAC_Early -> InviteSession::Connected
2018-12-04 17:50:04.568129-0800 MyApp[467:37780] INFO:Twilio:[Signaling]:RESIP::DUM: Sending SipReq:  ACK 172.18.38.8:10193 tid=95abd0e66fe8cd19 cseq=1 ACK contact=VoiceSDK / 1 from(tu)
2018-12-04 17:50:04.569134-0800 MyApp[467:37780] DEBUG:Twilio:[Core]:onAnswer:
SIP/2.0 200 OK

Via: SIP/2.0/TLS 10.32.200.52;received=73.158.38.35;branch=z9hG4bK-524287-1---4a94e7ad5a49046a;rport=51299

Record-Route: <sip:172.18.23.136:10193;r2=on;transport=udp;ftag=44172e1a;lr>

Record-Route: <sip:54.84.219.21:443;r2=on;transport=tls;ftag=44172e1a;lr>

Contact: <sip:172.18.38.8:10193>

To: <sip:chunderm.gll.twilio.com:443;transport=tls>;tag=61366869_6772d868_55460809-3521-4f7a-8040-24d63bbcc558

From: <sip:VoiceSDK@chunderm.gll.twilio.com>;tag=44172e1a

Call-ID: vayEluH3ZkgEffd2YE2H5Q..

CSeq: 1 INVITE

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE

Content-Type: application/sdp

Server: Twilio

X-Twilio-CallSid: CA72386c1a3071069aff9dfb994947a088

X-Twilio-LegInfo: external

Content-Length: 1012



v=0

o=root 442854914 442854914 IN IP4 172.18.150.43

s=Twilio Media Gateway

c=IN IP4 34.203.251.105

t=0 0

a=group:BUNDLE audio

a=ice-lite

m=audio 11734 RTP/SAVPF 0 126

a=rtpmap:0 PCMU/8000

a=rtpmap:126 telephone-event/8000

a=fmtp:126 0-16

a=ptime:20

a=maxptime:150

a=ice-ufrag:28223cb918f0135d6bf1bce43731f8f9

a=ice-pwd:63d7e8932f8c0ca727b6d0ec5f5e8a4b

a=candidate:H22cbfb69 1 UDP 2130706431 34.203.251.105 11734 typ host

a=end-of-candidates

a=connection:new

a=setup:active

a=fingerprint:sha-256 93:07:EF:4E:CC:D9:25:25:32:28:DE:FA:42:FA:17:10:C1:14:46:F0:FA:E4:4E:D4:70:39:E6:DA:C7:E8:89:41

a=mid:audio

a=msid:059a5b1d-0440-4a00-a6be-3e640d60056c f459a03d-20d0-4050-9e3b-7e2378b76461

a=ssrc:266029986 msid:059a5b1d-0440-4a00-a6be-3e640d60056c f459a03d-20d0-4050-9e3b-7e2378b76461

a=ssrc:266029986 mslabel:059a5b1d-0440-4a00-a6be-3e640d60056c

a=ssrc:266029986 label:f459a03d-20d0-4050-9e3b-7e2378b76461

a=rtcp-mux

a=ssrc:266029986 cname:f41cd01c-cc53-4fb0-b268-a766f68cd086

a=sendrecv
2018-12-04 17:50:04.572991-0800 MyApp[467:37780] DEBUG:Twilio:[Core]:onAnswer
2018-12-04 17:50:04.573590-0800 MyApp[467:37780] DEBUG:Twilio:[Core]:onConnected:
SIP/2.0 200 OK

Via: SIP/2.0/TLS 10.32.200.52;received=73.158.38.35;branch=z9hG4bK-524287-1---4a94e7ad5a49046a;rport=51299

Record-Route: <sip:172.18.23.136:10193;r2=on;transport=udp;ftag=44172e1a;lr>

Record-Route: <sip:54.84.219.21:443;r2=on;transport=tls;ftag=44172e1a;lr>

Contact: <sip:172.18.38.8:10193>

To: <sip:chunderm.gll.twilio.com:443;transport=tls>;tag=61366869_6772d868_55460809-3521-4f7a-8040-24d63bbcc558

From: <sip:VoiceSDK@chunderm.gll.twilio.com>;tag=44172e1a

Call-ID: vayEluH3ZkgEffd2YE2H5Q..

CSeq: 1 INVITE

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE

Content-Type: application/sdp

Server: Twilio

X-Twilio-CallSid: CA72386c1a3071069aff9dfb994947a088

X-Twilio-LegInfo: external

Content-Length: 1012



v=0

o=root 442854914 442854914 IN IP4 172.18.150.43

s=Twilio Media Gateway

c=IN IP4 34.203.251.105

t=0 0

a=group:BUNDLE audio

a=ice-lite

m=audio 11734 RTP/SAVPF 0 126

a=rtpmap:0 PCMU/8000

a=rtpmap:126 telephone-event/8000

a=fmtp:126 0-16

a=ptime:20

a=maxptime:150

a=ice-ufrag:28223cb918f0135d6bf1bce43731f8f9

a=ice-pwd:63d7e8932f8c0ca727b6d0ec5f5e8a4b

a=candidate:H22cbfb69 1 UDP 2130706431 34.203.251.105 11734 typ host

a=end-of-candidates

a=connection:new

a=setup:active

a=fingerprint:sha-256 93:07:EF:4E:CC:D9:25:25:32:28:DE:FA:42:FA:17:10:C1:14:46:F0:FA:E4:4E:D4:70:39:E6:DA:C7:E8:89:41

a=mid:audio

a=msid:059a5b1d-0440-4a00-a6be-3e640d60056c f459a03d-20d0-4050-9e3b-7e2378b76461

a=ssrc:266029986 msid:059a5b1d-0440-4a00-a6be-3e640d60056c f459a03d-20d0-4050-9e3b-7e2378b76461

a=ssrc:266029986 mslabel:059a5b1d-0440-4a00-a6be-3e640d60056c

a=ssrc:266029986 label:f459a03d-20d0-4050-9e3b-7e2378b76461

a=rtcp-mux

a=ssrc:266029986 cname:f41cd01c-cc53-4fb0-b268-a766f68cd086

a=sendrecv
2018-12-04 17:50:04.856089-0800 MyApp[467:37738] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)
2018-12-04 17:50:04.860329-0800 MyApp[467:37738] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)
2018-12-04 17:50:04.862267-0800 MyApp[467:37738] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)
2018-12-04 17:50:05.002546-0800 MyApp[467:37743] DEBUG:Twilio:[Core]:OnIceConnectionChange
2018-12-04 17:50:05.002669-0800 MyApp[467:37743] DEBUG:Twilio:[Core]:Call State: Ringing ICE connection state: checking
2018-12-04 17:50:05.003115-0800 MyApp[467:37630] DEBUG:Twilio:[Platform]:Received ICE event.
	Group: ice-connection-state
	Name: checking
2018-12-04 17:50:05.611344-0800 MyApp[467:37780] INFO:Twilio:[Signaling]:RESIP::DUM: Got: SipReq:  BYE VoiceSDK@73.158.38.35:51299 tid=4cf.383fa7d.0 cseq=1 BYE / 1 from(wire)
2018-12-04 17:50:05.611618-0800 MyApp[467:37780] INFO:Twilio:[Signaling]:RESIP::DUM: Handling in-dialog request: SipReq:  BYE VoiceSDK@73.158.38.35:51299 tid=4cf.383fa7d.0 cseq=1 BYE / 1 from(wire)
2018-12-04 17:50:05.611837-0800 MyApp[467:37780] INFO:Twilio:[Signaling]:RESIP::DUM: Received SipReq:  BYE VoiceSDK@73.158.38.35:51299 tid=4cf.383fa7d.0 cseq=1 BYE / 1 from(wire)
2018-12-04 17:50:05.612094-0800 MyApp[467:37780] INFO:Twilio:[Signaling]:RESIP::DUM: Transition InviteSession::Connected -> InviteSession::Terminated
2018-12-04 17:50:05.612206-0800 MyApp[467:37780] DEBUG:Twilio:[Core]:onTerminated: reason 4
2018-12-04 17:50:05.612300-0800 MyApp[467:37780] DEBUG:Twilio:[Core]:onTerminated
2018-12-04 17:50:05.613051-0800 MyApp[467:37780] DEBUG:Twilio:[Core]:~SipCall(): 0x2802978c0
2018-12-04 17:50:05.623434-0800 MyApp[467:37743] DEBUG:Twilio:[Core]:OnIceConnectionChange
2018-12-04 17:50:05.623639-0800 MyApp[467:37743] DEBUG:Twilio:[Core]:Call State: Disconnected ICE connection state: closed
2018-12-04 17:50:05.623975-0800 MyApp[467:37630] DEBUG:Twilio:[Platform]:Received ICE event.
	Group: ice-connection-state
	Name: closed
2018-12-04 17:50:05.722674-0800 MyApp[467:37743] DEBUG:Twilio:[Core]:Shutting down DUM thread ...
2018-12-04 17:50:05.731666-0800 MyApp[467:37738] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)
2018-12-04 17:50:05.735849-0800 MyApp[467:37738] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)
2018-12-04 17:50:05.736708-0800 MyApp[467:37738] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)
2018-12-04 17:50:06.615926-0800 MyApp[467:37743] DEBUG:Twilio:[Core]:Shutting down SIP stack thread ...
2018-12-04 17:50:06.616321-0800 MyApp[467:37779] INFO:Twilio:[Signaling]:RESIP::SIP: Shutting down stack thread
2018-12-04 17:50:06.617056-0800 MyApp[467:37743] WARN:Twilio:[Signaling]:RESIP::TRANSACTION: On shutdown, there are Client TransactionStates remaining!
2018-12-04 17:50:06.620603-0800 MyApp[467:37630] INFO:Twilio:[Platform]:Inside publishConnectionEvent:, event type: disconnected-by-remote
2018-12-04 17:50:06.621953-0800 MyApp[467:37630] TRACE:Twilio:[Platform]:Inside publisherConnectionEvent:, sending disconnected-by-remote event
2018-12-05 01:50:06 +0000 [] call:didDisconnectWithError: (null)
2018-12-04 17:50:06.629857-0800 MyApp[467:37630] DEBUG:Twilio:[Platform]:dealloc.
2018-12-04 17:50:06.634570-0800 MyApp[467:37630] DEBUG:Twilio:[Platform]:-[TVOMediaFactory dealloc]
2018-12-04 17:50:06.634774-0800 MyApp[467:37630] INFO:Twilio:[Core]:~AudioMediaFactoryImpl

Versions

All relevant version information for the issue.

Voice iOS SDK

2.0.7 and 3.0.0-preview5

Xcode

10.0

iOS Version

12.0.1

iOS Device

iPad Mini - multiple models / years

@bchen-twilio any idea when this will be fixed? It's currently broken in a production level application causing some pretty painful consequences. Normally I'd jump in and try to solve the issue within the framework myself, but since it's private I'm not able to do so.

Edit: I saw your changes in your PR. To be clear, microphone permission is granted and this is still an issue. I tested this was true in both 2.0.7 and 3.0.0-preview5. Also, the release notes under 3.0.0-preview1, example #2 here indicating that the audio session category should be set toAVAudioSessionCategoryPlayback is incorrect. AVAudioSession throws an error with this setting. It should be AVAudioSessionCategoryPlaybackAndRecord.

@bchen-twilio -- I was able to get things working. I think something was goofy with iOS and the settings associated with the application. I updated my device to iOS 12.1.1, deleted and reinstalled the application, and voila everything started to work. Maybe the permissions got out of sync somehow. Thanks for your attention.

Hi @DrBeak1

Sorry for my delay of getting back to you. Seems like an iOS issue according to your investigation but I am glad that it started to work after the OS update. I will check with our QE team and see if they also noticed something since we also execute SDK validations using beta versions of the iOS.

Anyway, thanks again for reporting the issue with such great investigation info. I am closing this issue for now but please feel free to reach out to us if you run into anything in the future.

cheers,
bobie