How does the logic for handling incoming/outgoing calls work with FreshSales Integration?

How does the logic for handling incoming/outgoing calls work with FreshSales Integration?

Incoming / Outgoing Calls

MyOperator will search for a contact in FreshSales CRM with the customer's phone number.
  1. Contact doesn’t exist: MyOperator will add the contact and activity in the CRM
  2. Contact Exists: Myoperator will add the activity and tag the existing contact to the activity