On Thu, 24 Feb 2011 08:27:13 -0800 (PST), Steve Edwards
wrote:
>Bash has a thing about syntax too. Note you're not 'done' with your second
>loop.
Sorry about this :-/
--
_
-- Bandwidth and Colocation Provided by http://www.api
On Thu, 24 Feb 2011, Gilles wrote:
= /var/tmp/basic.agi
#!/bin/bash
#Ripped from
#http://lists.digium.com/pipermail/asterisk-users/2003-July/008554.html
while read -e ARG && [ "$ARG" ] ; do
done
echo "NOOP Here"
while read line
do
On Thu, 24 Feb 2011, Gilles wrote:
Turns out B
On Thu, 24 Feb 2011 11:56:25 +0100, Gilles
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
Hello
The following, dead simple Bash script ran as AGI doesn't reply to
Asterisk:
= extensions.conf
[from_fxo]
exten => s,1,Wait(2)
exten => s,n,Set(CID=${CALLERID(num)})
exten => s,n,AGI(/var/tmp/basic.agi)
exten => s,n,Hangup()
= /var/tmp/basic.agi
#!/bin/bash
#Ripped