]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
launch_netscript sometimes returns -1, which fails to set AGISTATUS. Map
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 30 Jul 2008 19:03:44 +0000 (19:03 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 30 Jul 2008 19:03:44 +0000 (19:03 +0000)
failure to -1, so that AGISTATUS is always set.
(closes issue #13199)
 Reported by: smw1218

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@134480 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_agi.c

index ea1f329d272fcdb90941507caafc8f4537fe9ac6..20bb9331b806eae282638c94189206f7c1055de2 100644 (file)
@@ -112,9 +112,9 @@ static int agidebug = 0;
 #define AGI_PORT 4573
 
 enum agi_result {
+       AGI_RESULT_FAILURE = -1,
        AGI_RESULT_SUCCESS,
        AGI_RESULT_SUCCESS_FAST,
-       AGI_RESULT_FAILURE,
        AGI_RESULT_HANGUP
 };