What is the logic behind the Zendesk integration?

What is the logic behind the Zendesk integration?

Logic: For every call, the ticket will be generated to the agent who has picked up the call. For missed calls, the ticket will be generated and assigned to the admin.