Auto Answer via SIP Header on Yealink

  1. 9 years ago
    Edited 9 years ago by avayax

    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

  2. admin

    29 Sep 2015 Administrator

    Start FOP2 in debug mode and originate a call from it.. watch the originate command being set and if the variable is there or not

    http://support.asternic.biz/?/selfhelp/view-article/how-to-debug-fop2/10

  3. What should the variable in the originate command look like?

  4. admin

    5 Oct 2015 Administrator

    A header similar to this in the Action: Originate:

    Variable: __SIPADDHEADER51=Call-Info=answer-after=0.001

  5. Edited 9 years ago by avayax

    Looks like the variable is empty:
    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
    FOP2 Manager.jpgFOP2.jpg

  6. admin

    7 Oct 2015 Administrator

    What FOP2 version are you running? What is the output from

    /usr/local/fop2/autoconfig-buttons.sh | grep -i answer

    ?

  7. Deleted 9 years ago by admin
  8. FOP2 Version: 2.29.02
    /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
    ...
    ...

  9. admin

    7 Oct 2015 Administrator

    Did you upgrade FOP2 from a previous version? Are you positive the autoconfig script called from fop2.cfg is autoconfig-buttons.sh and not the old autoconfig-buttons-freepbx.sh ?

    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

  10. Edited 9 years ago by avayax

    I am making some progress on this issue.
    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?

  11. admin

    9 Oct 2015 Administrator

    Headers are added to call origination, the Originate action in the Asterisk Manager Interface, as that actions allows you to set headers/variables.

    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).

or Sign Up to reply!