SIP.js: this.options.uri.clone is not a function in new API

Describe the bug I am trying to use the new API in SIP.js 0.15.3 and am unable to get a URI.

Logs Following the docs when I try to use the method userAgent.makeTargetURI(“someuser@somesubdomain.onsip.com”) results in the following error: this.options.uri.clone is not a function. (in 'this.options.uri.clone()', 'this.options.uri.clone' is undefined)

And attempting to simply give a URI in the form of a string directly will result in the following error: ruri.clone is not a function. (In 'ruri.clone()','ruri.clone' is undefined) I have used the exact string before with the previous API so I know it is valid.

To Reproduce (if possible) Follow the docs on new API in react native.

Expected behavior String to be parsed into a valid URI.

Environment Information

  React Native Environment Info:
    System:
      OS: macOS 10.14.4
      CPU: (4) x64 Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz
      Memory: 205.08 MB / 8.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 12.1.0 - /usr/local/bin/node
      npm: 6.10.2 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
    IDEs:
      Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
    npmPackages:
      react: ^16.8.3 => 16.8.6 
      react-native: https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz => 0.59.8 
    npmGlobalPackages:
      react-native-cli: 2.0.1
      react-native-svg: 9.5.3

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (2 by maintainers)

Most upvoted comments

Are you setting the uri as a string or a URI object? it is required to be a URI object.

I pushed 36fa941f24f1adce3f55de3c66da2a79900a63ad which should resolve your issue with the React SDH