Skip to content

antirek/lua-dialplan

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 

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

About

asterisk dialplan in extensions.lua

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages