voximplant/react-native-demo

Call failed

tusharnetset opened this issue · 28 comments

After login,In "Call to" section when I enter another user's username It always show "Call Failed:Not found".

Hello!

Thank you for reaching out!

The issue may be caused by:

  1. you have not created VoxEngine scenario or it has issues
  2. you have not created Voximplant application rule
  3. you have entered invalid Voximplant user name

Please check these possible issues in your Voximplant application configuration.

I also recommend you look at these tutorials that contain some examples:

  1. https://voximplant.com/blog/voximplant-p2p-video-chat
  2. https://voximplant.com/docs/references/articles/quickstart/apps-scenarios-rules-and-users

Please let me know if you find the root cause of the issue.

Best regards,
Yulia Grigorieva

@tusharnetset ,

Glad to know that the issue is resolved.

I'm closing this issue for now. Please open a new one in case of any problems or questions.

Best regards,
Yulia Grigorieva

I have followed the instructions but it still shows call failed

@tusharnetset,

Please create separate issue for sdk integration problems. This issue is about call failed event, and we don't want to mix all problems in one issue ticket.

Best regards,
Yulia Grigorieva

Hello, @rAnAaRsl !

Please provide more details about your issue. What error do you receive when you make a call?

Have you checked the following possible issues?

  1. you have not created VoxEngine scenario or it has issues
  2. you have not created Voximplant application rule
  3. you have entered invalid Voximplant user name

Best regards,
Yulia Grigorieva

I have created VoxEngine scenario which is

VoxEngine.forwardCallToUserDirect();
VoxEngine.addEventListener(AppEvents.CallAlerting, (e) => {
const newCall = VoxEngine.callUserDirect(
e.call,
e.destination,
e.callerid,
e.displayName,
null
);
VoxEngine.easyProcess(e.call, newCall, ()=>{}, true);
});

And i have Created application rule as well and used a valid Voximplant user name

@rAnAaRsl ,

Thank you for the provided information!
The issue is most likely caused by your scenario that duplicates call processing.
VoxEngine.forwardCallToUserDirect is a helper function that do the same thing as listed after this line in your scenario.

Please change your scenario to the following one line scenario:

VoxEngine.forwardCallToUserDirect();

Please let me know the results.

Best regards,
Yulia Grigorieva

Same issue Call Failed Popup appears on the screen

Call failed. Code {"headers":{"X-VI-Hangup-Cause":"Failed to load call scenarios: No scenarios in dialplan"},"reason":"Not Found","code":404,"callId":"IbVXdffBRcWIfBLRcJQUcJICRIQUFIOPZDDJ"} Reason undefined

Hello!

This error means that you have not set the rule for your Voximplant application or did set up it incorrectly in the Voximplant Control Panel. It results the Voximplant Cloud can't find the scenario to process the call.

Please check the following articles:

  1. https://voximplant.com/docs/references/articles/quickstart/apps-scenarios-rules-and-users - quickstart that describes how it works
  2. https://voximplant.com/blog/voximplant-p2p-video-chat - it has a screenshot with an example of a rule setup for p2p calls.

If you don't find the issue, please reach out to us at support@voximplant.com

Best regards,
Yulia Grigorieva

Issue Resolved thank your for the help

after ringing once on other phone and shows on first phone declined.

Hello @reactdevrocks ,

Please provide your VoxEngine scenario.

Best regards,
Yulia Grigorieva

Hi @YuliaGrigorieva
this is my scenariao
Thanks

VoxEngine.addEventListener(AppEvents.CallAlerting, e => {
const newCall = VoxEngine.callUserDirect(
e.call,
e.destination,
e.callerid,
e.displayName,
null
);
VoxEngine.easyProcess(e.call, newCall, ()=>{}, true);

});

@YuliaGrigorieva now audio and video call is happening from one ios device only. means if i call from second ios device then it is showing "Call failed: Not Found". (Using above scenario)

@YuliaGrigorieva any solution for above one?

Hello @reactdevrocks ,

"Call failed: Not Found" error means that you call the user that:

  1. does not exist (not created in the Voximplant application)
  2. routing is not set up in the Voximplant application
  3. you enter the user in invalid format

Best regards,
Yulia Grigorieva

but the user from which i am calling to another is getting incoming call but when i do outgoing call it shows "Call failed: Not Found".

  1. User is created in Voximplant application with valid formate
    a) first user is - tej.prakash
    b) second user is - pranabesh
    so i think both is in valid format

  2. routing is also setup in Voximplant application.

Screenshot 2019-07-16 at 8 47 51 PM

@YuliaGrigorieva i am waiting for clarifying.

Hello @reactdevrocks ,

Please contact us at support@voximplant.com and provide details (your Voximplant account name and Voximplant application), so we can check your setup and give you recommendations.

Best regards,
Yulia Grigorieva

Thanks for reply

ACCOUNT NAME IS : USER NAME: clirnet and email is: tejprakash.tiwari@clirnet.com
APPLICATION NAME IS : clirnet.clirnet.voximplant.com

and also the demo android is not setting up.. i am totally frustrated since two days and looking for another chatting libraries. help me!!

Hello @reactdevrocks ,

I have taken a look at your Voximplant application setup, I do not see any issues. Moreover, I see several successful calls between Voximplant users you have mentioned before.

Do you still observe "Not found" issues? Do you have any other call fail reasons?

Best regards,
Yulia Grigorieva

yes when i call from pranabesh to tej.prakash then it connects successfully and calls happening, but when i do vice versa means tej.prakash to pranabesh then it shows "Call failed: Not Found" and it is not showing in call history.

Thanks

Could you please check that you do not enter any extra whitespaces on the main application screen when you input "pranabesh"?

yes checked that still not happening.

@YuliaGrigorieva what about I keep getting "No route to host" 503