[asterisk-users] [1.4.39.2] Simple AGI doesn't reply

Gilles codecomplete at free.fr
Thu Feb 24 06:36:55 CST 2011


On Thu, 24 Feb 2011 11:56:25 +0100, Gilles <codecomplete at free.fr>
wrote:
>The following, dead simple Bash script ran as AGI doesn't reply to
>Asterisk:

Turns out Bash doesn't allow empty loops. This version does reply as
expected:

==============
#!/bin/bash
read line
while [[ "$line" != "" ]] ; do
    read line
done

echo "NOOP Here"
read line

exit 0
==============

HTH,




More information about the asterisk-users mailing list