[asterisk-users] Lua extensions are not working on asterisk 1.8.2.3

Carlo Pires carlopires at gmail.com
Wed Feb 16 11:19:27 CST 2011


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 <faisal at vopium.com>:
> You may need to share your LUA code and the extension your call is need to
> execute.
>
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at 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 <tilghman at 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
>



More information about the asterisk-users mailing list