How to detect call from AMI or Manual Dial on dial plan?

Hi to all.

I need to know how to detect in the dial plan if calls are comings from a user that manually make a phone call or from a software using AMI interface and originate.

the case is that I need to have to different audio file name depending on outgoing calls.

I solved thanks a lot.