[asterisk-bugs] [JIRA] (ASTERISK-23823) [patch] Option to keep queuerules in realtime

Michael K. (JIRA) noreply at issues.asterisk.org
Mon Jun 9 10:45:56 CDT 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-23823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=219186#comment-219186 ] 

Michael K. commented on ASTERISK-23823:
---------------------------------------

1) I'm preparing for trunk as requested. And yes the patch was made against 1.8.27
2) As if it's tabs/extra spaces and other minor problems, i fixed those on the patch for trunk. If there are more serious problems, i would like to get help, feedback and guidance as i'm junior dev and may missed something or made the wrong choices.
3) Regression only if the reload would always reload file and realtime, i'm not sure if realtime takes more time than read from file. So if you say so, it maybe true. But this is optional and i do not think it makes much change, but it's easier (at least for us) to keep settings in (for example, again in our case) in db(mysql)
The testing was done on development server with different cases (tried not proper values in fields and so on), after more tests we plan to use it in production, so we can get better feedback (though not sure if it would be only this patch or also patch for changing other parameters due time(announcement for example) which i plan to submit too later). I'm not sure if Test Suite is relevant here, if i understand it right, as all the changes are made is the loading of the rules ( the source) and only relevant on reload/load of module. Or i got the wrong idea about Test Suite.

> [patch] Option to keep queuerules in realtime
> ---------------------------------------------
>
>                 Key: ASTERISK-23823
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23823
>             Project: Asterisk
>          Issue Type: New Feature
>      Security Level: None
>          Components: Applications/app_queue
>    Affects Versions: 1.8.27.0
>            Reporter: Michael K.
>            Assignee: Michael K.
>            Severity: Minor
>         Attachments: app_queue.patch, queue_rules.sql
>
>
> This patch the ability (optional) to keep queuerules in realtime (rules would be loaded from file too)
> To test add to queuerules.conf :
> [general]
> realtime_rules = yes
> and add the realtime setting to extconfig.conf, for example in my case it's mysql and it looks like(will attach the .sql with create for table):
> queue_rules => mysql,asterisk,queue_rules
> in table as you can see you need to specify rule name and as in regular rules you can use relative setings for min and max (with "-" and "+", e.g. "+100")
> If you use realtime, the rules will be always reloaded (no cache option here), in other words it would delete all rules and re-add them from realtime and file. It's important to understand that with realtime on it would reload rules from file doesn't matter if file was or was not change.
> While with the option off it would act exactly like it was before patch (file would not be reloaded if it was not changed)



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



More information about the asterisk-bugs mailing list