Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Volsavr
Copy link
Contributor

@Volsavr Volsavr commented Jul 2, 2024

Allows to set custom from_uri & from_display_name for call operation using customOptions parameter.

Future<void> initiateCall(String target) async {
    Map<String, String> customOptions = {};

      var currentCallerId = '186455555'

        customOptions['from_uri'] =
            URI('sip', currentCallerId, _config.domain).toString();
        customOptions['from_display_name'] = 'User Name'
   
      var mediaStream = await navigator.mediaDevices.getUserMedia(
          _mediaConstraints);

      _helper.call(target, voiceonly: true,
          mediaStream: mediaStream,
          customOptions: customOptions);
  }

From: "User Name" sip:[email protected];tag=52rmnxgcmt

Copy link
Member

@cloudwebrtc cloudwebrtc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lg

@cloudwebrtc cloudwebrtc merged commit 8d00b5d into flutter-webrtc:main Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants