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

Remote address is as "sip:anonymous@anonymous.invalid" for Incoming call with Callkit push notification. #935

Closed
mingeee opened this issue May 8, 2024 · 2 comments

Comments

@mingeee
Copy link

mingeee commented May 8, 2024

image

I was thinking about listening to onPushNotificationReceived to update the remote address with
"from-uri" : "sip:pusher@sip.example.org"

But the callback is only being triggered after the call.

Hmm... Does anyone have any ideas on how can I show the correct caller when using push notifications?

@darmaheev
Copy link

We have the same problem, did you find a solution?

@mingeee
Copy link
Author

mingeee commented May 30, 2024

We have the same problem, did you find a solution?

@darmaheev Hmm... I don't think there is a way show the SIP address immediately from my research.

The workaround for this is update the callkit once you have got the SIP address.

self.mProviderDelegate.updateCall(uuid: uuid!, displayAddress: prettifyAddress(self.remoteAddress))

The function inside the mProviderDelegate

func updateCall(uuid: UUID, displayAddress: String) {
      let update = CXCallUpdate()
      update.remoteHandle = CXHandle(type:.generic, value: displayAddress)
      
      provider.reportCall(with:uuid, updated:update);
}

Not the best but it is the same as how linphone native does it. Eg, showing "Incoming" ---> then update with the sip address once you got the info.

@mingeee mingeee closed this as completed May 30, 2024
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

2 participants