Hi! I try to use queue pickup autoanswer. In config I set
override_redirect_context=custom-fop2-autoanswer-redirect
And add the extension to asterisk dialplan. But autoanswer doesn work. If I add to 'custom-fop2-autoanswer-redirect'
exten = _.,n,SIPAddHeader(Call-info:answer-after=0.1)
Is this extension called only while picking up? Will I have hidden problem with it? And why original template doesnt work?
Answered by admin
See post in contextif autoanswer works for queue pickup with _X. , and you are happy , then change it. The idea is that *you* will adapt to any intermediate context will work for your environment.
The commented sample works on FreePBX based systems because later in the dialplan you will find this:
exten => s,n,ExecIf($["${ALERTINFO}" != ""],SipAddHeader,${ALERTINFO})
exten => s,n,ExecIf($["${CALLINFO}" != ""],SipAddHeader,${CALLINFO})
I will update the sample to add that there directly, and also change the = to => to be syntactically correct for asterisk dialplan.