[asterisk-bugs] [JIRA] (ASTERISK-24721) manager: ModuleLoad action incorrectly reports 'module not found' during a Reload operation

Asterisk Team (JIRA) noreply at issues.asterisk.org
Wed Jul 27 10:28:03 CDT 2016


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

Asterisk Team updated ASTERISK-24721:
-------------------------------------

    Target Release Version/s: 14.0.0

> manager: ModuleLoad action incorrectly reports 'module not found' during a Reload operation
> -------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-24721
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24721
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/ManagerInterface
>    Affects Versions: 13.1.0
>            Reporter: Matt Jordan
>      Target Release: 13.2.0, 14.0.0
>
>
> When issuing a {{ModuleLoad}} action with a {{LoadType}} of {{Reload}}, AMI incorrectly reports that the module does not exist, even when the reload processes correctly.
> Below is output of manually performing this with {{pbx_config.so}}:
> The pbx_config.so module is loaded as shown from CLI & AMI:
> {noformat}
> futang*CLI> module show like pbx_config
> Module                         Description                              Use Count  Status      Support Level
> pbx_config.so                  Text Extension Configuration             0          Running              core
> 1 modules loaded
> AMI ModuleCheck action reports it's loaded also:
> Action: ModuleCheck
> ActionID: 123
> Module: pbx_config.so
> Response: Success
> ActionID: 123
> Version: Revision: 427276
> {noformat}
> Reloading the module gives an error Response saying the module doesn't exist but the Reload event says it did reload just fine (same behaviour occurs without '.so' in the module name):
> {noformat}
> Action: ModuleLoad
> ActionID: 456
> Module: pbx_config.so
> LoadType: reload
> Response: Error
> ActionID: 456
> Message: No such module.
> Event: Reload
> Privilege: system,all
> Timestamp: 1422036834.656408
> SequenceNumber: 44
> File: manager.c
> Line: 1708
> Func: manager_generic_msg_cb
> Module: pbx_config.so
> Status: 0
> {noformat}
> Reloading the module from the CLI indicates it was successful and so does the Reload event:
> {noformat}
> futang*CLI> module reload pbx_config.so
> Module 'pbx_config.so' reloaded successfully.
> [Jan 23 12:17:03]     -- Reloading module 'pbx_config.so' (Text Extension Configuration)
> [Jan 23 12:17:03]   == Parsing '/etc/asterisk/extensions.conf': Found
> ...
> AMI EVENT RECEIVED DUE TO RELOAD FROM CLI COMMAND:
> Event: Reload
> Privilege: system,all
> Timestamp: 1422037023.438273
> SequenceNumber: 61
> File: manager.c
> Line: 1708
> Func: manager_generic_msg_cb
> Module: pbx_config.so
> Status: 0
> {noformat}



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



More information about the asterisk-bugs mailing list