External calls pickup not working


we have a FreePBX Distro 4.211.64-5 working fine except for the Direct Call pickup of external calls.
The external calls comes from a SIP trunk.
The direct call works fine for internal calls but we get a " app_directed_pickup.c: No target channel found for XXX" error when try to pickup a external call.
We set the callgroup and the pickupgroup in every extension but make no diference.

Someone know what is happening ?