[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [5.1.4] Recommended way to work with Telnet server?
- From: Gilles Ganault <gilles.ganault@...>
- Date: Tue, 22 Feb 2011 14:05:30 +0100
On Tue, 22 Feb 2011 12:49:17 +0000, Rob Kendrick <firstname.lastname@example.org>
>If the server does not make use of out-of-band data or terminal control
>codes, then using LuaSocket would be trivial.
>You'll have lots of fun implementing the state machine to cope with
>Asterisk's hideous protocol, though. (Not all actions have IMAP-style
>tags, and not all of them provide responses, etc.) Been there, suffered
Thanks for the feedback. I need to use AMI just to make a call from an
AGI script, so hopefully, it won't be that hard.
I guess using the HTTP connection would be easier than Telnet. I've
been googling for half an hour but haven't found an example that shows
how to handle cookies. Does someone know if LuaSocket supports them,
or is there an add-on that I could use with LuaSocket?