Re: [asterisk-users] LUA
From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Daniel Taylor Sent: Thursday, July 18, 2013 11:05 AM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] LUA On 07/18/2013 08:56 AM, jacob.e.mi...@l-3com.com wrote: I am attempting to setup my server to use Lua for the dialplan (extentions.lua), but I am unable to get the asterisk configure script to find the installation of Lua on my box. I have downloaded the Lua sources from the www.lua.org site, and I have installed via the make linux install command. I can execute lua scripts via the command line, but asterisk configure script is unable to find the installation of Lua. I am on a closed network, so no access to the internet so I am not able to just install Lua using yum. OS CentOS 6.4 Asterisk version 1.8.13.0 11.4 $ find / -name *lua* /usr/local/include/lua.h /usr/local/include/lua.hpp /usr/local/include/lualib.h /usr/local/include/luaconf.h /usr/local/lib/lua /usr/local/lib/liblua.a /usr/local/bin/luac /usr/local/bin/lua /usr/lib64/liblua-5.1.so /usr/bin/luac /usr/bin/lua You don't mention it here, so I have to ask if you tried using --with-lua=/usr/local as an argument to configure. -- Dan Sorry it has taken me so long to get back to this, but I have tried the -with-lua=/usr/local but I would get an error during the configure script, something about LUA being broken or not present. I was able to get approval to download the rpms for lua lua-devel and move them to the system using a USB drive. After running the make linux uninstall on the source installation, and then install both RPMs for lua everything is work correctly now. Thanks for all the help, I would still like to see the configure script work correctly on a source install rather than just with the RPMs. Jacob -- _ -- 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
[asterisk-users] LUA
I am attempting to setup my server to use Lua for the dialplan (extentions.lua), but I am unable to get the asterisk configure script to find the installation of Lua on my box. I have downloaded the Lua sources from the www.lua.org site, and I have installed via the make linux install command. I can execute lua scripts via the command line, but asterisk configure script is unable to find the installation of Lua. I am on a closed network, so no access to the internet so I am not able to just install Lua using yum. OS CentOS 6.4 Asterisk version 1.8.13.0 11.4 $ find / -name *lua* /usr/local/include/lua.h /usr/local/include/lua.hpp /usr/local/include/lualib.h /usr/local/include/luaconf.h /usr/local/lib/lua /usr/local/lib/liblua.a /usr/local/bin/luac /usr/local/bin/lua /usr/lib64/liblua-5.1.so /usr/bin/luac /usr/bin/lua Jacob Miles Software Engineer jacob.e.mi...@l-3com.com 903.457.4422 image001.png-- _ -- 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
Re: [asterisk-users] LUA
On 07/18/2013 09:56 AM, jacob.e.mi...@l-3com.com wrote: I am attempting to setup my server to use Lua for the dialplan (extentions.lua), but I am unable to get the asterisk configure script to find the installation of Lua on my box. I have downloaded the Lua sources from the www.lua.org site, and I have installed via the make linux install command. I can execute lua scripts via the command line, but asterisk configure script is unable to find the installation of Lua. I am on a closed network, so no access to the internet so I am not able to just install Lua using yum. you're kidding right ? Why not just plug in the box somewhere else, do your install and move it back ? OS CentOS 6.4 Asterisk version 1.8.13.0 11.4 $ find / -name *lua* /usr/local/include/lua.h /usr/local/include/lua.hpp /usr/local/include/lualib.h /usr/local/include/luaconf.h /usr/local/lib/lua /usr/local/lib/liblua.a /usr/local/bin/luac /usr/local/bin/lua /usr/lib64/liblua-5.1.so /usr/bin/luac /usr/bin/lua Jacob Miles Software Engineer jacob.e.mi...@l-3com.com 903.457.4422 -- _ -- 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 -- _ -- 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
Re: [asterisk-users] LUA
From: jon pounder j...@inline.net To: asterisk-users@lists.digium.com, Date: 07/18/2013 09:00 AM Subject:Re: [asterisk-users] LUA Sent by:asterisk-users-boun...@lists.digium.com On 07/18/2013 09:56 AM, jacob.e.mi...@l-3com.com wrote: I am attempting to setup my server to use Lua for the dialplan (extentions.lua), but I am unable to get the asterisk configure script to find the installation of Lua on my box. I have downloaded the Lua sources from the www.lua.org site, and I have installed via the “make linux install” command. I can execute lua scripts via the command line, but asterisk configure script is unable to find the installation of Lua. I am on a closed network, so no access to the internet so I am not able to just install Lua using yum. you're kidding right ? Why not just plug in the box somewhere else, do your install and move it back ? OS CentOS 6.4 Asterisk version 1.8.13.0 11.4 $ find / -name *lua* /usr/local/include/lua.h /usr/local/include/lua.hpp /usr/local/include/lualib.h /usr/local/include/luaconf.h /usr/local/lib/lua /usr/local/lib/liblua.a /usr/local/bin/luac /usr/local/bin/lua /usr/lib64/liblua-5.1.so /usr/bin/luac /usr/bin/lua Jacob Miles Software Engineer jacob.e.mi...@l-3com.com 903.457.4422 While a valid question, I have worked with clients on a closed military base where temporarily moving a box that has been secured back to an unsecured network would get you thrown off base and most likely result in criminal charges being filed. Not saying that is what Jacob is up against, but there are reasons that once a box is put somewhere you can't just move it back. image/png-- _ -- 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
Re: [asterisk-users] LUA
On 18/07/2013 10:00 AM, jon pounder wrote: On 07/18/2013 09:56 AM, jacob.e.mi...@l-3com.com wrote: I am attempting to setup my server to use Lua for the dialplan (extentions.lua), but I am unable to get the asterisk configure script to find the installation of Lua on my box. I have downloaded the Lua sources from the www.lua.org site, and I have installed via the make linux install command. I can execute lua scripts via the command line, but asterisk configure script is unable to find the installation of Lua. I am on a closed network, so no access to the internet so I am not able to just install Lua using yum. you're kidding right ? Why not just plug in the box somewhere else, do your install and move it back ? If you can not do that, you can make a yum repo on your isolated computer. You will need to download the RPMs and put them in your repo. Once you have done that, yum will be happy to use it. yum is set up to have a number of repos configured and a local one is just fine. Ron OS CentOS 6.4 Asterisk version 1.8.13.0 11.4 $ find / -name *lua* /usr/local/include/lua.h /usr/local/include/lua.hpp /usr/local/include/lualib.h /usr/local/include/luaconf.h /usr/local/lib/lua /usr/local/lib/liblua.a /usr/local/bin/luac /usr/local/bin/lua /usr/lib64/liblua-5.1.so /usr/bin/luac /usr/bin/lua Jacob Miles Software Engineer jacob.e.mi...@l-3com.com 903.457.4422 -- _ -- 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 -- _ -- 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 -- Ron Wheeler President Artifact Software Inc email: rwhee...@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 -- _ -- 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
Re: [asterisk-users] LUA
I suspected that the restriction might be policy rather than technical. Is there anything that guides the loading of software via USB or DVDs on isolated machines or is my suggestion about a local yum repo, a workable solution? Ron On 18/07/2013 10:04 AM, Kevin Larsen wrote: From: jon pounder j...@inline.net To: asterisk-users@lists.digium.com, Date: 07/18/2013 09:00 AM Subject: Re: [asterisk-users] LUA Sent by: asterisk-users-boun...@lists.digium.com On 07/18/2013 09:56 AM, jacob.e.mi...@l-3com.com wrote: I am attempting to setup my server to use Lua for the dialplan (extentions.lua), but I am unable to get the asterisk configure script to find the installation of Lua on my box. I have downloaded the Lua sources from the www.lua.org site, and I have installed via the make linux install command. I can execute lua scripts via the command line, but asterisk configure script is unable to find the installation of Lua. I am on a closed network, so no access to the internet so I am not able to just install Lua using yum. you're kidding right ? Why not just plug in the box somewhere else, do your install and move it back ? OS CentOS 6.4 Asterisk version 1.8.13.0 11.4 $ find / -name *lua* /usr/local/include/lua.h /usr/local/include/lua.hpp /usr/local/include/lualib.h /usr/local/include/luaconf.h /usr/local/lib/lua /usr/local/lib/liblua.a /usr/local/bin/luac /usr/local/bin/lua /usr/lib64/liblua-5.1.so /usr/bin/luac /usr/bin/lua Jacob Miles Software Engineer jacob.e.mi...@l-3com.com 903.457.4422 While a valid question, I have worked with clients on a closed military base where temporarily moving a box that has been secured back to an unsecured network would get you thrown off base and most likely result in criminal charges being filed. Not saying that is what Jacob is up against, but there are reasons that once a box is put somewhere you can't just move it back. -- _ -- 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 -- Ron Wheeler President Artifact Software Inc email: rwhee...@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 -- _ -- 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
Re: [asterisk-users] LUA
On 07/18/2013 03:56 PM, jacob.e.mi...@l-3com.com wrote: I am attempting to setup my server to use Lua for the dialplan (extentions.lua), but I am unable to get the asterisk configure script to find the installation of Lua on my box. I have downloaded the Lua sources from the www.lua.org site, and I have installed via the “make linux install” command. I can execute lua scripts via the command line, but asterisk configure script is unable to find the installation of Lua. That's probably because Asterisk is not looking in /usr/local. I am on a closed network, so no access to the internet so I am not able to just install Lua using yum. You should have downloaded the lua RPMs to e.g. your laptop, then copy them to your Asterisk box with e.g. a USB stick and then install the Lua RPMs on your Asterisk box with: $ sudo yum install ./lua* You can find the CentOS 6.4 x86_64 Lua RPMs here: http://mirror.stanford.edu/yum/pub/centos/6.4/os/x86_64/Packages/ Regards, Patrick -- _ -- 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
Re: [asterisk-users] LUA
On Thu, Jul 18, 2013 at 10:29 AM, Patrick Lists asterisk-l...@puzzled.xs4all.nl wrote: On 07/18/2013 03:56 PM, jacob.e.mi...@l-3com.com wrote: I am attempting to setup my server to use Lua for the dialplan (extentions.lua), but I am unable to get the asterisk configure script to find the installation of Lua on my box. I have downloaded the Lua sources from the www.lua.org site, and I have installed via the “make linux install” command. I can execute lua scripts via the command line, but asterisk configure script is unable to find the installation of Lua. That's probably because Asterisk is not looking in /usr/local. I am on a closed network, so no access to the internet so I am not able to just install Lua using yum. You should have downloaded the lua RPMs to e.g. your laptop, then copy them to your Asterisk box with e.g. a USB stick and then install the Lua RPMs on your Asterisk box with: $ sudo yum install ./lua* You can find the CentOS 6.4 x86_64 Lua RPMs here: http://mirror.stanford.edu/yum/pub/centos/6.4/os/x86_64/Packages/ Is lua self-sufficient or does it require additional packages? Regards, Patrick -- _ -- 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 -- _ -- 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
Re: [asterisk-users] LUA
I am attempting to setup my server to use Lua for the dialplan (extentions.lua), but I am unable to get the asterisk configure script to find the installation of Lua on my box. I have downloaded the Lua sources from the www.lua.org http://www.lua.org/ site, and I have installed via the “make linux install” command. I can execute lua scripts via the command line, but asterisk configure script is unable to find the installation of Lua. I am on a closed network, so no access to the internet so I am not able to just install Lua using yum. you're kidding right ? Why not just plug in the box somewhere else, do your install and move it back ? OS CentOS 6.4 Asterisk version 1.8.13.0 11.4 $ find / -name *lua* /usr/local/include/lua.h /usr/local/include/lua.hpp /usr/local/include/lualib.h /usr/local/include/luaconf.h /usr/local/lib/lua /usr/local/lib/liblua.a /usr/local/bin/luac /usr/local/bin/lua /usr/lib64/liblua-5.1.so /usr/bin/luac /usr/bin/lua Jacob Miles Software Engineer jacob.e.mi...@l-3com.com mailto:jacob.e.mi...@l-3com.com 903.457.4422 While a valid question, I have worked with clients on a closed military base where temporarily moving a box that has been secured back to an unsecured network would get you thrown off base and most likely result in criminal charges being filed. Not saying that is what Jacob is up against, but there are reasons that once a box is put somewhere you can't just move it back. This is very close to why I am unable to move the box to an open network connection. As well I do not have access to create/install my own yum repo, I am stuck using the box as it is. Is there a reason why the configure script does not find Lua in its default installation directory? Yes, I know that some distros package managers will install packages into difference locations based on how the install package was configured and created. But as a default I would think the configure script should look for items where the actual developer of product places them via their install script. What steps would I need to do to get the configure script to look in the correct location for a default installation of Lua from source. Or what location is the configure script looking for the Lua file to be in and I can manually move them to where asterisk is looking. Maybe the files are in the correct location but are named differently than what the script is looking for? Jacob image001.png-- _ -- 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
Re: [asterisk-users] LUA
On Thursday 18 July 2013, jacob.e.mi...@l-3com.com wrote: I am attempting to setup my server to use Lua for the dialplan (extentions.lua), but I am unable to get the asterisk configure script to find the installation of Lua on my box. I have downloaded the Lua sources from the www.lua.org site, and I have installed via the make linux install command. I can execute lua scripts via the command line, but asterisk configure script is unable to find the installation of Lua. I am on a closed network, so no access to the internet so I am not able to just install Lua using yum. OS CentOS 6.4 Asterisk version 1.8.13.0 11.4 $ find / -name *lua* /usr/local/include/lua.h /usr/local/include/lua.hpp /usr/local/include/lualib.h /usr/local/include/luaconf.h /usr/local/lib/lua /usr/local/lib/liblua.a /usr/local/bin/luac /usr/local/bin/lua /usr/lib64/liblua-5.1.so /usr/bin/luac /usr/bin/lua It probably doesn't help much that you have both a Lua built from Source Code in /usr/local/ (which will definitely have all the developers' files you would have got from installing lua-devel), and what looks like a precompiled Lua in /usr/ (which is missing them). Try # ldconfig to force the machine to sort out its libraries; then cd back into your Asterisk source tree and run # ./configure --with-lua=/usr/local/ to force the Asterisk configure script to use the Lua you built from Source and which will have all the development files. -- AJS Answers come *after* questions. -- _ -- 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
Re: [asterisk-users] LUA
On 07/18/2013 08:56 AM, jacob.e.mi...@l-3com.com wrote: I am attempting to setup my server to use Lua for the dialplan (extentions.lua), but I am unable to get the asterisk configure script to find the installation of Lua on my box. I have downloaded the Lua sources from the www.lua.org site, and I have installed via the make linux install command. I can execute lua scripts via the command line, but asterisk configure script is unable to find the installation of Lua. I am on a closed network, so no access to the internet so I am not able to just install Lua using yum. OS CentOS 6.4 Asterisk version 1.8.13.0 11.4 $ find / -name **lua** /usr/local/include/lua.h /usr/local/include/lua.hpp /usr/local/include/lualib.h /usr/local/include/luaconf.h /usr/local/lib/lua /usr/local/lib/liblua.a /usr/local/bin/luac /usr/local/bin/lua /usr/lib64/liblua-5.1.so /usr/bin/luac /usr/bin/lua You don't mention it here, so I have to ask if you tried using --with-lua=/usr/local as an argument to configure. -- Dan -- _ -- 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
[asterisk-users] LUA Compile Issues on Asterisk 11.4.0
Hi, I was attempting to play with LUA in Asterisk, but couldn't compile 11.4.0 stable with LUA on my test box running CentOS 5.5 64bit. I've download lua-5.1 from lua.org, and have used the following as ./configure: ./configure --prefix=/usr/local/asterisk-11.4.0 --with-lua=/usr/src/asterisk/lua-5.1/src This runs well, and creates this output: http://pastebin.com/iKW707Bt Now, when I move to make, the output stops with a LUA error. I'm pasting the full output here: http://pastebin.com/fihfZZ9R Can someone provide me some clues on why this is happening? Regards HASSAN -- _ -- 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
Re: [asterisk-users] lua -asterisk manual
Hi again Could anybody pls share some thoughts about dialplan in lua? I mean some say it works faster...I have tested my dialplan with pbx_config (extensions.conf) , then with ael. Dialplan is not very complex (just some selects in mysql, then based on select some if, then...etc) I think it is just easier to use some script language to program it. Does anyone know any drawbacks for using lua? Does it work stable with asterisk? And for example why lua and not just ael? Ael seams also being convenient. On Fri, Feb 18, 2011 at 3:51 PM, Borin katerin.bo...@gmail.com wrote: Pls could you share some lua config which contains mysql quires On Fri, Feb 18, 2011 at 3:38 PM, Faisal Hanif fai...@vopium.com wrote: The only specific you need to do in extensions.lua is create a table to put your extensions in like, Extension{ } Else all will be LUA code and all asterisk applications can be called as app.application_name. Regards, Faisal Hanif *From:* asterisk-users-boun...@lists.digium.com [mailto: asterisk-users-boun...@lists.digium.com] *On Behalf Of *Borin *Sent:* Friday, February 18, 2011 4:33 PM *To:* asterisk-users@lists.digium.com *Subject:* [asterisk-users] lua -asterisk manual Please could someone advise good manual for using lua for asterisk dialplan. There is not much docu about it. -- _ -- 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 -- _ -- 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
[asterisk-users] lua -asterisk manual
Please could someone advise good manual for using lua for asterisk dialplan. There is not much docu about it. -- _ -- 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
Re: [asterisk-users] lua -asterisk manual
The only specific you need to do in extensions.lua is create a table to put your extensions in like, Extension{ } Else all will be LUA code and all asterisk applications can be called as app.application_name. Regards, Faisal Hanif From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Borin Sent: Friday, February 18, 2011 4:33 PM To: asterisk-users@lists.digium.com Subject: [asterisk-users] lua -asterisk manual Please could someone advise good manual for using lua for asterisk dialplan. There is not much docu about it. -- _ -- 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
Re: [asterisk-users] lua -asterisk manual
Pls could you share some lua config which contains mysql quires On Fri, Feb 18, 2011 at 3:38 PM, Faisal Hanif fai...@vopium.com wrote: The only specific you need to do in extensions.lua is create a table to put your extensions in like, Extension{ } Else all will be LUA code and all asterisk applications can be called as app.application_name. Regards, Faisal Hanif *From:* asterisk-users-boun...@lists.digium.com [mailto: asterisk-users-boun...@lists.digium.com] *On Behalf Of *Borin *Sent:* Friday, February 18, 2011 4:33 PM *To:* asterisk-users@lists.digium.com *Subject:* [asterisk-users] lua -asterisk manual Please could someone advise good manual for using lua for asterisk dialplan. There is not much docu about it. -- _ -- 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 -- _ -- 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
Re: [asterisk-users] Lua extensions are not working on asterisk 1.8.2.3
I was messing with something in conf dir. I reinstalled asterisk and removed extensions.conf and lua extensions is working now. I think lua in dialplan is a killer feature. It enables complex apps to be done in a much easier way now. 2011/2/16 Faisal Hanif fai...@vopium.com: You may need to share your LUA code and the extension your call is need to execute. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Carlo Pires Sent: Wednesday, February 16, 2011 3:29 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Lua extensions are not working on asterisk 1.8.2.3 But when I try to call one extension created with lua I got a message telling that extension doesnt exist on default context. Am I missing something? 2011/2/15 Tilghman Lesher tilgh...@meg.abyt.es: On Tuesday 15 February 2011 11:06:32 Carlo Pires wrote: Hi, After compiling a installing asterisk 1.8.2.3 I wanted to play with lua but I noticed that extensions created in extensions.lua was not being registered with asterisk. uga1*CLI dialplan show [ Context 'app_queue_gosub_virtual_context' created by 'app_queue' ] 's' = 1. NoOp() [app_queue] [ Context 'parkedcalls' created by 'features' ] '700' = 1. Park() [features] [ Context 'app_dial_gosub_virtual_context' created by 'app_dial' ] 's' = 1. NoOp() [app_dial] [ Context 'local' created by 'pbx_lua' ] Alt. Switch = 'Lua/' [pbx_lua] [ Context 'demo' created by 'pbx_lua' ] Alt. Switch = 'Lua/' [pbx_lua] [ Context 'default' created by 'pbx_lua' ] Alt. Switch = 'Lua/' [pbx_lua] -= 3 extensions (3 priorities) in 6 contexts. =- uga1*CLI uga1*CLI dialplan show demo [ Context 'demo' created by 'pbx_lua' ] Alt. Switch = 'Lua/' [pbx_lua] -= 0 extensions (0 priorities) in 1 context. =- uga1*CLI Need I enable something to get lua extensions to be created? No, that's how Lua extensions work, with the switch statement. Your extensions are still being evaluated by Lua. The only difference is that pbx_lua now doesn't see any need to create extensions, because it will see every extension when it hits the switch. -- Tilghman -- _ -- 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 -- _ -- 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 -- _ -- 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 -- _ -- 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
[asterisk-users] Lua extensions are not working on asterisk 1.8.2.3
Hi, After compiling a installing asterisk 1.8.2.3 I wanted to play with lua but I noticed that extensions created in extensions.lua was not being registered with asterisk. uga1*CLI dialplan show [ Context 'app_queue_gosub_virtual_context' created by 'app_queue' ] 's' =1. NoOp() [app_queue] [ Context 'parkedcalls' created by 'features' ] '700' = 1. Park() [features] [ Context 'app_dial_gosub_virtual_context' created by 'app_dial' ] 's' =1. NoOp() [app_dial] [ Context 'local' created by 'pbx_lua' ] Alt. Switch ='Lua/'[pbx_lua] [ Context 'demo' created by 'pbx_lua' ] Alt. Switch ='Lua/'[pbx_lua] [ Context 'default' created by 'pbx_lua' ] Alt. Switch ='Lua/'[pbx_lua] -= 3 extensions (3 priorities) in 6 contexts. =- uga1*CLI uga1*CLI dialplan show demo [ Context 'demo' created by 'pbx_lua' ] Alt. Switch ='Lua/'[pbx_lua] -= 0 extensions (0 priorities) in 1 context. =- uga1*CLI Need I enable something to get lua extensions to be created? -- _ -- 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
Re: [asterisk-users] Lua extensions are not working on asterisk 1.8.2.3
On Tuesday 15 February 2011 11:06:32 Carlo Pires wrote: Hi, After compiling a installing asterisk 1.8.2.3 I wanted to play with lua but I noticed that extensions created in extensions.lua was not being registered with asterisk. uga1*CLI dialplan show [ Context 'app_queue_gosub_virtual_context' created by 'app_queue' ] 's' =1. NoOp() [app_queue] [ Context 'parkedcalls' created by 'features' ] '700' = 1. Park() [features] [ Context 'app_dial_gosub_virtual_context' created by 'app_dial' ] 's' =1. NoOp() [app_dial] [ Context 'local' created by 'pbx_lua' ] Alt. Switch ='Lua/' [pbx_lua] [ Context 'demo' created by 'pbx_lua' ] Alt. Switch ='Lua/' [pbx_lua] [ Context 'default' created by 'pbx_lua' ] Alt. Switch ='Lua/' [pbx_lua] -= 3 extensions (3 priorities) in 6 contexts. =- uga1*CLI uga1*CLI dialplan show demo [ Context 'demo' created by 'pbx_lua' ] Alt. Switch ='Lua/' [pbx_lua] -= 0 extensions (0 priorities) in 1 context. =- uga1*CLI Need I enable something to get lua extensions to be created? No, that's how Lua extensions work, with the switch statement. Your extensions are still being evaluated by Lua. The only difference is that pbx_lua now doesn't see any need to create extensions, because it will see every extension when it hits the switch. -- Tilghman -- _ -- 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
Re: [asterisk-users] Lua extensions are not working on asterisk 1.8.2.3
But when I try to call one extension created with lua I got a message telling that extension doesnt exist on default context. Am I missing something? 2011/2/15 Tilghman Lesher tilgh...@meg.abyt.es: On Tuesday 15 February 2011 11:06:32 Carlo Pires wrote: Hi, After compiling a installing asterisk 1.8.2.3 I wanted to play with lua but I noticed that extensions created in extensions.lua was not being registered with asterisk. uga1*CLI dialplan show [ Context 'app_queue_gosub_virtual_context' created by 'app_queue' ] 's' = 1. NoOp() [app_queue] [ Context 'parkedcalls' created by 'features' ] '700' = 1. Park() [features] [ Context 'app_dial_gosub_virtual_context' created by 'app_dial' ] 's' = 1. NoOp() [app_dial] [ Context 'local' created by 'pbx_lua' ] Alt. Switch = 'Lua/' [pbx_lua] [ Context 'demo' created by 'pbx_lua' ] Alt. Switch = 'Lua/' [pbx_lua] [ Context 'default' created by 'pbx_lua' ] Alt. Switch = 'Lua/' [pbx_lua] -= 3 extensions (3 priorities) in 6 contexts. =- uga1*CLI uga1*CLI dialplan show demo [ Context 'demo' created by 'pbx_lua' ] Alt. Switch = 'Lua/' [pbx_lua] -= 0 extensions (0 priorities) in 1 context. =- uga1*CLI Need I enable something to get lua extensions to be created? No, that's how Lua extensions work, with the switch statement. Your extensions are still being evaluated by Lua. The only difference is that pbx_lua now doesn't see any need to create extensions, because it will see every extension when it hits the switch. -- Tilghman -- _ -- 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 -- _ -- 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
Re: [asterisk-users] Lua extensions are not working on asterisk 1.8.2.3
You may need to share your LUA code and the extension your call is need to execute. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Carlo Pires Sent: Wednesday, February 16, 2011 3:29 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Lua extensions are not working on asterisk 1.8.2.3 But when I try to call one extension created with lua I got a message telling that extension doesnt exist on default context. Am I missing something? 2011/2/15 Tilghman Lesher tilgh...@meg.abyt.es: On Tuesday 15 February 2011 11:06:32 Carlo Pires wrote: Hi, After compiling a installing asterisk 1.8.2.3 I wanted to play with lua but I noticed that extensions created in extensions.lua was not being registered with asterisk. uga1*CLI dialplan show [ Context 'app_queue_gosub_virtual_context' created by 'app_queue' ] 's' = 1. NoOp() [app_queue] [ Context 'parkedcalls' created by 'features' ] '700' = 1. Park() [features] [ Context 'app_dial_gosub_virtual_context' created by 'app_dial' ] 's' = 1. NoOp() [app_dial] [ Context 'local' created by 'pbx_lua' ] Alt. Switch = 'Lua/' [pbx_lua] [ Context 'demo' created by 'pbx_lua' ] Alt. Switch = 'Lua/' [pbx_lua] [ Context 'default' created by 'pbx_lua' ] Alt. Switch = 'Lua/' [pbx_lua] -= 3 extensions (3 priorities) in 6 contexts. =- uga1*CLI uga1*CLI dialplan show demo [ Context 'demo' created by 'pbx_lua' ] Alt. Switch = 'Lua/' [pbx_lua] -= 0 extensions (0 priorities) in 1 context. =- uga1*CLI Need I enable something to get lua extensions to be created? No, that's how Lua extensions work, with the switch statement. Your extensions are still being evaluated by Lua. The only difference is that pbx_lua now doesn't see any need to create extensions, because it will see every extension when it hits the switch. -- Tilghman -- _ -- 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 -- _ -- 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 -- _ -- 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
Re: [asterisk-users] Lua status in asterisk.
On Tue, 2010-02-09 at 11:26 +0100, Tommy Botten Jensen wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi I have searched a bit for information regarding the status on the dialplan in lua (pbx_lua.so). I know that 'hint' won't work and has to be put in the regular extensions.conf/ael. Are there any other considerations? Features that are not implemented, or known stability issues? Check the issue tracker. There are some applications that work differently in pbx_lua than the do in extensions.conf. Specifically any applications that jump to a different extension or priority will behave strangely in pbx_lua. Goto (goto, gotoif, etc) is the most effected, but you should not need to use Goto in pbx_lua as you have access to better ways to manage control flow. Beyond that, things should work mostly as they do in extensions.conf. -- Matthew Nicholson Digium, Inc. | Software Developer -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Lua status in asterisk.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi I have searched a bit for information regarding the status on the dialplan in lua (pbx_lua.so). I know that 'hint' won't work and has to be put in the regular extensions.conf/ael. Are there any other considerations? Features that are not implemented, or known stability issues? Thanks, Tommy Botten Jensen -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREKAAYFAktxOEwACgkQ573V05EH/pYEmACbBBRVFjp0M14dJKc1sdhSatmM SaQAoMS1jyVyyJokqgzhbfkYo7x6OCHO =TZ4p -END PGP SIGNATURE- -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users