pickup autoanswer
-
Hi! I try to use queue pickup autoanswer. In config I set
override_redirect_context=custom-fop2-autoanswer-redirectAnd 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?
-
-
Auto answer headers vary from phone to phone. You should use whatever your phone likes/needs. In fop2 you will find a sample config that might work for some phones but not all. Each phone sip stack is different. So you will have to adapt not only that context, but also individual button auto answer headers if you use them, or the global auto answer headers in fop2.cfg.
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.
-
But I change not only headers, I change from
exten = _X.,n,Set(_CALLINFO=Call-Info: <uri>\;answer-after=0)to
exten = _X.,n,SIPAddHeader(Call-info:answer-after=0.1)Aboute '_X.' I understand. The worst situation is autoanswer will not work, yes? Warning in log not good for me..
-
if 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.
-
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login