Recording only Trunk calls

Is it possible to activate automatic recordings only to trunk calls?
I don’t want to record internal calls.
My PBX is Elastix with Asterisk 1.4.22 and FreePBX 2.5.1.2
Thanks!