res_agi: async_agi responsiveness improvement on datastore problems
authorJonathan Rose <jrose@digium.com>
Tue, 25 Sep 2012 14:53:42 +0000 (14:53 +0000)
committerJonathan Rose <jrose@digium.com>
Tue, 25 Sep 2012 14:53:42 +0000 (14:53 +0000)
commit39b78f6250ce890f28b59e1ae9f9c3c95cbf8176
tree8ed77faaa30292808c3bbc7d84f6ac63fb2c3fcd
parentd9d7b1f3e3e32aa9cf0d8469607bfeaa5df6a15d
res_agi: async_agi responsiveness improvement on datastore problems

This patch changes get_agi_cmd so that the return can be checked
to differentiate between an empty list success and something that
triggered an error. This in turn allows launch_asyncagi to detect
these errors and break free from the command processing loop so
that the async agi can be ended more cleanly

(closes issue ASTERISK-20109)
Reported by: Jeremiah Gowdy
Patches: jgowdy-7-9-2012.diff uploaded by Jeremiah Gowdy (license 6358)
           (Modified by me to fix some logical issues and apply to trunk)
Review: https://reviewboard.asterisk.org/r/2117/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@373608 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_agi.c