whatsmeow icon indicating copy to clipboard operation
whatsmeow copied to clipboard

Phone Features

Open refaldyrk opened this issue 11 months ago • 17 comments

Make a call, reject a call, stream audio on call, is it possible?

refaldyrk avatar Mar 22 '24 07:03 refaldyrk

yeah its possible, already create offer and reject call func on my fork, i havent tried to connect it to the relay server since whatsapp announced the deprecation of its electron-based desktop app

arugaz avatar Mar 22 '24 21:03 arugaz

@arugaz hey can I have the link of your fork? thanks!

gamersindo1223 avatar Mar 24 '24 10:03 gamersindo1223

@arugaz hey can i have access?

refaldyrk avatar Mar 24 '24 11:03 refaldyrk

yeah its possible, already create offer and reject call func on my fork, i havent tried to connect it to the relay server since whatsapp announced the deprecation of its electron-based desktop app

can you open your fork ? or just share code block of call method

ahmedRSA avatar Mar 27 '24 12:03 ahmedRSA

there is nothig here

https://github.com/arugaz/whatsmeow/blob/main/call.go

ahmedRSA avatar Mar 27 '24 12:03 ahmedRSA

i'll make pull request

arugaz avatar Mar 27 '24 19:03 arugaz

i'll make pull request

@arugaz just send the pr link when u r done

gamersindo1223 avatar Mar 27 '24 19:03 gamersindo1223

THANK U FOR U CONTRIBUTION @arugaz

refaldyrk avatar Mar 30 '24 06:03 refaldyrk

@arugaz How to make a call offer?

7kXTQsyhnySpko6n avatar Mar 30 '24 07:03 7kXTQsyhnySpko6n

@7kXTQsyhnySpko6n try this https://github.com/go-whatsapp/whatsmeow/blob/main/call.go

gamersindo1223 avatar Mar 30 '24 12:03 gamersindo1223

@arugaz

have you tested making a call offer to another user? the code works for me if I try to send it to my phone from the linked device, but the server silently drops the message if I try to send an offer to anyone else. The other user sometimes receives a token notification so I know the server is receiving the message but its not forwarding it on

abaz1997 avatar Mar 31 '24 05:03 abaz1997

I managed to make calls, the other phone rang but after picking it up, it showed "Connecting" on both devices. Only the WebRTC signaling part is left now I guess

Manjit2003 avatar Mar 31 '24 13:03 Manjit2003

I figured it out, the server drops the call offer if the call key is encrypted using pre-keys. as soon as I responded to a text from the linked device, the session started using DMs and the call worked as intended. i've received calls encrypted with pre keys from phones before, so maybe this is a linked device issue?

abaz1997 avatar Mar 31 '24 15:03 abaz1997

I managed to make calls, the other phone rang but after picking it up, it showed "Connecting" on both devices. Only the WebRTC signaling part is left now I guess

do any library fully support voice call ? has anyone able to successfully make a voice call yet?

ahmedRSA avatar Mar 31 '24 15:03 ahmedRSA

no one so far has released a poc for a STUN client afaik

https://github.com/WhiskeySockets/Baileys/issues/40#issuecomment-1549813499

this outlines the steps needed, there's probably more but its a start

abaz1997 avatar Mar 31 '24 15:03 abaz1997

@abaz1997 there is a version that was working a while back, https://github.com/bhavya32/WA-Calls

gamersindo1223 avatar Mar 31 '24 16:03 gamersindo1223

btw for any1 who wants to reverse engineer the whatsapp uwp you can download it here https://fighter-programmer-uploader.hf.space/file/application-7klwbhx2xak.zip

gamersindo1223 avatar Mar 31 '24 16:03 gamersindo1223