[Asterisk-java-users] SetVarAction
Brought to you by:
srt
From: matthieu h. <mat...@gm...> - 2013-07-23 07:49:45
|
Hi every one, I use Asterisk 11.2.1 with asterisk-java1.0.0.0. and snom360. I want to send an action to auto-answer a channel when it ring. Before that, I use the patch below to auto answer an originate action: http://www.xtelsio.com/hlp/de/ast/chan_sip.c.patch-originate-auto-answer.txt It works fine for an originate action. I want to use the same variable to auto answer the snom360 when it is called by a queue. I try setVarAction to do it: SetVarAction action = new SetVarAction(); action.setChannel(Client.getChannel()); action.setVariable("AUTO_ANSWER_A"); action.setValue("1"); I send this action when phone ring. What is wrong in this action? I find this: SIPAddHeader(Call-Info:<sip:domain>\;answer-after=0) How can I use it with setVarAction? Thanks for your response, Matthieu |