flutter-webrtc / callkeep

iOS CallKit and Android ConnectionService for Flutter
MIT License
131 stars 142 forks source link

Integration with dart_sip_ua #79

Open RobotMaths opened 3 years ago

RobotMaths commented 3 years ago

Hi ! I'm building a voip app with webRTC plugin (Asterisk Server). I'm new I would like to some informations. My app is working well in foreground. I saw all git post but I didn't really understand. I think there are 3 other cases :

Is Callkeep handle this ? Do we need Pushkit / Callkit in the 3 cases ? The problem of RegisterParams of sip ua library is it fixed ?

Thanks !

cloudwebrtc commented 3 years ago

You need to get the fcm/apns token from callkeep and use RegisterParams to add it to Contacts Params and register to the sip server. After that, you need to save the token in the sip server and try to push and wake up the app after the client loses connection, and After the app is successfully registered again, the SIP call is made immediately. The whole process will be a bit complicated.

RobotMaths commented 3 years ago

Thx for your reply, so the process is to create a script on my server which will push the app and then CallKeep is able to receive the information. is the fcm/apns token single, is it app token ? Or is it a token for each user ?

cloudwebrtc commented 3 years ago

The token is a unique value returned by the device registered to the push server (fcm/apns server). Therefore, you must store a unique token for each sip user during sip registration, so that the push request can be sent to the correct device when calling.

Rob-Mat94 commented 3 years ago

Hi, i'm back on my project. Thanks for your help ! Do you think that Asterisk extension will work https://github.com/balusreekanth/ios-asterisk-push with callkeep ? I don't really understand what callkeep is doing, it's using firebasemessaging for ios or the APNs service?