react-native-demo
react-native-demo copied to clipboard
How to call another user?
I have Voximplant app registered, I have 2 registered users in the app. I logged in demo app, using 2 account.
So, I try to call another user [email protected] to [email protected], so I get "Call Failed: not found"
Hello @ksielyov ,
Thank you for reaching out to us.
To make a call between 2 users, you also need to set up:
- VoxEngine scenario scenario example for a p2p call:
VoxEngine.addEventListener(AppEvents.CallAlerting, (e) => {
const newCall = VoxEngine.callUserDirect(
e.call,
e.destination,
e.callerid,
e.displayName,
null
);
VoxEngine.easyProcess(e.call, newCall, ()=>{}, true);
});
You can find some useful informatio about VoxEngine in our docs: about VoxEngine, VoxEngine capabilities, about scenarios 2. Routing You need to assign a VoxEngine scenario to some pattern to let the Voximplant platform know how to process an incoming call. Please check this article for more information and screenshots.
These steps should resolve your issue.
Also, to make a call from the user [email protected]
to the user [email protected]
, you can only enter the Voximplant user name, i.e. test
instead of [email protected]
.
Best regards, Yulia Grigorieva
Thanks, it works. But now, when I call from the 1 emulator to the 2 emulator, the second show green call icon at the top and stop it, in the first emulator "Call failed: desline"
And need I voip for Voximpant calls if I using push notifications with Firebase?
Hello!
But now, when I call from the 1 emulator to the 2 emulator, the second show green call icon at the top and stop it, in the first emulator "Call failed: desline"
The demo application is designed to process only 1 call at the moment, if it receives another call while it has already a call, it rejects a new one. According to your description it looks like this case.
Please check the VoxEngine scenario and routing and ensure that only one scenario is launched. You can also check the call session logs in the Voximplant Control Panel (Call History tab in a Voximplant application). Check that the call session log contains only one callUserDirect
log.
And need I voip for Voximpant calls if I using push notifications with Firebase?
Not sure that I undestand correctly your question, but the Voximplant platform supports push notifications for VoIP calls (Fireabse - for android, APNS - for iOS). Voximplant does not provide the option to use Firebase for push notifications on iOS, because the Firebase does not support Apple VoIP push notifications.
Best regards, Yulia Grigorieva
I meant this
When I call to Test from Test2, emulator with user Test stop the call
@ksielyov did you find a solution?
@ksielyov did you find a solution?
No, I chosen Agora
i managed to make it work, if you want to try, i think i may be able to help things my project was missing:
- follow all steps to configure react-native-callkeep
- import react-native-get-random-values along with uuid v4
- download the last voximplant react native demo, where some react-native-voip-push-notification fixes were made
i think there are still some minor fixes, but i can't remember right now
@ksielyov did you find a solution?
No, I chosen Agora
I have Voximplant app registered, I have 2 registered users in the app. I logged in demo app, using 2 account.
So, I try to call another user [email protected] to [email protected], so I get "Call Failed: not found"