Added locgic to insert Calling Record