dart-sip-ua icon indicating copy to clipboard operation
dart-sip-ua copied to clipboard

Listen to SIP at background or terminated app.

Open ahmedradwan18 opened this issue 2 years ago • 24 comments

I am using FCM to wake up the app but I can't listen to sip listeners at the top-level method. I am using Flutter_Incoming_callkit to display call notifications but I cant accept the call.

ahmedradwan18 avatar Mar 26 '23 14:03 ahmedradwan18

I had the same problem, did you find a solution ?

Zidoun-Abdou avatar Apr 03 '23 10:04 Zidoun-Abdou

Unfortunately no

On Mon, 3 Apr 2023, 12:40 pm Zidoun-Abdou, @.***> wrote:

I had the same problem, did you find a solution ?

— Reply to this email directly, view it on GitHub https://github.com/flutter-webrtc/dart-sip-ua/issues/357#issuecomment-1494086047, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJDMIPIA2XJ47W6PQFYVPOTW7KSJTANCNFSM6AAAAAAWIGSRCY . You are receiving this because you authored the thread.Message ID: @.***>

ahmedradwan18 avatar Apr 03 '23 10:04 ahmedradwan18

@ahmedradwan18 You can't listen to SIP in background but you can wake up your device to re-register to SIP and start listening.

You can't keep alive a socket connection.

Make sure you also consider app in battery save mode and doze mode.

FeleConvo avatar Apr 19 '23 19:04 FeleConvo

I am also facing the issue. I used FCM and flutter incoming callkit to accept the call. When I press accept button, the app is waken.vAnd as soon as SIP initialization, the call was not there in the app. Because, my used third party service (mizu) gateway only sends the active extension(phone numbers). When the app is exited by the user, the SIP connection was destroyed and server can't know. so it doesn't send. The only possible way for me is to keep SIP connection alive even though app is exited by the user. Could someone tell me how to make SIP connection alive? I know if I need to open the background service on the app, drawbacks are battery draining and security concern. But I need the options for some users to keep SIP alive.

AungKOO avatar May 29 '23 08:05 AungKOO

@AungKOO , how to use fcm to get the incoming sip call? the below param of sip ua setting is necessary to get communicate with fcm? settings.registerParams.extraContactParams = <String, String>{ 'pn-provider': 'fcm', 'pn-param': FCM_PROJECT_ID, 'pn-prid': _fcmToken }; Can you provide any idea on this?

DeviArunaMurugan avatar Jul 24 '23 06:07 DeviArunaMurugan

I am also facing the issue. I used FCM and flutter incoming callkit to accept the call. When I press accept button, the app is waken.vAnd as soon as SIP initialization, the call was not there in the app. Because, my used third party service (mizu) gateway only sends the active extension(phone numbers). When the app is exited by the user, the SIP connection was destroyed and server can't know. so it doesn't send. The only possible way for me is to keep SIP connection alive even though app is exited by the user. Could someone tell me how to make SIP connection alive? I know if I need to open the background service on the app, drawbacks are battery draining and security concern. But I need the options for some users to keep SIP alive.

I have same issue Do you have any idea now?

pogenz45 avatar Jan 22 '24 10:01 pogenz45