Hi There:
I am developing a softphone using react native with the help of GitHub - wazo-platform/wazo-react-native-demo: A simple demonstration of Wazo's SDK with React Native this wazo demo project.
When I tried to hit the
Wazo.Auth.init();
Wazo.Auth.setHost("192.168.87.135");
try {
session = await Wazo.Auth.logIn("root", "sri55533");
} catch (e) {
console.log("Err",e)
}
session = await Wazo.Auth.logIn(“root”, “sri55533”);
API responds with a catch error that
LOG Err [TypeError: Network request failed]
While debugging it in the network, the results are
What might have gone wrong, and how to resolve it?
I also added a self-signed SSL certificate but it does not work
Hi,
I use VirtualBox to have a Wazo platform server, for test and dev.
I have a web app, using quite the same code for auth.
I start my Wazo server, i start my dev app.
When i try to log to my web app (with chrome), i got:
then, i open a new tab in chrome, go to the wazo ip server address:
Then click on “avanced parameters”, then,
i click “continue to the website”
i go back to my dev app, and tada, auth is working !
1 Like
Hi there:
Sorry for creating multiple topics!!!.
Anyway, thanks for your reply😊
This article helps me to overcome the issue of SSL validation in my app.
Hi there:
Even though I solved the SSL error for HTTPS requests I was not able to overcome the socket error.
This socket connection begins when I execute
Wazo.Auth.init();
Wazo.Auth.setHost('192.168.87.135');
session = await Wazo.Auth.logIn('sriharish.r2021ecec@sece.ac.in', '12345');
const {sipLines}=session
const sipLine={username:"sta9ksl1",secret:"ecdo0uic"}
await Wazo.Phone.connect({ audio: true, video: false },sipLine)
Wazo.Phone.on(Wazo.Phone.ON_CALL_INCOMING, callSession => {
});
const ses= await Wazo.Phone.call("1001",false) <------- this creates the socket connection
How to resolve this issue?
It’s not possible to have websocket connexion without a valid certificate.