[asterisk-bugs] [JIRA] (ASTERISK-18230) sometimes dialplan switches disappear when merging contexts between pbx_lua and pbx_config

Matt Jordan (JIRA) noreply at issues.asterisk.org
Tue Jul 8 09:59:56 CDT 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-18230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Jordan updated ASTERISK-18230:
-----------------------------------

           Affects Version/s:     (was: 11.11.0)
                                  (was: 1.8.29.0)
                                  (was: 12.4.0)
    Target Release Version/s: 12.4.0
                              11.11.0
                              1.8.29.0

> sometimes dialplan switches disappear when merging contexts between pbx_lua and pbx_config
> ------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-18230
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-18230
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: PBX/General
>    Affects Versions: 1.8.5.0, 10.0.0-beta1
>            Reporter: Matthew Nicholson
>            Severity: Minor
>      Target Release: 1.8.29.0, 11.11.0, 12.4.0
>
>
> When using the same context in pbx_config and pbx_lua (and pbx_ael), the pbx_lua switch added to the context appears to disappear. Reloading pbx_lua after asterisk starts results in the switch being added as expected.
> To reproduce:
> # Create a context with the same name in pbx_config and pbx_lua.
> # Start asterisk, unload pbx_lua.so, pbx_ael.so, and pbx_config.so (or start asterisk without them loaded). 
> # Load pbx_lua.so, then run 'dialplan show' (note the 'Lua/' switch).
> # Load pbx_config.so, then run 'dialplan show' (notice the 'Lua/' switch has disappeared).
> This seems to happen when the 'Lua/' switch is the only thing registered in a context and then pbx_config merges some extensions in. It does not occur if you load pbx_config before loading pbx_lua, or if there are extensions (say from pbx_ael) in the context when pbx_config is loaded. Sample pbx_config and pbx_lua config files to reproduce this follow.
> {code:title=extensions.conf (pbx_config)}
> [test]
> exten => 1,1,Noop
> exten => 1,n,Answer
> {code}
> {code:title=extensions.lua (pbx_config)}
> extensions = {}
> extensions.test = {}
> extensions.test[2] = function()
>     app.answer()
> end
> {code}
> There is a pbx/merge_contexts test (currently disabled) in the testsuite that demonstrates this. Loading the ast2 configs should result in a context with extensions '12', '123', and a 'Lua/' dialplan switch, but only the two extensions are added.
> Note: I didn't actually test with 1.8 but I suspect it is a problem in 1.8 as well.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list