I want to enable auto answer in from-internal for PJSIP endpoints. The last time I did this was for chan_sip endpoints, and all I did was add into /etc/asterisk/extensions_custom.conf:
[from-internal-custom]
exten => _1XX,1,SIPAddHeader(Alert-Info: Auto Answer)
This would be if I wanted all extensions in the 100 range to auto answer when they called each other.
What is the proper way to do this for PJSIP endpoints? I’ve seen
Regardless of which SIP driver is in use, the best way would be to use the native FreePBX subroutines for adding headers. You pass two arguments to the subroutine, the fist is the name of the header, the second is the value, separated by a comma:
Not sure if this is helpful. But I found myself a lot of times trying to hack the dialplan, when there’s already a setting under advanced settings that does that.