All Projects → antirek → Lua Dialplan

antirek / Lua Dialplan

Licence: mit
asterisk dialplan in extensions.lua

Programming Languages

lua
6591 projects

lua-dialplan

asterisk dialplan in extensions.lua

Prepare

  1. install lua

apt-get install lua5.2 liblua5.2-dev

  1. build asterisk with lua

  2. create symbolic link

ln -s /home/sergey/Projects/lua-dialplan/extensions.lua /etc/asterisk/extensions.lua

  1. install lua-rocks

apt-get install luarocks

  1. install additional lua libs

luarocks install luasocket

luarocks install redis-lua

  1. lua-rocks from ubuntu repo sucks

  2. reinstall lua-rocks from official site

$ wget http://luarocks.org/releases/luarocks-2.2.1.tar.gz
$ tar zxpf luarocks-2.2.1.tar.gz
$ cd luarocks-2.2.1
$ ./configure; sudo make bootstrap
$ sudo luarocks install luasocket
$ lua
Lua 5.3.0 Copyright (C) 1994-2015 Lua.org, PUC-Rio
> require "socket"

##Mongo

clone from https://github.com/moai/luamongo

also http://stackoverflow.com/questions/9794049/installing-luamongo-on-ubuntu-11-10

or?

luarocks

Files write/read

http://www.tutorialspoint.com/lua/lua_file_io.htm

File system

luarocks install luafilesystem

cool sample

https://gist.github.com/igmar/4066527

Requirements

luafilesystem

luamongo

@todo: docker image with lua env

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].