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

LCR confusion #165

Closed
eightsixeight opened this issue Dec 1, 2018 · 3 comments
Closed

LCR confusion #165

eightsixeight opened this issue Dec 1, 2018 · 3 comments
Assignees
Labels

Comments

@eightsixeight
Copy link

Seems all those prefixes are easy to break... in fact never got it working...

the concat function when you lookup rates you concat (c.tech_prefix,r.prefix,'%')
basically customer prefix and rate prefix.. BUT if you dont use prefixes at all then kamailio doesnt even find a destination...

@mwolff44
Copy link
Owner

you have to use prefix for rates. The system works like that.
Thanks

@mwolff44 mwolff44 self-assigned this Dec 17, 2018
@eightsixeight
Copy link
Author

i figured it out partially,
only thing i cannot fix, is if i import my 260,000 rates, doesnt work,
but if i put manually it works, i think it's a zone issue, but cannot be sure,

and then i get rates for customer, but not for costs of those rate via sip provider,

even if they assignes to same billing scheme.

@mwolff44
Copy link
Owner

To import 200000 rates on one shot, you need some RAM available. It is better to split your file or do it with an SQL UPDATE method.

The system works like that :
customer_sip_account => customer => ratecard => get_rate_from_longest_prefix => gest_lcr_from_matched_ratecard => get_provider_rate_from_longest_prefix

The provider rate needs to be lower than customer rate (you have an option to allow negative margin, but it is disallowed by default)

@mwolff44 mwolff44 closed this as completed Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants