Displaying 20 results from an estimated 20000 matches similar to: "Asterisk 1.6 and LUA"
2011 Feb 15
1
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
2011 Feb 24
1
extensions.lua with luasql.mysql.
Hi to all!
I'm trying to create a context for integration with extensions.lua and
libsql.mysql, but I'm not getting to run. When I reload the module
pbx_lua.so the following error appears:
[Feb 24 16:59:29] ERROR[30749]: pbx_lua.c:1249 exec: Error executing lua
extension: error loading module 'luasql.mysql' from file
'/usr/lib/lua/5.1/luasql/mysql.so':
2009 Aug 17
2
Accessing Asterisk gosub arguments in extensions.lua
How does one go about accessing gosub arguments from Asterisk in
extensions.lua?
For example, I have the following in extensions.conf:
exten => 1000,1,Wait(1)
exten => 1000,n,Gosub(functions,mytest,1("123"))
exten => 1000,n,Hangup
And then the following in extensions.lua:
extensions = {
functions = {
["mytest"] = function()
2010 Jun 30
2
Pbx_lua vs. calling lua thru AGI?
Hello
I'm taking a look at how to write scripts to be called from the
dialplan, and saw pbx_lua mentioned.
I'd like to know more about this feature, such as what the difference
is with just calling the Lua interpreter through AGI (same difference
as between php-cgi and mod_php?), whether it's production-ready, etc.
Thank you for any help.
2010 Feb 09
1
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
2010 Jul 26
1
PBX Lua with Asterisk ODBC
Hi All,
I have a quick question with regards the pbx_lua module.
Would the lua dialplan have direct access to the odbc configuration
within Asterisk, those odbc connections/dsn's that are defined in
res_odbc.conf/extconfig.conf/cdr.conf?
Thanks
Bruce
2014 Jun 06
1
Using macros in extensions.lua?
Hi,
I have defined a dialplan in lua and now would like to use "dial" with the
macro M to implement some logic, when the callee-channel gets created.
Working old style would be (extensions.conf)
[default]
exten => _X,1,dial(SIP/1,,M(mymacro^parameter))
[macro-mymacro]
exten => s,1,verbose(${ARG1})
How to implement the same functionality using pbx_lua?
Details: Asterisk 11.7
2008 Oct 27
1
Asterisk 1.6 pbx_lua not creating any contexts
Howdy, all. I'm trying to use pbx_lua as included in Asterisk 1.6 --
but while it correctly reports an error on startup (but not reload!)
if extensions.lua does not exist, it doesn't appear to actually create
any contexts.
I'm testing in a very minimal configuration with autoload turned off;
"module show" shows only chan_sip, pbx_lua, and app_dial.
"dialplan show"
2006 Nov 24
2
Correct syntax to access a shell variable?
I would like to access my shell environment variable MYIP from within
sip.conf to put in externip.
I've tried some variations of syntax after reading "The Future of
Telephony" but it's not working yet.
Should it be
externip=${ENV{$MYIP}}
or some other syntax??
Larry
--
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Linux
2009 Aug 29
2
Asterisk 1.6.0.14 and 1.6.1.5 Now Available
The Asterisk Development Team is pleased to announce the release of Asterisk
1.6.0.14 and 1.6.1.5. Asterisk 1.6.0.14 and 1.6.1.5 are available for immediate
download at http://downloads.asterisk.org/pub/telephony/asterisk/
Asterisk 1.6.0.14 is the first full, non-security release since 1.6.0.10.
The release candidate 1.6.0.11-rc1 was redone as 1.6.0.14-rc1 (which this
release has been created
2009 Aug 29
2
Asterisk 1.6.0.14 and 1.6.1.5 Now Available
The Asterisk Development Team is pleased to announce the release of Asterisk
1.6.0.14 and 1.6.1.5. Asterisk 1.6.0.14 and 1.6.1.5 are available for immediate
download at http://downloads.asterisk.org/pub/telephony/asterisk/
Asterisk 1.6.0.14 is the first full, non-security release since 1.6.0.10.
The release candidate 1.6.0.11-rc1 was redone as 1.6.0.14-rc1 (which this
release has been created
2009 Feb 04
2
lua assist
Hello,
For Lua inclusion in Syslinux an idea to ship with an com32/lua/assist
directory and an com32/lua/patches directory.
In the patches directory patches against a pristine lua tarball
and the assist dir contains scripts for further tayloring.
This is what I have in mind:
| milleune at inertia:~
| $ git clone http://www.stappers.it/tracking/syslinux/.git syslinux-lua-stappers
| milleune at
2014 Oct 13
2
[PATCH][git-pull] lua: fix broken bindings, switch to using methods, document things
The following changes since commit 81ad566f155fac31089fde69c87059b217e7e9b6:
NEWS: Update for 6.03 release (2014-10-06 09:27:44 -0700)
are available in the git repository at:
https://github.com/wferi/syslinux/ pub
for you to fetch changes up to 68cb978ab7e692d772e4d62d3585b8f7bac43b4b:
lua: simplify the function/value handling in the automenu test (2014-10-13 12:44:15 +0200)
2010 Jul 04
1
Merge LUA branch of Marcel Ritter
Since Syslinux 4.01-pre2, lua is the master branch. This lua.c32 moudule
doesn't support much.
There is a much recent lua.c32, made by Marcel Ritter's:
http://syslinux.zytor.com/archives/2009-October/013383.html
The last time he wrote about the state of his lua branch:
============================================================
The current state is:
- VESA:
- switching to vesa mode
2013 Jul 18
4
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
2012 Nov 23
1
[PATCH] lua: fix build error due to LUA_GLOBALSINDEX usage
lua 5.2 changed API, LUA_GLOBALSINDEX is no longer available.
http://www.lua.org/manual/5.2/manual.html#8.3
Signed-off-by: Olaf Hering <olaf at aepfle.de>
---
Fix is only compile tested.
generator/lua.ml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/generator/lua.ml b/generator/lua.ml
index 88748ae..7461cbd 100644
--- a/generator/lua.ml
+++ b/generator/lua.ml
@@
2018 Jan 22
2
[PATCH] lua, perl: Use thread-safe strerror_r instead of strerror (RHBZ#1536763).
---
generator/lua.ml | 22 +++++++++++++++-------
generator/perl.ml | 2 +-
lua/Makefile.am | 1 +
3 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/generator/lua.ml b/generator/lua.ml
index dd6aedbe9..7cfceb152 100644
--- a/generator/lua.ml
+++ b/generator/lua.ml
@@ -63,6 +63,8 @@ let generate_lua_c () =
#endif
#endif
+#include \"ignore-value.h\"
+
#include
2014 Aug 07
2
[PATCH] lua: always return luaL_error in actions
Even if luaL_error is a "no return" function for the Lua runtime, adopt
also in action functions the "return" idiom recommeded for it.
This also helps code analyzers in not thinking that "g" might still be
null after the null check followed by luaL_error.
---
generator/lua.ml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/generator/lua.ml
2016 Nov 20
2
[PATCH 0/2] improve Lua API for files and initramfs objects
hpa at zytor.com writes:
> On November 19, 2016 6:06:43 AM PST, wferi at niif.hu wrote:
>
>>"H. Peter Anvin" <hpa at zytor.com> writes:
>>
>>> On 11/10/16 04:38, Paul Emmerich via Syslinux wrote:
>>>
>>>> Ferenc W?gner <wferi at niif.hu>:
>>>>
>>>>> for reading configuration files from disk. Does it
2011 May 09
3
Lua.c32 - user input / scripting
I'm trying to get this bit of code to work with the lua.c32 interpreter:
--- sample, the goal is to build a script that will allow me to enter a 4digit
mt and load the bios iso accordingly
print ("enter machine type :")
mt = io.read()
print ("you entered...",mt)
doStuff()
if (mt == "8141") then
syslinux.run_command("memdisk