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.
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
Asterisk-java-users mailing list
Asterisk-java-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/asterisk-java-users

Reply via email to