Auto Answer via SIP Header on Yealink
I would like to try auto answer via SIP header on my Yealink phones to auto answer when I originate a call from FOP2. I tried the intercom feature code in the originate channel field (Local/*80100@from-internal), but it causes all sorts of problems with call transfer, conferences, etc.)
Now I would like to try via SIP header.
Not sure how to set this up. Under preferences I set Auto Answer to yes in FOP2 GUI and I have this in the auto answer header field in FOP2 manager: __SIPADDHEADER51=Call-Info: answer-after=0.001.
Tried "answer-after=0" as well.
Originate channel field is empty.
I am trying a call but nothing happens.
Anything else I have to configure (custom dialplan or something on the Yealink itself)?
Yealink phones support this feature:
Yealing Auto Answer
or
Yealing Auto Answer
or here:
Yealink AA
Now I would like to try via SIP header.
Not sure how to set this up. Under preferences I set Auto Answer to yes in FOP2 GUI and I have this in the auto answer header field in FOP2 manager: __SIPADDHEADER51=Call-Info: answer-after=0.001.
Tried "answer-after=0" as well.
Originate channel field is empty.
I am trying a call but nothing happens.
Anything else I have to configure (custom dialplan or something on the Yealink itself)?
Yealink phones support this feature:
Yealing Auto Answer
or
Yealing Auto Answer
or here:
Yealink AA
Comments
http://support.asternic.biz/?/selfhelp/view-article/how-to-debug-fop2/10
Variable: __SIPADDHEADER51=Call-Info=answer-after=0.001
127.0.0.1 -> Exten: 5333
127.0.0.1 -> CallerID: Johann <5313>
127.0.0.1 -> Async: 1
127.0.0.1 -> Account:
127.0.0.1 -> Channel: SIP/5313
127.0.0.1 -> Context: from-internal
127.0.0.1 -> Action: Originate
127.0.0.1 -> Priority: 1
127.0.0.1 -> Variable:
127.0.0.1 -> ActionID: 229
FOP2 Version: 2.29.02
What to do?
Auto answer set to yes in FOP2 and this as the auto answer header:
__SIPADDHEADER51=Call-Info: answer-after=0.001
[attachment:56144aa8d10e3][attachment:56144b2605cc0]
/usr/local/fop2/autoconfig-buttons.sh | grep -i answer
?
/usr/local/fop2/autoconfig-buttons.sh | grep -i answer
?
/usr/local/fop2/autoconfig-buttons.sh | grep -i answer
autoanswerheader=__SIPADDHEADER51=Call-Info=answer-after=0.001
autoanswerheader=__SIPADDHEADER51=Call-Info=answer-after=0.001
autoanswerheader=__SIPADDHEADER51=Call-Info=answer-after=0.001
autoanswerheader=__SIPADDHEADER51=Call-Info=answer-after=0.001
...
...
I also have this file in /etc/asterisk/fop2 for my HA cluster.
/etc/asterisk/fop2/autoconfig-buttons.sh | grep -i answer
autoanswerheader=__SIPADDHEADER51=Call-Info=answer-after=0.001
autoanswerheader=__SIPADDHEADER51=Call-Info=answer-after=0.001
autoanswerheader=__SIPADDHEADER51=Call-Info=answer-after=0.001
autoanswerheader=__SIPADDHEADER51=Call-Info=answer-after=0.001
...
...
If so, you will have to start fop2 server in debug mode and try, then stop capturing logs and search the string "autoanswer" in the log file, is there any result?
http://support.asternic.biz/?/selfhelp/view-article/how-to-debug-fop2/10
The Auto Answer headers that work with Yealink phones are:
"__SIPADDHEADER51=Alert-Info:answer-after=0" or (0.001 if you prefer) and
"__SIPADDHEADER51=Alert-Info:info=alert-autoanswer"
This works on regular call initiate, but not when I pick up the call via mouse click from a queue or from a parking slot. The phone wouldn't auto answer then.
Any way to make this work?
When you pickup you are actually doing a Redirect action, and that action in manager does not have the option to set variables/headers.
So, it is just not possible to add those via AMI actions directly. There are workarounds but those involves modifying the dialplan, but FOP2 does not alter your dialplan and works with what you have (its a philosophical decision).