DevCodeSpace / twilio_voice_flutter

Voice SDK to allow adding voice-over-IP (VoIP) calling into your Flutter applications.
MIT License
1 stars 1 forks source link

bug #6

Open jiaqi4389 opened 3 weeks ago

jiaqi4389 commented 3 weeks ago

I/Twilio:class java.lang.Class(16688): [Platform] {"timestamp_ms":1730456908115,"temp_call_sid":"TSID7f14f9b2-fe61-4a49-9f97-fb5b4113f383","sdk_version":"6.6.1","platform":"android","direction":"OUTGOING","selected_region":"gll","logger_type":"default"} [log] Call event: callConnecting . Arguments: {outgoing: true, speaker: false, toDisplayName: Unknown name, mute: false, id: null, fromDisplayName: Unknown name, status: callConnecting} I/Twilio:class java.lang.Class(16688): [Platform] {"timestamp_ms":1730456908125,"temp_call_sid":"TSID7f14f9b2-fe61-4a49-9f97-fb5b4113f383","sdk_version":"6.6.1","platform":"android","direction":"OUTGOING","selected_region":"gll","logger_type":"default"} I/Twilio:class java.lang.Class(16688): [Platform] {"timestamp_ms":1730456908130,"temp_call_sid":"TSID7f14f9b2-fe61-4a49-9f97-fb5b4113f383","sdk_version":"6.6.1","platform":"android","direction":"OUTGOING","selected_region":"gll","logger_type":"default"} I/Twilio:class java.lang.Class(16688): [Platform] {"timestamp_ms":1730456908135,"temp_call_sid":"TSID7f14f9b2-fe61-4a49-9f97-fb5b4113f383","sdk_version":"6.6.1","platform":"android","direction":"OUTGOING","selected_region":"gll","transport_id":"0","is_remote":false,"ip":"172.16.4.111","port":42297,"protocol":"udp","candidate_type":"local","priority":2122260223,"url":"","deleted":false,"network-cost":10,"network-id":5,"related_port":0,"level":"DEBUG","related_address":"","network-type":"Wifi","name":"ice-candidate","tcp_type":"","logger_type":"default"} I/Twilio:class java.lang.Class(16688): [Platform] {"timestamp_ms":1730456908140,"temp_call_sid":"TSID7f14f9b2-fe61-4a49-9f97-fb5b4113f383","sdk_version":"6.6.1","platform":"android","direction":"OUTGOING","selected_region":"gll","transport_id":"0","is_remote":false,"ip":"240e:573:700:11ed:a0b9:49ff:fef3:1162","port":46120,"protocol":"udp","candidate_type":"local","priority":2122197247,"url":"","deleted":false,"network-cost":900,"network-id":3,"related_port":0,"level":"DEBUG","related_address":"","network-type":"Cellular","name":"ice-candidate","tcp_type":"","logger_type":"default"} I/Twilio:class java.lang.Class(16688): [Platform] {"timestamp_ms":1730456908145,"temp_call_sid":"TSID7f14f9b2-fe61-4a49-9f97-fb5b4113f383","sdk_version":"6.6.1","platform":"android","direction":"OUTGOING","selected_region":"gll","transport_id":"0","is_remote":false,"ip":"172.19.0.1","port":41397,"protocol":"udp","candidate_type":"local","priority":2122129151,"url":"","deleted":false,"network-cost":50,"network-id":4,"related_port":0,"level":"DEBUG","related_address":"","network-type":"VPN","name":"ice-candidate","tcp_type":"","logger_type":"default"} I/Twilio:class java.lang.Class(16688): [Platform] {"timestamp_ms":1730456909670,"temp_call_sid":"TSID7f14f9b2-fe61-4a49-9f97-fb5b4113f383","sdk_version":"6.6.1","platform":"android","direction":"OUTGOING","selected_region":"gll","logger_type":"default","code":31404,"message":"Not Found : SIP\/2.0 404 Not found"} I/Twilio:class java.lang.Class(16688): [Platform] {"timestamp_ms":1730456909675,"temp_call_sid":"TSID7f14f9b2-fe61-4a49-9f97-fb5b4113f383","sdk_version":"6.6.1","platform":"android","direction":"OUTGOING","selected_region":"gll","logger_type":"default"} I/Twilio:class java.lang.Class(16688): [Platform] {"timestamp_ms":1730456909680,"temp_call_sid":"TSID7f14f9b2-fe61-4a49-9f97-fb5b4113f383","sdk_version":"6.6.1","platform":"android","direction":"OUTGOING","selected_region":"gll","logger_type":"default"} I/Twilio:class java.lang.Class(16688): [Platform] {"timestamp_ms":1730456909684,"temp_call_sid":"TSID7f14f9b2-fe61-4a49-9f97-fb5b4113f383","sdk_version":"6.6.1","platform":"android","direction":"OUTGOING","selected_region":"gll","logger_type":"default"} W/System.err(16688): com.twilio.voice.CallException: Not Found I/TwilioUtils(16688): onConnectFailure. Error: Not Found D/TwilioVoiceFlutter(16688): onConnectFailure. Error: Not Found I/TwilioVoiceFlutter(16688): onMethodCall. Method: hangUp [log] Call event: callDisconnected . Arguments: [log] type 'String' is not a subtype of type 'Map<dynamic, dynamic>'

sajanIocod commented 3 weeks ago

I am currently encountering a similar issue when entering the phone number along with the country code.

jiaqi4389 commented 3 weeks ago

@sajanIocod Do you have any solutions

sajanIocod commented 2 weeks ago

To resolve the issue in the TwilioVoiceFlutterPlugin.swift file, change the line where the method "callDisconnected" is invoked: self.channel?.invokeMethod("callDisconnected", arguments: [:]). However, it's important to note that the main issue seems to be that the call gets disconnected immediately after ringing, and the specific cause of this problem is still unclear.