react-native-demo icon indicating copy to clipboard operation
react-native-demo copied to clipboard

How to call another user?

Open ksielyov opened this issue 4 years ago • 10 comments

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"

ksielyov avatar Feb 12 '21 11:02 ksielyov

Hello @ksielyov ,

Thank you for reaching out to us.

To make a call between 2 users, you also need to set up:

  1. 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

YuliaGrigorieva avatar Feb 12 '21 12:02 YuliaGrigorieva

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"

ksielyov avatar Feb 12 '21 13:02 ksielyov

And need I voip for Voximpant calls if I using push notifications with Firebase?

ksielyov avatar Feb 12 '21 13:02 ksielyov

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

YuliaGrigorieva avatar Feb 12 '21 14:02 YuliaGrigorieva

I meant this Снимок экрана 2021-02-12 в 19 23 39

ksielyov avatar Feb 12 '21 14:02 ksielyov

When I call to Test from Test2, emulator with user Test stop the call

ksielyov avatar Feb 12 '21 14:02 ksielyov

@ksielyov did you find a solution?

rafaellima94 avatar Jul 22 '21 22:07 rafaellima94

@ksielyov did you find a solution?

No, I chosen Agora

ksielyov avatar Aug 03 '21 15:08 ksielyov

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

rafaellima94 avatar Aug 03 '21 15:08 rafaellima94

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"

3aki3aka avatar Oct 05 '21 20:10 3aki3aka