A company can terminate the service of an employee for misconduct, which may include chatting during office hours with an outsider. However, when terminating for misconduct, the company has to issue a charge sheet, conduct an inquiry, and only terminate the employee based on the report of the inquiry officer. If the company does not follow the proper procedure, then the entire termination becomes invalid in the eyes of the law. In your case, your termination is legally invalid, and you are still considered employed if you wish to challenge it.
Depending on your salary and tenure of service, you are entitled to other benefits, including statutory benefits, if you choose to contest the termination. I recommend consulting a labor lawyer with all your relevant documents for better guidance.
For more information, you can visit my blog at
www.labourlawhub.com.
Best regards,