[CDR-Stats + FreeSWITCH] How to rate calls

33 views
Skip to first unread message

Pauline Joy Garcia

unread,
Jun 26, 2017, 4:00:08 AM6/26/17
to CDR-Stats
Hello,

I'm new to CDR-Stats and i just successfully integrated FreeSWITCH with it.
However whenever a CDRs is pushed from cdr-pusher to CDR-Stats, the cost is always 0. 
Here is what i have done and configured:
1) Modified settings_local.py based on http://www.cdr-stats.org/documentation/beginners-guide/
PREFIX_LIMIT_MIN = 2
PREFIX_LIMIT_MAX = 5
LOCAL_DIALCODE = 1
PN_MIN_DIGITS = 6
PN_MAX_DIGITS = 10
PREFIX_TO_IGNORE = "+,0,00,000,0000,00000,011,55555,99999"
INTERNAL_CALL = 5

2) Create 2 customers that use the VOIPPlan Default, thus using also the default carrier and retail plans as well as provider and gateway
1st Customer's account code: 17036620669
2nd Customer's account code: 17314191096

3) Make a test call from extension 17036620669 to extension 17314191096



Both CDR records have:
Buy Rate = 0
Buy Cost = 0
Sell Rate = 0
Sell Cost = 0

Based on the results, the dial code is incorrect. The dial code should have been 1 for it to match US right? Please do correct me if i'm wrong.

Could you provide some steps to do or other configurations that need to be set in order to have the calls rated please?

Any help would be greatly appreciated.

Thank you
Reply all
Reply to author
Forward
0 new messages