On my FreePBX/Asterisk installation, FreePBX auto-generates the following in extensions_additional.conf:
[ext-intercom]
include => ext-intercom-custom
exten => _*80.,1,Set(dialnumber=${EXTEN:3})
exten => _*80.,n,dbGet(user-intercom=AMPUSER/${dialnumber}/intercom)
exten => _*80.,n,GotoIf($["${user-intercom}" = “disabled” ]?nointercom)
exten => _*80.,n,Set(__SIPADDHEADER=Call-Info: ;answer-after=0)
exten => _*80.,n,Set(__ALERT_INFO=Ring Answer)
exten => _*80.,n,Set(__SIP_URI_OPTIONS=intercom=true)
----------------------< snip >---------------------------
The problem is that my Aastra phones won’t work with this. To get intercom to work, I have to manually replace:
exten => _*80.,n,Set(__ALERT_INFO=Ring Answer)
with:
exten => _*80.,n,Set(__SIPADDHEADER=Alert-Info: ;info=alert-autoanswer)
I’m getting tired of having to manually patch extensions_additional.conf anytime I make a change in FreePBX. How can I change my FreePBX installation to use the code I need instead of the stock code? Is this stored in a template, module or database somewhere?
I’ve tried putting the correct context in extensions_custom.conf, but that doesn’t seem to work.
Thanks for any suggestions.