Trigger a script on every call (in- and outbound)

Best way is with a dialplan hook. Hooking for fun and income