I tried to use "direction" as condition, but is not working. Infatc it is not showing neither in the "Type" dropdown.
At the moment I set up a condition, destination_number : ^(destionation_number), in the cidlookup dialplan and it seems to work, looking up the cid only for the inbonud calls.