[Spce-user] Billing
Rene Krenn
rkrenn at sipwise.com
Fri Jun 1 15:53:32 EDT 2018
Hi, would say would be almost possible, seems slight changes would be needed.
there are different subscriber preferences for what you call channels:
MariaDB [(none)]> select attribute, label from provisioning.voip_preferences where label like "%concurrent%";
+--------------------------------+---------------------------------------------------------+
| attribute | label |
+--------------------------------+---------------------------------------------------------+
| concurrent_max | Maximum number of concurrent calls |
| concurrent_max_out | Maximum number of outbound concurrent calls |
| concurrent_max_per_account | Maximum number of concurrent calls of Customer |
| concurrent_max_out_per_account | Maximum number of outbound concurrent calls of Customer |
| concurrent_max_total | Total max number of overall concurrent calls |
| concurrent_max_out_total | Total max number of outbound concurrent calls |
+--------------------------------+---------------------------------------------------------+
6 rows in set (0.00 sec)
You can, for instance, set concurrent_max_per_account to limit some contract’s subscribers 5 calls at a time.
This preference can be defined on domain or subscriber profile level. Subscriber profiles can be defined and grouped as a profile set, are prepared for or by a reseller. There already is a „reseller_edit“ option flag, to control allowing a reseller to change the subscriber profiles or not. Subscriber profiles basically provide predefining values and restrict, which preferences a subscriber is allowed to change himself. Now your scenario would also need this for a reseller user. So you would predefine the value in the subscriber profile, and then prevent a reseller user to edit it. The latter is the minor modification needed.
Finally, each contract gets a billing profile assigned (can be up to your resellers to prepare such), ie. to print the $100 interval charge printed on their monthly invoices.
regards
Von: Spce-user [mailto:spce-user-bounces at lists.sipwise.com] Im Auftrag von Matthew Reading
Gesendet: Freitag, 1. Juni 2018 19:18
An: spce-user at lists.sipwise.com
Betreff: [Spce-user] Billing
Hey The Best Humans On Earth,
I would like to bill per sip channel. Question is, can it be done?
>From what I can see there is a "Interval base" and this can be used as a single monthly invoicing figure for the reseller.
If I were to use this method how do I ristrict a reseller from using more sip channels then what he/she is paying for?
E.g. Reseller paying for 5 channels using "Interval Base" say $100pm and has access to his/her Reseller portal. How does one put a restriction on the max # of channels he/she can sell to their subscribers?
Regards,
Matt
Sent from BlueMail <http://www.bluemail.me/r?b=13130>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20180601/b142ac03/attachment-0001.html>
More information about the Spce-user
mailing list