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. pickup autoanswer

pickup autoanswer

Scheduled Pinned Locked Moved Support
7 Posts 3 Posters 321 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.
  • A
    A
    AlexRS
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • A
      A
      AlexRS
      wrote on last edited by
      #2

      And I change

      exten = _.,n
      

      to

      exten = _X.,n
      

      Bacause asterisk warning:

      WARNING[13128]: pbx_config.c:1837 pbx_load_config: The use of '_.' for an extension is strongly discouraged and can have unexpected behavior.  Please use '_X.'
      

      Is it ok? At first sight all works.

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

        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.

        1 Reply Last reply
        0
        • A
          A
          AlexRS
          wrote on last edited by
          #4

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

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

            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.

            1 Reply Last reply
            0
            • A
              A
              AlexRS
              wrote on last edited by
              #6

              Thank you for reply! Yes, I use clear asterisk. because of this to many questions..

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

                @AlexRS , can you show me how your whole dial plan in custom-fop2-autoanswer-redirect looks like?
                If you are using FreePBX, is that context in extensions_custom.conf or somewhere else?

                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