Auto answer call on extension via special SIP header

Hello,

i have found this question in legacy forum (without answer), which describes exactly my problem.

Any idea how to resolve this?

Hello, sorry for mistakes English is not my native language. I have one interesting problem, I want to use Asterisk + CRM via third-party app which uses TAPI driver. I have installed xtelsio TAPI driver, it has an option "Answer via Special-Context-Self-Redirect ". There is an example which must be patched on Asterisk server:
Example AMI Redirect command to answer ringing call on 202. Caller=203:

Action: Redirect
Channel: SIP/203-09f7e4f0
Context: CTI_AUTO_ANSWER
Exten: 202
Priority: 1
ActionID: 8-srv06D1FFAF
Variable: SIPADDHEADER01=Call-Info: sip:;answer-after=0
The Asterisk has to process this action and should in result
send a new INVITE to extension 202 with auto-answer header.

I don`t know how implement it and I created context
[CTI_AUTO_ANSWER]
exten => _X.,1,SIPAddHeader(Call-Info:sip:; answer-after=0)
exten => _X.,n,Dial(SIP/${EXTEN},tT)

When i get incoming call and click answer button on third-party app it creates and starts a new call, and in history first call marked missed. Can somebody help me to create context which will be working without creating new call ?

This is a non-standard features, so the exact contents of the SIPAddHeader call will depend on the destination device. Your example is plausible.

For security reasons, hard phones normally need a configuration option setting before they will auto-answer.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.