[OpenSIPS-Users] CDRtool loading data from Asterisk and multiple profiles

Adrià Vidal adriavidal at gmail.com
Thu Nov 8 23:10:11 CET 2012


2012/11/8 Adrian Georgescu <ag at ag-projects.com>

> I tried to understand what you ask but I could not.
>
> Nevertheless, the rating logic is described here in detail if you care
> about reading:
>
>
> http://cdrtool.ag-projects.com/projects/cdrtool/repository/entry/doc/RATING.txt
>
> Adrian
>
>

Yes i've read it carefully

62<http://cdrtool.ag-projects.com/projects/cdrtool/repository/entry/doc/RATING.txt#L62>

billing_customers table for the the BillingPartyId field of the the CDR

63<http://cdrtool.ag-projects.com/projects/cdrtool/repository/entry/doc/RATING.txt#L63>

(radacct.UserName for radius based datasources) in the following order:

64<http://cdrtool.ag-projects.com/projects/cdrtool/repository/entry/doc/RATING.txt#L64>

65<http://cdrtool.ag-projects.com/projects/cdrtool/repository/entry/doc/RATING.txt#L65>


a. SIP account user at domain

66<http://cdrtool.ag-projects.com/projects/cdrtool/repository/entry/doc/RATING.txt#L66>

b. SIP domain of the SIP account

67<http://cdrtool.ag-projects.com/projects/cdrtool/repository/entry/doc/RATING.txt#L67>

c. Source IP of the session

68<http://cdrtool.ag-projects.com/projects/cdrtool/repository/entry/doc/RATING.txt#L68>

d. Default (when none of the above matches)





If i include the domain in the src field like it's configured as BillingPartyId
at the global.inc file  "BillingPartyIdField"=> "src",
then is ignored and rated as default


ConnectFee=0.0000 CallId=41800 Span=1 Duration=373 DestId=346 default
Profile=linea900_profile Period=weekday Rate=linea900 Interval=0-24
Cost=0.4568/60 Price=2.8398 PriceIn=0.0000



idsrc dstcalldateclid
dcontext4180062890000<https://mail.google.com/mail/u/0/?shva=1>
@domainb.com 34699980125
<https://mail.google.com/mail/u/0/?shva=1>2012-10-01 17:27:47
62890000 <https://mail.google.com/mail/u/0/?shva=1>


been table customers like these

 idreseller_idgateway domainsubscriberprofile_name1 profile_name1_alt
profile_name2 profile_name2_alttimezoneincrement min_duration11 0 domainA.com
 xpreme_default grn_premiumxpreme_defaultgrn_premium Europe/Amsterdam00 180
domainb.com grn_premium  grn_premium  Europe/Amsterdam00 170
62890009<https://mail.google.com/mail/u/0/?shva=1>
@domainA.com linea900_profilegrn_premiumlinea900_profile grn_premium
Europe/Amsterdam0 0


What can i try to change?




-- 
--
Adrià Vidal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121108/61acdcba/attachment.htm>


More information about the Users mailing list