<div dir="ltr"><div class="gmail_extra"><div><div class="gmail_signature" data-smartmail="gmail_signature">On 2 February 2017 at 14:53, Oleg <span dir="ltr"><<a href="mailto:spce@irg-x.net" target="_blank">spce@irg-x.net</a>></span> wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for Your comment. Indeed, I too have to update 10 or 30 Billing Plans every time my upstream providers change rates. It's somewhat cumbersome to maintain and repeat same fees across all the billing plans all the time.<br>
<br>
Your idea with CGRates sounds interesting. Any pointers for integration between sipwise and cgrates?<br></blockquote><div><br></div><div>We would just intend to replace rate-o-mat with a daemon to feed in the CDR to cgrates then mark them as rated in SP. Our invoicing system then takes in its rated CDR from cgrates instead of SP.</div><div><br></div><div>We have already decoupled our front-end rate management system from SP. Instead of writing the rates directly to SP it gets written to a separate system, which can then populate the rates in either/both SP and cgrates.</div><div><br></div><div>So far we have successfully exported the same rate card to both systems and have sent sample SP CDR to cgrates and confirmed they were correctly rated. Still a lot of work to do though.</div><div><br></div><div>-Barry</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks.<br>
<br>
Oleg.<div><div class="h5"><br>
<br>
On 2017-02-02 14:48, Barry Flanagan wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
On 2 February 2017 at 13:01, Oleg <<a href="mailto:spce@irg-x.net" target="_blank">spce@irg-x.net</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
Just wandering if there is a way to tell SPCE to fallback to an<br>
alternative billing_plan if rate-o-mat does not find a Fee in the<br>
current plan (on Customer's billing plan missing Fee, apply<br>
Reseller' billing plan fee for the given destination, if present).<br>
</blockquote>
<br>
No, not possible at the moment. Pity. It would be great if you could<br>
assign a "fallthrough" rate card to a customer. So, you could have<br>
your standard rate card as base, and then for customer A you canĀ  have<br>
a rate card with just a few (say UK) rates. A call from this customer<br>
would first check their rate card and if not found, check the<br>
fallthrough one.<br>
<br>
This would mean that instead of having to maintain full separate rate<br>
cards for every customer where there is a slight difference, you just<br>
maintain the standard rates and then the smaller individual rate cards<br>
per customer.<br>
<br>
This and the lack of multiple Free Time "buckets" are my biggest<br>
gripes with SP (I am on Pro).<br>
<br>
We are actually investigating cgrates as an alternative rating engine<br>
(we don't use the invoicing built in to SP)<br>
<br>
-Barry Flanagan<br>
<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Example.<br>
<br>
- 'DefaultResellerBillingPlan' contains all the destinations<br>
- 'ClientsOfferPlan' contains one destination Fee only (ex.: 5%<br>
discount calculated for fees to US<br>
'^1,on_peak_init_rate,on_peak_<wbr>init_interval,...')<br>
<br>
A user with 'ClientsOfferPlan' assigned is billed through<br>
DefaultResekkerBillingPlan for all the destination (therein<br>
present), except for one Fee ('^1'), which is billed through<br>
'ClientsOfferPlan'.<br>
<br>
In other words, I'd like sipwise to rate (and include in Invoice)<br>
'accounting.cdr.source_reselle<wbr>r_cost' (if > 0) when<br>
accounting.cdr.source_customer<wbr>_cost=0.<br>
<br>
Is this possible?<br>
<br>
Thank You<br>
<br>
Oleg<br>
______________________________<wbr>_________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br>
</div></div><a href="https://lists.sipwise.com/listinfo/spce-user" rel="noreferrer" target="_blank">https://lists.sipwise.com/list<wbr>info/spce-user</a> [1]<br>
</blockquote>
<br>
<br>
<br>
Links:<br>
------<br>
[1] <a href="https://lists.sipwise.com/listinfo/spce-user" rel="noreferrer" target="_blank">https://lists.sipwise.com/list<wbr>info/spce-user</a><br>
</blockquote>
<br>
</blockquote></div><br></div></div>