-
Notifications
You must be signed in to change notification settings - Fork 90
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
how to implement call busy logic? #48
Comments
@ShyamKrishna122 you can store call details in database when call is in process and when call finish delete the call related data.so before making call you check for call details for other user and if you find call details in database that means user is busy in call.. |
additionally to @wrteam-priyansh solution you can use additional parameters when you reject the call, it can looks like _callSession.onCallRejectedByUser = _onCallRejectedByUser;
void _onCallRejectedByUser(P2PSession session, int userId, Map<String, String> userInfo) {
if (userInfo.isNotEmpty && userInfo.containsKey("reason")) {
String reason = userInfo["reason"];
if (reason == "BUSY") {
// user is busy, do needed actions
}
}
} |
Thank you guys but what will userInfo contains? |
it will cantains data which you send in |
Thank you I will try implementing it |
No description provided.
The text was updated successfully, but these errors were encountered: