External calls are using loopback, which might be the reason. The ring group lua script exports effective_caller_id_name with the prefix to the bleg, but in the case of loopback it might not get exported to the real b channel. The logs should show you whether it was set on the bleg.