similar to: Accessing Asterisk gosub arguments in extensions.lua

Displaying 20 results from an estimated 8000 matches similar to: "Accessing Asterisk gosub arguments in extensions.lua"

2019 Oct 11
3
clarification on gosub, macros and AEL
I'm trying to clarify my understand of gosub, macros and AEL. My understanding is that macros using the Macro() application, which is defined in extensions.conf by: [macro-foo] ... and called in extensions.conf with exten => _9NXXNXXXXXX.,n,Macro(fastbusy) is deprecated in favour of Gosub(). True so far? But then there are "macro"s defined in extensions.ael: macro foo() {
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
2012 Oct 31
1
Asterisk 11 and stdexten written in AEL invoked by pbx_config
Almost two years ago, a change between how AEL code is built into Asterisk dialplan between minor versions made clear the need to provide a sane entry point into AEL subroutines and that's how AELSub() born. With Asterisk 11 release, they way [stdexten] at extensions.conf is invoked changed from Macro to Gosub using the 'missing context feature' and this caused that any stdexten
2010 Apr 02
1
Gosub replacement within AEL2 dialplans
Hello, When reloading a diaplan (asterisk 1.6.1.X), I can see in console : [Apr 2 09:02:00] WARNING[2217]: ael/pval.c:2522 check_pval_item: Warning: file /etc/asterisk/extensions.ael, line 621-621: application call to Gosub affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! What is then the recommended substitution for Gosub() application
2009 Apr 29
1
Replacement of Macro() with Gosub()
Hi, Is there some more thorough documentation of this change that has happened in 1.6? The upgrade.txt and changes.txt files mention it, but I have already seen details of this change that do not appear to be documented except in conversations on the mailing list... 1) It appears that it is no longer legal to have: [macro-contaxtA] ...stuff... [contextA] ...stuff... Is this true? Or have I
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
2010 Jul 23
2
application call to Gosub affects flow of control, and needs to be re-written using AEL
Hi, For some reason (outbound call tracking) I've got a few different outbound call process (using a macro for queuemetrics logging, or direct call) i wanted to factorise the routing process so i came up with something like the following. All in one it's working like expected, however every "ael reload" command trigger a lot of warning like that "application call
2008 Dec 17
1
ael queue gosub already has PBX structure??
Hello, I want that after client and queue member call would be established, cmd queue runs some 'procedures' . So I am using cmd Queue option 'gosub'. This is my example of ael : context QUEUE { _X. => { Ringing(); Wait(4); Answer(); Queue(${Queue},wr,,,60,,,check-record); Hangup(); }; }; macro check-record() {
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':
2019 Oct 15
4
clarification on gosub, macros and AEL
>>> Nobody has any information or opinions on any of this? Personally, I don't think MACROS are going anywhere any time soon, so I have not bothered looking into a substitution. As for ael; I've never used it. Doug
2008 Oct 06
1
AEL and swap from macros to contexts
Hi, according to discussion on asterisk IRC, where people said, that macros will be depracated, I tried to migrate from macros to contexts and Gosub but if I try to use gosub in extensions.ael, ael compiler complains, that I shouln't use Gosub app, but I can't find ael keyword, that will be Gosub equivalent, or can I ignore this ael warnings? thanks PJ LOG: lev:3 file:pval.c
2008 Dec 05
1
Gosubs broken since r160626 (1.6.0 SVN) ?
Hi all, I've just upgraded to latest 1.6.0 SVN from a few days ago and my Gosubs have stopped working. This is from the verbose logs: -- Executing [03333407271 at incoming-aaisp:4] GotoIf("IAX2/aaisp-3802", "1?5:7") in new stack -- Goto (incoming-aaisp,03333407271,5) -- Executing [03333407271 at incoming-aaisp:5] Gosub("IAX2/aaisp-3802",
2014 Feb 12
2
How does extensions.lua compares to extensions.conf ?
Hello, How does extensions.lua compares to extensions.conf or extensions.ael on stability, performance and features ? Would you recommand extensions.lua as an easy/easier way to access memcached, redis or equivalent ? Thoughs ? Comments ? Regards -------------- next part -------------- An HTML attachment was scrubbed... URL:
2013 Feb 24
2
AEL Macro are evil :-)
I just discover an "hidden" problem with AEL macro I want to have your feedback. If you use a macro to dial out, like &dialout(${EXTEN}), the leg extension will became ~~~~s~~~~ and if it happens you transfer the call, that will be the callerid appearing on the other phone display. I am just rewriting all the dialplan getting rid of the macro and using gosub, even if asterisk is
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
2010 May 18
3
About option U in Dial Ast version 1.6.2
Has any one used this? U(x[^arg[^...]]): x - Name of the subroutine to execute via Gosub arg - Arguments for the Gosub routine Execute via Gosub the routine <x> for the *called* channel before connecting to the calling channel. Arguments can be specified to the Gosub using '^' as a delimiter. The Gosub routine can set the variable ${GO
2012 Jan 06
1
Why write your dialplan using Lua?
Hello, Reading through the Wiki: "Asterisk supports the ability to write dialplan instructions in the Lua programming language. This method can be used as an alternative to or in combination with extensions.conf and/or AEL. PBX lua allows users to use the full power of lua to develop telephony applications using Asterisk" My question is, what is the benefit of using Lua? I recently
2011 Dec 13
1
AEL x LUA
Hello, I would like to receive some suggestions about dialplans written in lua, actually my dialplan is written in ael, but i'm having some problems with it. I noticed that asterisk just translates ael to the old extension language, does it do the same with lua? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL:
2011 Feb 18
3
lua -asterisk manual
Please could someone advise good manual for using lua for asterisk dialplan. There is not much docu about it. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110218/42642787/attachment.htm>