Hey @lgaetz
Based on this thread - PJSIP Auto Answer - I’ve been using your predial hook to apply an auto answer header to all local calls using [macro-dialout-one-predial-hook]
but I’ve noticed that this context is getting applied on calls that come through the IVR. So if a caller gets to the IVR and they select an option that routes directly to an extension, it will auto answer. If they direct dial an extension from the IVR, it will auto answer.
Is this predial context intended to be hit on incoming calls from an IVR? Full context below:
In /etc/asterisk/extensions_custom.conf
[macro-dialout-one-predial-hook]
exten => s,1,Noop(Entering user defined context macro-dialout-one-predial-hook in extensions_custom.conf)
exten => s,n,GoSub(func-set-sipheader,s,1(Alert-Info,Auto Answer))
exten => s,n,MacroExit