<div dir="ltr"><div class="gmail_extra"><div><div class="gmail_signature" data-smartmail="gmail_signature">On 2 February 2017 at 15:34, 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">Interesting, I would have bet you'd be modifing kamailio-proxy.cfg to add routes with cgrates acc code.<br></blockquote><div><br></div><div>No - I think that might be a step too far for the good people at Sipwise Support :-)  </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 16:24, 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 14:53, 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">
Thanks for Your comment. Indeed, I too have to update 10 or 30<br>
Billing Plans every time my upstream providers change rates. It's<br>
somewhat cumbersome to maintain and repeat same fees across all the<br>
billing plans all the time.<br>
<br>
Your idea with CGRates sounds interesting. Any pointers for<br>
integration between sipwise and cgrates?<br>
</blockquote>
<br>
We would just intend to replace rate-o-mat with a daemon to feed in<br>
the CDR to cgrates then mark them as rated in SP. Our invoicing system<br>
then takes in its rated CDR from cgrates instead of SP.<br>
<br>
We have already decoupled our front-end rate management system from<br>
SP. Instead of writing the rates directly to SP it gets written to a<br>
separate system, which can then populate the rates in either/both SP<br>
and cgrates.<br>
<br>
So far we have successfully exported the same rate card to both<br>
systems and have sent sample SP CDR to cgrates and confirmed they were<br>
correctly rated. Still a lot of work to do though.<br>
<br>
-Barry<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">
Thanks.<br>
<br>
Oleg.<br>
<br>
On 2017-02-02 14:48, Barry Flanagan wrote:<br>
<br>
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>
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>
<br>
No, not possible at the moment. Pity. It would be great if you<br>
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<br>
have<br>
a rate card with just a few (say UK) rates. A call from this<br>
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<br>
rate<br>
cards for every customer where there is a slight difference, you<br>
just<br>
maintain the standard rates and then the smaller individual rate<br>
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<br>
engine<br>
(we don't use the invoicing built in to SP)<br>
<br>
-Barry Flanagan<br>
<br>
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] [1]<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> [1]<br>
</blockquote><span class="">
<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>
</span></blockquote>
<br>
</blockquote></div><br></div></div>