Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Support
  3. Auto Answer via SIP Header on Yealink

Auto Answer via SIP Header on Yealink

Scheduled Pinned Locked Moved Support
11 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    N
    nicolas
    wrote on last edited by
    #2

    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

    1 Reply Last reply
    0
    • A
      A
      avayax
      wrote on last edited by
      #3

      What should the variable in the originate command look like?

      1 Reply Last reply
      0
      • N
        N
        nicolas
        wrote on last edited by
        #4

        A header similar to this in the Action: Originate:

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

        1 Reply Last reply
        0
        • A
          A
          avayax
          wrote on last edited by
          #5

          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
          [attachment:56144aa8d10e3][attachment:56144b2605cc0]

          1 Reply Last reply
          0
          • N
            N
            nicolas
            wrote on last edited by
            #6

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

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

            ?

            1 Reply Last reply
            0
            • N
              N
              nicolas
              wrote on last edited by
              #7

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

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

              ?

              1 Reply Last reply
              0
              • A
                A
                avayax
                wrote on last edited by
                #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
                ...
                ...

                1 Reply Last reply
                0
                • N
                  N
                  nicolas
                  wrote on last edited by
                  #9

                  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

                  1 Reply Last reply
                  0
                  • A
                    A
                    avayax
                    wrote on last edited by
                    #10

                    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?

                    1 Reply Last reply
                    0
                    • N
                      N
                      nicolas
                      wrote on last edited by
                      #11

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

                      1 Reply Last reply
                      0

                      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
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      Powered by NodeBB Contributors
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups