Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

carrierroute: warning for the same carrier/domain having routes with only 0 probability #1232

Closed
wants to merge 3 commits into from

Conversation

hdikme
Copy link
Contributor

@hdikme hdikme commented Sep 12, 2017

Pre-Submission Checklist

  • Commit message has the format required by CONTRIBUTING guide
  • Commits are split per component (core, individual modules, libs, utils, ...)
  • Each component has a single commit (if not, squash them into one commit)
  • No commits to README files for modules (changes must be done to docbook files
    in doc/ subfolder, the README file is autogenerated)

Type Of Change

  • Small bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would change existing functionality)

Checklist:

  • PR should be backported to stable branches
  • Tested changes locally
  • Related to issue #XXXX (replace XXXX with an open issue number)

Description

While starting kamailio or reloading the routes, if the same carrier/domain pairs do not have
any route with a probability other than 0 (zero) then an error log will be printed on the screen.
Besides, the log "invalid dice_max value" in the cr_func.c has been made more clear.

…only 0 probability

- While starting kamailio or reloading the routes, if the same carrier/domain pairs do not have
  any route with a probability other than 0 (zero) then an error log will be printed on the screen.
  Besides, the log "invalid dice_max value" in the cr_func.c has been made more clear.
@@ -352,6 +353,7 @@ int load_route_data_db(struct route_data_t * rd) {
}
}
int n = 0;
boolean query_done = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change query_done to false here and adapt the code accordingly. The name of the variable should reflect the value it holds.

…only 0 probability

- While starting kamailio or reloading the routes, if the same carrier/domain pairs do not have
  any route with a probability other than 0 (zero) then an error log will be printed on the screen.
  Besides, the log "invalid dice_max value" in the cr_func.c has been made more clear.
@hdikme
Copy link
Contributor Author

hdikme commented Sep 12, 2017

Following the commit based on your comment, your comment "Please change query_done to false here and adapt the code accordingly. The name of the variable should reflect the value it holds." disappeared but i have done the requested changes.

@hdikme hdikme closed this Sep 12, 2017
@miconda
Copy link
Member

miconda commented Sep 12, 2017

@hdikme - the comment of @lbalaceanu was on the code of the patch and github hides it, you need to press Show outdated in the right side of @lbalaceanu's comment above here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants