datso / react-native-pjsip

A PJSIP module for React Native.
http://datso.github.io/react-native-pjsip
GNU General Public License v3.0
272 stars 228 forks source link

Unhandled promise rejection error #246

Open ahreenah opened 2 years ago

ahreenah commented 2 years ago

Hi! I get following warning when trying to sun my code.

 WARN  Possible Unhandled Promise Rejection (id: 0):
"Title:       pjsua_codec_set_priority(&codec_str, priority)
Code:        70006
Description: Not found (PJ_ENOTFOUND)
Location:    ../src/pjsua2/endpoint.cpp:1962\

and also this promse never resolves.

 endpoint.changeCodecSettings({
        "PCMA/8000/1": 100,
        "PCMU/8000/1": 110,
        "H263/90000": 120,
      }).then(() => {console.log(settings.codecs)});

What can I try to change? Any help appreciated. Thanks in advance