[asterisk-bugs] [JIRA] (ASTERISK-25966) Database based hints empty during AMI reload or startup
Andrew Nagy (JIRA)
noreply at issues.asterisk.org
Fri May 6 20:44:56 CDT 2016
[ https://issues.asterisk.org/jira/browse/ASTERISK-25966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=230513#comment-230513 ]
Andrew Nagy edited comment on ASTERISK-25966 at 5/6/16 8:44 PM:
----------------------------------------------------------------
Actually I take this back preloading func_db helped during startup however it did not solve the issue on reload. When I issue a reload over AMI the hint is cleared. If I issue asterisk -rx 'core reload' the hint is refreshed (and not cleared which is what I want)..
This is probably because DB read is restricted during AMI operations as discussed in the other ticket.
was (Author: tm1000):
Actually I take this back preloading func_db helped during startup however it did not solve the issue on reload. When I issue a reload over AMI the hint is cleared. If I issue asterisk -rx 'core reload' the hint is refreshed (and not cleared which is what I want)
> Database based hints empty during AMI reload or startup
> -------------------------------------------------------
>
> Key: ASTERISK-25966
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-25966
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Affects Versions: 11.21.2, 13.8.1, 13.8.2
> Reporter: Andrew Nagy
> Assignee: Unassigned
>
> In asterisk set a DB value:
> {code}
> asterisk -rx 'database put AMPUSER/1000 voicemail default'
> {code}
> Now add a hint with a context that references that database value (valid)
> {code}
> [xrobau]
> exten => *999,hint,derp_${DB(AMPUSER/1000/voicemail)}
> {code}
> Issue a CLI based reload.
> {code}
> [root at freepbxdev1 voicemail]# asterisk -rx 'core show hints' | grep -i derp
> *999 at xrobau : derp_default State:Unavailable Presence:not_set Watchers 0
> {code}
> That is correct!
> Now issue a reload over AMI only (https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+ManagerAction_Reload)
> {code}
> [root at freepbxdev1 voicemail]# asterisk -rx 'core show hints' | grep -i derp
> *999 at xrobau : derp_ State:Unavailable Presence:not_set Watchers 0
> {code}
> This is bad. Seems like it couldn't find the database value after a simple AMI reload.
> Ok now restart Asterisk. It should pick it up right?
> {code}
> [root at freepbxdev1 voicemail]# service asterisk restart
> Stopping safe_asterisk: [ OK ]
> Shutting down asterisk: [ OK ]
> Starting asterisk: [ OK ]
> [root at freepbxdev1 voicemail]# asterisk -rx 'core show hints' | grep -i derp
> *999 at xrobau : derp_ State:Unavailable Presence:not_set Watchers 0
> {code}
> Still bad. The only way to fix it at this point is issue a CLI reload
> {code}
> [root at freepbxdev1 voicemail]# asterisk -rx "core reload"
> [root at freepbxdev1 voicemail]# asterisk -rx 'core show hints' | grep -i derp
> *999 at xrobau : derp_default State:Unavailable Presence:not_set Watchers 0
> {code}
> In Asterisk 13 the issue surfaces during Startup AND AMI Reload
> In Asterisk 11 the issue surfaces only during Startup
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list