pickup autoanswer
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?
Comments
As for the change of _. to _X , it could break the context as the 'extension' passed to that context is a mix of numbers and letters (cause it includes the original redirect context), like "100:from-internal"
_X. won't match that correctly.
Aboute '_X.' I understand. The worst situation is autoanswer will not work, yes? Warning in log not good for me..
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.
If you are using FreePBX, is that context in extensions_custom.conf or somewhere else?