I recently got a project to set up a couple wall-mounted tablets with SIP capability to act as intercoms (Crestron TSW-xx60s, to be exact). However, I’m currently running into an issue with their intercom/auto-answer capability.
These endpoints are expecting the header Answer-Mode: auto to be sent, but this doesn’t appear to be an option anywhere in the endpoint configuration (or I’m blind, one of the two).
I’ve been able to (at minimum) hack in support by modifying extensions_additional.conf for test purposes, but this is obviously sub-optimal given that file is frequently overwritten. The changes were:
[autoanswer]
include => autoanswer-custom
exten => s,1,GosubIf($["${ARG1}" != ""]?func-set-sipheader,s,1(Alert-Info,${ARG1}))
exten => s,n,GosubIf($["${ARG2}" != ""]?func-set-sipheader,s,1(Call-Info,${ARG2}))
exten => s,n,Gosub(func-set-sipheader,s,1(Answer-Mode,Auto)) # <-- added
exten => s,n,Gosub(func-apply-sipheaders,s,1())
exten => s,n,Return()
Is there a way to properly configure PJSIP to send this header to these endpoints? Ideally, this would respect existing auto-answer flags, but I’d be okay with it being global for now if necessary.