dart-sip-ua
dart-sip-ua copied to clipboard
Listen to SIP at background or terminated app.
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.
I had the same problem, did you find a solution ?
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 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.
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 , 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?
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?