From 18df95b70e84c8eea79607208d09acc0e95cf96a Mon Sep 17 00:00:00 2001 From: Quan HL Date: Fri, 27 Oct 2023 07:32:50 +0700 Subject: [PATCH] fixed review comments --- src/window/phone/index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/window/phone/index.tsx b/src/window/phone/index.tsx index 8cd4259..81da0f8 100644 --- a/src/window/phone/index.tsx +++ b/src/window/phone/index.tsx @@ -236,6 +236,12 @@ export const Phone = ({ sipClient.on(SipConstants.UA_DISCONNECTED, (args) => { setStatus("disconnected"); + toast({ + title: `Cannot connect to ${sipServerAddress}`, + status: "warning", + duration: DEFAULT_TOAST_DURATION, + isClosable: true, + }); }); // Call Status sipClient.on(SipConstants.SESSION_RINGING, (args) => {