Bulk User Addition.

41 views
Skip to first unread message

M B

unread,
Jul 23, 2025, 1:55:02 AMJul 23
to CGRateS
Hi all,

After finally figuring out concurrent calls, etc - some more queries.

1. I want to give free daily minutes to a certain destination to users. I have setup the minutes in nanoseconds. Everything seems to work correctly, however, is there a way to round up seconds to a full minute? I have tried RateIncrement already, but doesn't seem to work.
2. I need to add approximately 100,000 user accounts to my server. Came up with the following script (its a follow-on to a setup I have already), is this the most efficient way? Would uploading via csv be preferable?

https://pastebin.com/58DU3uZp

Appreciate the help.

Armir Veliaj

unread,
Jul 23, 2025, 9:11:55 AMJul 23
to CGRateS
Hi,

Regarding your first inquiry about using minutes instead of seconds, the best way would be to add RatingSubject: "*zero1m" for that specific balance that you want to apply or you can make it system default via cgrates.json here: https://github.com/cgrates/cgrates/blob/master/config/config_defaults.go#L392.

As for adding accounts, both methods will work, either through the use of the API or by CSV. However, we recommend using CSV as the more efficient method.

Thanks,
Armir

M B

unread,
Jul 28, 2025, 8:51:45 AMJul 28
to CGRateS
Thanks a lot - this works great!
Reply all
Reply to author
Forward
0 new messages