Skip to content
asterisk dialplan in extensions.lua
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.gitignore
LICENSE
README.md
config.lua change extensions.lua Oct 6, 2015
dialplan-0.0-1.rockspec
extensions.lua
main.lua

README.md

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

You can’t perform that action at this time.