Skip to content
This repository has been archived by the owner on May 26, 2019. It is now read-only.

Is it possible to call using other than phone number #75

Open
saikiranoptisol opened this issue Feb 14, 2019 · 2 comments
Open

Is it possible to call using other than phone number #75

saikiranoptisol opened this issue Feb 14, 2019 · 2 comments

Comments

@saikiranoptisol
Copy link

Hi,

I'm doing chat application in which there is an option for video call. For this i have integrated react-native-video-webRTC.But instead of connecting directly i need acept reject and call getting notifications as well. So i'm looking for some call kit frameworks like this. but here is it possible to make call without any phone number. Because i must not use phone number. i need to do it based on roomId. Is there that kind of possiblity with this framework.

If yes, how?

@andrew781026
Copy link

andrew781026 commented Feb 22, 2019

RNCallKit.displayIncomingCall( _uuid , "the string show on the call screen")

@saikiranoptisol
Copy link
Author

how i can make incoming and outgoing calls.

I'm using methods like onIncomingCall = () => {
// Store the generated uuid somewhere
// You will need this when calling RNCallKit.endCall()
let _uuid = uuid.v4()
console.log("Hello RNCallKit", RNCallKit); // log is here
console.warn('onIncomingCall,_uuid=', _uuid);

    RNCallKit.displayIncomingCall(_uuid, "886900000000");
    this.setState({_uuid});
};

// This is a fake function where you make outgoing calls
onOutgoingCall = () => {
    // Store the generated uuid somewhere
    // You will need this when calling RNCallKit.endCall()
    let _uuid = uuid.v4()

    console.warn('onOutgoingCall'+_uuid);
    RNCallKit.startCall(_uuid, "9177349752");
    this.setState({_uuid});
};

if i use this. I'm not sure how exactly i need to do for incoming and outgoing call

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

No branches or pull requests

2 participants