[Asterisk-java-users] how to avoid autohangup AGI
Brought to you by:
srt
From: Иван В. <ipv...@gm...> - 2016-03-14 08:45:38
|
Hello. Possible could somebody help me? I'm trying to use asterisk-java first time. public class TimeoutCalculation extends BaseAgiScript { public void service(AgiRequest request, AgiChannel channel) throws AgiException { channel.setVariable("dialTimeout", String.valueOf(20)); } [context] exten => _048XXXXXXX,1,Noop(NoOP) exten => _048XXXXXXX,n,AGI(agi://localhost/getTimeout.agi) but have issue with autohangup agi set debug on AGI Tx >> agi_network: yes AGI Tx >> agi_network_script: getTimeout.agi <SIP/2001-00000020>AGI Tx >> agi_request: agi://localhost/getTimeout.agi <SIP/2001-00000020>AGI Tx >> agi_channel: SIP/2001-00000020 ................................. <SIP/2001-00000020>AGI Rx << SET VARIABLE "dialTimeout" "20" <SIP/2001-00000020>AGI Tx >> 200 result=1 <SIP/2001-00000020>AGI Rx << SET VARIABLE "AJ_AGISTATUS" "SUCCESS" <SIP/2001-00000020>AGI Tx >> 200 result=1 -- <SIP/2001-00000020>AGI Script agi://localhost/getTimeout.agi completed, returning 0 <SIP/2001-00000020>AGI Tx >> HANGUP I don't understand why agi send HANGUP to asterisk? and unfortunately have not find how to disable auto hangup. tried to use channel.setAutoHangup(1000000); but HANGUP sent the same. |