On Thu, 24 Feb 2011, Gilles wrote:

No matter what I try, Asterisk still fails dialing back through a callfile built through an AGI script.

I don't think it has anything to do with the method used to create the call file.

======== AGI script
#!/var/tmp/lua

--Must first empty stdin
while true do
       local line = io.read()
       if line == "" then break end
       -- Without line below, script never ends
       io.write("NOOP ",line,"\n")
end

This script violates the AGI protocol.

In addition to suggesting to use an established library, I'd suggest picking a language and sticking with it. Personally, I use C because it's the sharpest tool in my toolbox.

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwa...@sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to