flutter-webrtc / dart-sip-ua

A dart-lang version of the SIP UA stack.
MIT License
333 stars 258 forks source link

SignalWire? #61

Closed ghost closed 4 years ago

ghost commented 4 years ago

Describe the bug Flutter WEB version Does not seems to work with SignalWire nor Telnyx

JsSIP works with SignalWire

To Reproduce Steps to reproduce the behavior:

  1. Fire the example for Flutter Web:
flutter channel beta
flutter upgrade
flutter config --enable-web
git clone https://github.com/cloudwebrtc/dart-sip-ua.git
cd ./dart-sip-ua/example
flutter run -d chrome
  1. Create SignalWire account, get a verified number
  2. Follow this tutorial to call the verified number

Registering logs gives: registered => Code: [200], Cause: registered, Reason: OK

but calling does not works

When calling, last log line is : [2020-02-08 21:50:02.997] Level.debug null ::: createLocalDescription()

Expected behavior Receiving a call on my mobile

System Infomation()

[✓] Flutter (Channel beta, v1.14.6, on Mac OS X 10.15.3 19D76, locale fr-FR)
    • Flutter version 1.14.6 at /Users/poule/.flutter_sdk/flutter
    • Framework revision fabeb2a16f (11 days ago), 2020-01-28 07:56:51 -0800
    • Engine revision c4229bfbba
    • Dart version 2.8.0 (build 2.8.0-dev.5.0 fc3af737c7)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/poule/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /Users/poule/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
    • Xcode at /Applications/Xcode1131.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C505
    • CocoaPods version 1.9.0.beta.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 40.0.2
    • Dart plugin version 191.8423
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] VS Code (version 1.41.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.8.0

[✓] Connected device (2 available)
    • Chrome     • chrome     • web-javascript • Google Chrome 79.0.3945.130
    • Web Server • web-server • web-javascript • Flutter Tools

Tried in Chrome, Chromium, Edge, Firefox.... does not work for me

cloudwebrtc commented 4 years ago

Please try this commit. https://github.com/cloudwebrtc/dart-sip-ua/commit/37a6cc35e02e1d0d09dd320a09799f0b070b7306

ghost commented 4 years ago

thanks!