Hey I forgot to tell you that I have vtiger asterisk connector. So when I run agi.sh I got following while outbound call.
Aug 23, 2018 5:53:18 AM org.asteriskjava.fastagi.DefaultAgiServer startup
INFO: Listening on *:4573.
Aug 23, 2018 5:53:39 AM org.asteriskjava.fastagi.DefaultAgiServer startup
INFO: Received connection from /13.127.240.181
Aug 23, 2018 5:53:39 AM org.asteriskjava.fastagi.AbstractAgiServer getPool
INFO: Thread pool started.
Aug 23, 2018 5:53:39 AM org.asteriskjava.fastagi.ResourceBundleMappingStrategy loadResourceBundle
INFO: Added mapping for 'incoming.agi' to class com.vtiger.apps.asterisk.agi.actions.IncomingCall
Aug 23, 2018 5:53:39 AM org.asteriskjava.fastagi.internal.AgiConnectionHandler runScript
INFO: Begin AgiScript com.vtiger.apps.asterisk.agi.actions.IncomingCall on Asterisk-Java DaemonPool-1-thread-1
Aug 23, 2018 5:53:39 AM com.vtiger.apps.asterisk.agi.b.b log
INFO: Asterisk Login Successfull
Aug 23, 2018 5:53:39 AM org.asteriskjava.manager.internal.ManagerConnectionImpl connect
INFO: Connecting to 172.26.5.19:5038
Aug 23, 2018 5:53:39 AM org.asteriskjava.manager.internal.ManagerConnectionImpl setProtocolIdentifier
INFO: Connected via Asterisk Call Manager/1.3
Aug 23, 2018 5:53:39 AM org.asteriskjava.manager.internal.ManagerConnectionImpl setProtocolIdentifier
WARNING: Unsupported protocol version 'Asterisk Call Manager/1.3'. Use at your own risk.
Aug 23, 2018 5:53:39 AM org.asteriskjava.manager.internal.EventBuilderImpl buildEvent
INFO: No event class registered for event type 'fullybooted', attributes: {privilege=system,all, event=FullyBooted, status=Fully Booted}. Please report at http://jira.reucon.org/browse/AJ
Aug 23, 2018 5:53:39 AM org.asteriskjava.manager.internal.ManagerConnectionImpl doLogin
INFO: Successfully logged in
Aug 23, 2018 5:53:41 AM org.asteriskjava.manager.internal.ManagerConnectionImpl doLogin
INFO: Determined Asterisk version: Asterisk 1.6
Aug 23, 2018 5:53:41 AM com.vtiger.apps.asterisk.agi.b.b log
INFO: org.asteriskjava.manager.event.ConnectEvent[dateReceived='Thu Aug 23 05:53:41 UTC 2018',server=null,protocolidentifier='Asterisk Call Manager/1.3',sequencenumber=null,timestamp=null,systemHashcode=863596444]
Aug 23, 2018 5:53:41 AM com.vtiger.apps.asterisk.agi.b.b log
INFO: Sending HTTP request to webapp
Aug 23, 2018 5:53:42 AM org.asteriskjava.manager.internal.AbstractBuilder setAttributes
WARNING: Unable to set property 'connectedlinename' to '<unknown>' on org.asteriskjava.manager.event.StatusEvent: no setter. Please report at http://jira.reucon.org/browse/AJ
Aug 23, 2018 5:53:42 AM org.asteriskjava.manager.internal.AbstractBuilder setAttributes
WARNING: Unable to set property 'connectedlinenum' to '7798600238' on org.asteriskjava.manager.event.StatusEvent: no setter. Please report at http://jira.reucon.org/browse/AJ
Aug 23, 2018 5:53:42 AM com.vtiger.apps.asterisk.agi.b.b log
INFO: org.asteriskjava.manager.event.StatusEvent[dateReceived='Thu Aug 23 05:53:42 UTC 2018',privilege='Call',server=null,calleridname=null,extension='7010',link=null,channel='SIP/7010-00000003',seconds='10',calleridnum='7798600238',context='vtiger_inbound',actionid=null,callerid='7798600238',state='Up',uniqueid='1535003612.3',channelstatedesc='Up',timestamp=null,variables=null,internalactionid='2062770836_6',bridgedchannel=null,priority='1',sequencenumber=null,channelstate='6',bridgeduniqueid=null,accountcode=null,account=null,systemHashcode=177010132]
Aug 23, 2018 5:53:42 AM com.vtiger.apps.asterisk.agi.b.b log
INFO: Started Manager Event
Aug 23, 2018 5:53:42 AM com.vtiger.apps.asterisk.agi.b.b log
INFO: Sending HTTP request to webapp
Aug 23, 2018 5:53:42 AM com.vtiger.apps.asterisk.agi.b.b log
INFO: Sending HTTP request to webapp
Aug 23, 2018 5:53:42 AM com.vtiger.apps.asterisk.agi.b.b log
INFO: org.asteriskjava.manager.event.StatusCompleteEvent[dateReceived='Thu Aug 23 05:53:42 UTC 2018',server=null,internalactionid='2062770836_6',sequencenumber=null,actionid=null,items='1',timestamp=null,systemHashcode=1999348286]
Aug 23, 2018 5:53:42 AM com.vtiger.apps.asterisk.agi.b.b log
INFO: Sending HTTP request to webapp
[Fatal Error] :1:1: Premature end of file.
Aug 23, 2018 5:53:42 AM com.vtiger.apps.asterisk.agi.b.c a
SEVERE: null
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
at com.vtiger.apps.asterisk.agi.b.c.a(SourceFile:48)
at com.vtiger.apps.asterisk.agi.actions.IncomingCall.process(SourceFile:55)
at com.vtiger.apps.asterisk.agi.actions.IncomingCall.service(SourceFile:26)
at org.asteriskjava.fastagi.internal.AgiConnectionHandler.runScript(AgiConnectionHandler.java:144)
at org.asteriskjava.fastagi.internal.AgiConnectionHandler.run(AgiConnectionHandler.java:116)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Aug 23, 2018 5:53:42 AM org.asteriskjava.manager.internal.EventBuilderImpl buildEvent
INFO: No event class registered for event type 'softhanguprequest', attributes: {channel=SIP/7010-00000003, cause=32, privilege=call,all, event=SoftHangupRequest, uniqueid=1535003612.3}. Please report at http://jira.reucon.org/browse/AJ
Aug 23, 2018 5:53:42 AM com.vtiger.apps.asterisk.agi.b.b log
SEVERE: Failed to authenticate Vtiger Secret Key
Aug 23, 2018 5:53:42 AM com.vtiger.apps.asterisk.agi.b.b log
INFO: Logging off from Asterisk
Aug 23, 2018 5:53:42 AM org.asteriskjava.manager.internal.ManagerReaderImpl run
INFO: Terminating reader thread: No more lines available: null
Aug 23, 2018 5:53:42 AM org.asteriskjava.manager.internal.ManagerConnectionImpl disconnect
INFO: Closing socket.
Aug 23, 2018 5:53:42 AM com.vtiger.apps.asterisk.agi.b.b log
INFO: Exiting from agi script
Aug 23, 2018 5:53:42 AM org.asteriskjava.fastagi.internal.AgiConnectionHandler runScript
INFO: End AgiScript com.vtiger.apps.asterisk.agi.actions.IncomingCall on Asterisk-Java DaemonPool-1-thread-1