pickup autoanswer

  1. 7 years ago
    Edited 7 years ago by AlexRS

    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?

    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.

  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.

  3. admin

    5 Jan 2017 Administrator

    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.

  4. Edited 7 years ago by AlexRS

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

  5. admin

    5 Jan 2017 Administrator Answer

    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.

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

  7. 5 years ago
    Deleted 5 years ago by avayax

or Sign Up to reply!