Limit call duration for internal calls only, not external: problems with IVRs

The only way I can think of doing this is with a custom dialplan hook that checks the CID of the calling party and sets TIMEOUT(absolute) as appropriate. Hooking for fun and income