Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outgoing call without sim-card in Android #823

Open
1 task done
evd1ser opened this issue Dec 11, 2024 · 2 comments
Open
1 task done

Outgoing call without sim-card in Android #823

evd1ser opened this issue Dec 11, 2024 · 2 comments

Comments

@evd1ser
Copy link

evd1ser commented Dec 11, 2024

Bug report

When i create outgoing call on my test android without sim he show error "Not registered on network."
How i can create call without sim only in wifi-network? i try selfManaged no result
The incoming call was created without errors.
when the flight mode is on, it asks to turn it off... how can I avoid this if I only make calls via the Internet without using a SIM card?

  • Reproduced on:
  • Android

Description

Steps to Reproduce

Code like example

const displayOutgoingCallNow = () => {
    const number = getRandomNumber()
    const callUUID = getNewUuid();
    addCall(callUUID, number);

    log(`[displayOutgoingCallNow] ${format(callUUID)}, number: ${number}`);


    RNCallKeep.startCall(callUUID, number, number);

    BackgroundTimer.setTimeout(() => {
      log(`[setCurrentCallActive] ${format(callUUID)}, number: ${number}`);
      RNCallKeep.setCurrentCallActive(callUUID);
    }, 1000);
  };

Versions

- Callkeep: 4.3.9-4.3.15
- React Native: 0.75.4
- Android: android 9
- Phone model: samsung galaxy s8
- Phone number is Unknown because it hasn't sim-card

Logs

2024-12-11 10:55:11.970 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] setup : {"okButton":"ok","selfManaged":true,"cancelButton":"Cancel","alertDescription":"This application needs to access your phone accounts","alertTitle":"Permissions required"}
2024-12-11 10:55:11.970 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] setSettings : {"okButton":"ok","selfManaged":true,"cancelButton":"Cancel","alertDescription":"This application needs to access your phone accounts","alertTitle":"Permissions required"}
2024-12-11 10:55:11.973 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] API Version supports self managed, and is enabled in setup
2024-12-11 10:55:11.973 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] setup, adding RECORD_AUDIO in permissions in self managed
2024-12-11 10:55:11.973 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] setSettings : {"okButton":"ok","selfManaged":true,"cancelButton":"Cancel","alertDescription":"This application needs to access your phone accounts","alertTitle":"Permissions required"}
2024-12-11 10:55:11.974 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] registerPhoneAccount
2024-12-11 10:55:12.093 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] registerEvents
2024-12-11 10:55:12.093 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] startObserving, event count: 0
2024-12-11 10:55:12.093 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] startObserving, event count: 0
2024-12-11 10:55:15.836 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] startCall called, uuid: 82468110-e5af-4f4f-b81e-5e37b282ef71, number: 31407, callerName: 31407
2024-12-11 10:55:15.837 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] startCall, uuid: 82468110-e5af-4f4f-b81e-5e37b282ef71
2024-12-11 10:55:17.363 26494-26894 RNCallKeep              app.com                      D  [RNCallKeepModule] setCurrentCallActive, uuid: 82468110-e5af-4f4f-b81e-5e37b282ef71
2024-12-11 10:55:17.363 26494-26894 RNCallKeep              app.com                      W  [RNCallKeepModule] setCurrentCallActive ignored because no connection found, uuid: 82468110-e5af-4f4f-b81e-5e37b282ef71

outgoing call flight mode
@evd1ser
Copy link
Author

evd1ser commented Dec 12, 2024

update
incoming call works fine on 4.3.9-4.3.13. But on 4.3.14-4.3.15 nothing is displayed

@evd1ser
Copy link
Author

evd1ser commented Dec 12, 2024

I can run

RNCallKeep.displayIncomingCall(callUUID, number, number, 'number', false);
RNCallKeep.answerIncomingCall(callUUID);

instead of

RNCallKeep.startCall(callUUID, number, number);

but it is not the right way I think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant