Can't get PITCH_SHIFT() to work for outgoing calls

The below dialplan snippet works when placed in file extensions_custom.conf with inbound calls to the extension(the pitch of the voice is changed), but I can’t figure out how to adjust the dial plan to get outbound calls from the extension to implement the function and thus change the pitch on outbound calls. If anyone has done this before, your example dialplan snipet would be much appreciated.

exten => 1030,1,Set(PITCH_SHIFT(tx)=highest)

I can’t think of a way of using code to apply the pitch shift to ALL calls from extension 1030, but this will work for all trunk calls from local extension 1030

[macro-dialout-trunk-predial-hook] exten=> s,1,Noop(Entering predial hook macro) exten=> s,n,GotoIf($["${AMPUSER}" = "1030"]?pitch) exten=> s,n,MacroExit exten=> s,n(pitch),Set(PITCH_SHIFT(both)=highest)

If you need it to apply to multiple extensions, just keep adding extra gotoif lines before the macroexit command:

exten=> s,n,GotoIf($["${AMPUSER}" = “1031”]?pitch)
exten=> s,n,GotoIf($["${AMPUSER}" = “1032”]?pitch)
… etc …

Thanks, I will try that.