Balance type

80 views
Skip to first unread message

Ibrahima Gaye

unread,
Mar 6, 2019, 6:32:07 AM3/6/19
to cgr...@googlegroups.com
Is it possible possible to define custom balance types?

Ibrahima GAYE

On Wed, 6 Mar 2019, 12:29 Ibrahima Gaye, <ibrahi...@gmail.com> wrote:
Thank you TheoV,
I will keep that in mind and keep reading the group.

Ibrahima GAYE

On Wed, 6 Mar 2019, 12:27 Teofil Voivozeanu, <teofil.v...@itsyscom.com> wrote:
Hi Ibrahima,

Regarding diameter messages they are generic. You can define them as you want.
The business logic is defined in processor templates.
A good point from where to start is from our configuration, and from there adapt to your cases.


Thanks,
TeoV

--
You received this message because you are subscribed to the Google Groups "CGRateS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cgrates+u...@googlegroups.com.
To post to this group, send email to cgr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cgrates/00375c00-bcb6-4261-8a9a-4a2f41f10778%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Teofil Voivozeanu

unread,
Mar 6, 2019, 6:37:25 AM3/6/19
to CGRateS
Hi Ibrahima,

Can you please provide more info regarding what type of custom balance do you need? 

Thanks,
TeoV

Ibrahima Gaye

unread,
Mar 6, 2019, 7:58:21 AM3/6/19
to cgr...@googlegroups.com
Hi TheoV,
i was thinking only MONETARY, SMS, INTERNET, INTERNET_TIME, MINUTES are supported as balance types,
but i just saw that GENERIC is supported correct ?

Best regards,
Ibrahima GAYE




--
You received this message because you are subscribed to the Google Groups "CGRateS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cgrates+u...@googlegroups.com.
To post to this group, send email to cgr...@googlegroups.com.

Teofil Voivozeanu

unread,
Mar 6, 2019, 8:27:53 AM3/6/19
to CGRateS
Hi Ibrahima,

We call them differently but more or less they are supported (*monetary  , *sms , *data)
Regarding *generic type, yes it is supported.


Thanks,
TeoV

ibstelix

unread,
Mar 6, 2019, 4:32:28 PM3/6/19
to CGRateS
Sorry TeoV,
what i posted was balance tags.
Balance types are :
BalanceType:

Specifies the balance type for this action:

  • *voice: units of call minutes
  • *sms: units of SMS
  • *data: units of data
  • *monetary: units of money
Only these are supported or the Generic holds here also?
Best regards,

Teofil Voivozeanu

unread,
Mar 7, 2019, 3:53:08 AM3/7/19
to CGRateS
Hi Ibrahima,

These are correct. Generic ( *generic) is added on top.

Thanks,
TeoV

Ibrahima Gaye

unread,
Mar 8, 2019, 2:25:45 AM3/8/19
to cgr...@googlegroups.com
Hello dear group,
I went through [almost] all the online docs and videos
but i can't find informations about relationship between 
Tenant, User, Accounts, Balance, Balance Types and Balance tags
i understand i can  try to guess it by checking the csv files but if that information
already exist it is better for me.
so the Question1 is what is the the relationship (just conceptual) between : Tenant, User, Accounts, Balance, Balance Types and Balance tags

Question2 is: i have "created" these objects [or rather some of them] by loading the files. Does it exists Http API functions to created these objects ?

Thanks again for your helping regarding my newbie questions.
Best regards,

Ibrahima GAYE




--
You received this message because you are subscribed to the Google Groups "CGRateS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cgrates+u...@googlegroups.com.
To post to this group, send email to cgr...@googlegroups.com.

Ibrahima Gaye

unread,
Mar 8, 2019, 3:56:19 AM3/8/19
to cgr...@googlegroups.com
For Account create/remove  i have found it in accountLifeCycle.rst
Best regards,

Ibrahima GAYE



Krzysztof Grzyb

unread,
Mar 8, 2019, 4:06:11 AM3/8/19
to cgr...@googlegroups.com
User is depreciated. Recently removed from code.

Basic concept is Account. Each account (e.g. sim card for telco) has map of Balances. Each balance has balnace type (*monetary, *data, ...). Balance tag I use to name my balance (e.g. 100min_international_voice_to_germany).

Input requests are assigned to Account and rating is performed on account rate configurations and account balances.

Krzysiek

W dniu 08.03.2019 o 09:56, Ibrahima Gaye pisze:

Ibrahima Gaye

unread,
Mar 8, 2019, 5:06:51 AM3/8/19
to cgr...@googlegroups.com
Thank you for the information Krzysiek,
What about tenants? What is available to manage them?

Ibrahima GAYE

Ibrahima Gaye

unread,
Mar 8, 2019, 5:52:43 AM3/8/19
to cgr...@googlegroups.com
From more readings i have doubts about understanding of "Tenant" :
 _name_of_this_current_running_instance_of_OCS (like Telco name)
or _owner_of_a_group_of_accounts (like Corporate customer with many accounts)
or is there another understanding of the concept?
Best regards,

Ibrahima GAYE



Alexandru Tripon

unread,
Mar 8, 2019, 6:55:30 AM3/8/19
to cgr...@googlegroups.com
Hi Ibrahima,

Tenant represents a partition on the platform. 
You ca think about "domainname" as being your tenant. It is not really definable within CGRateS but just matched between your requests and your tariff plans. 
If you are not in need of it, simply ignore it and it will be populated out of general section of config (default_tenant).

Thanks,
Trail97

Ibrahima Gaye

unread,
Mar 8, 2019, 7:35:45 AM3/8/19
to cgr...@googlegroups.com
Thank you for the clarification, Trail97, how can i map an "organisation" like: Corporate customer with many accounts? By adding Attributs?
Conceptually an account is mapped to one "user" (like msisdn) or one account can be used by many users?

(Sorry i am trying to get the datamodel)


Ibrahima GAYE

Alexandru Tripon

unread,
Mar 8, 2019, 9:38:30 AM3/8/19
to cgr...@googlegroups.com
Hi Ibrahima,

It's your decision, but normally one account would be used for bundle.
And yes you can use AttributeS to populate the Account and Subject based on msisdn.

Thanks,
Trial97  

Ibrahima Gaye

unread,
Mar 12, 2019, 6:47:23 AM3/12/19
to cgr...@googlegroups.com
Trying to figure out datamodels from the code: 
1. Account:
image.png

Ibrahima GAYE
Technologies Integration Specialist 
OSS/BSS/Business Analyst Senior Consultant
M1 (now in Congo) +243 844 390139   
M2 +221 77 564 9358
Skypeibstelix
 



account.plantuml
account.png

Alexandru Tripon

unread,
Mar 13, 2019, 11:06:30 AM3/13/19
to cgr...@googlegroups.com
Hi Ibrahima,

It's not recommended to  try to do data modeling out of code because we overload sometimes structures in the code.
Instead you should try to do it on architectural concepts.

Thanks,
 Trial97

Ibrahima Gaye

unread,
Mar 13, 2019, 11:24:19 AM3/13/19
to cgr...@googlegroups.com
Thank you for your response Alexandru.
You are totally right this is just to help understand how the entities are linked.
Best regards

Ibrahima GAYE

Reply all
Reply to author
Forward
0 new messages