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

Invalid callerId value issue, I am using valid number with +91 code #4

Open riddhiJoshi23 opened 1 month ago

riddhiJoshi23 commented 1 month ago

W/System.err( 7283): com.twilio.voice.CallException: Invalid callerId value I/TwilioUtils( 7283): onConnectFailure. Error: Invalid callerId value D/TwilioVoiceFlutter( 7283): onConnectFailure. Error: Invalid callerId value

DevCodeSpace commented 1 month ago

@riddhiJoshi23 Please ensure that the country code and phone number are entered without any spaces. Let me know if you're still encountering issues after this adjustment.

riddhiJoshi23 commented 1 month ago

W/System.err(23793): com.twilio.voice.CallException: Decline I/TwilioUtils(23793): onConnectFailure. Error: Decline D/TwilioVoiceFlutter(23793): onConnectFailure. Error: Decline I/TwilioVoiceFlutter(23793): onMethodCall. Method: hangUp [log] Call event: callDisconnected . Arguments: [log] type 'String' is not a subtype of type 'Map<dynamic, dynamic>'

I entered Correct number with country code but now it is showing this error.

sajanIocod commented 3 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.