callkeep icon indicating copy to clipboard operation
callkeep copied to clipboard

Integration with dart_sip_ua

Open RobotMaths opened this issue 4 years ago • 5 comments

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 :

  • background
  • app no load
  • screen lock

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 !

RobotMaths avatar Jun 11 '21 15:06 RobotMaths

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.

cloudwebrtc avatar Jun 12 '21 15:06 cloudwebrtc

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 ?

RobotMaths avatar Jun 15 '21 15:06 RobotMaths

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.

cloudwebrtc avatar Jun 15 '21 15:06 cloudwebrtc

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?

Rob-Mat94 avatar Jul 06 '21 18:07 Rob-Mat94