[Asterisk-java-users] How to continue dialplan execution after autohangup?
Brought to you by:
srt
From: Murthy G. <mga...@nt...> - 2014-06-13 02:05:12
|
Hi Yves or anyone who cares to answer, I am using setAutoHangup(20) in my AGI script. Then I do a DB look up that can take potentially longer than 20 seconds as follows: try { setAutoHangup(20); call-a-very-long-db-access-method(); } catch (Exception e) { } In my dialplan I call the AGI as : exten = 2,n(lookup-agent), agi(agi://${JAVA-AGI-SERVER}/lookupAgent.agi) exten = 2,n, VERBOSE(back from agi) During testing I find that "back from agi" is never printed soon after 20 seconds. In other words, the agi call in the dial plan is waiting for the return from the service method in the LookupAgent. Is this a flaw or by design? How can I return from LookupAgent after 20 seconds without async? Thanks for your help. Murthy |