I'm performing some CDR rating with CDRtool, and would like to have multiple ratings depending on domain or customer.<br><br>customers table<br><br>id reseller_id gateway domain subscriber profile_name1 profile_name1_alt profile_name2 profile_name2_alt timezone increment min_duration<br>
11 0 domainA.net domainA_default grn_premium domainA_default grn_premium Europe/Amsterdam 0 0<br>18 0 domainB.net grn_premium grn_premium Europe/Amsterdam 0 0<br><span><a onmouseover="dialecticShowPhoneNumberLinkIcon(this);" onmouseout="dialecticHidePhoneNumberLinkIcon();" title="Dial “17 0 62890009” with Dialectic" href="javascript:dialecticDial('17%200%2062890009');">17 0 62890009</a>@domainA.net linea900_profile grn_premium linea900_profile grn_premium Europe/Amsterdam 0 0</span><br>
<br><br>asterisk_cdr table<br><br>id src dst calldate clid dcontext channel dstchannel lastapp lastdata duration billsec disposition amaflags accountcode uniqueid userfield DestinationId Rate Price Normalized<br><span><a onmouseover="dialecticShowPhoneNumberLinkIcon(this);" onmouseout="dialecticHidePhoneNumberLinkIcon();" title="Dial “41800 62890000” with Dialectic" href="javascript:dialecticDial('41800%2062890000');">41800 62890000</a> <a onmouseover="dialecticShowPhoneNumberLinkIcon(this);" onmouseout="dialecticHidePhoneNumberLinkIcon();" title="Dial “34699980125 2012-10-01” with Dialectic" href="javascript:dialecticDial('34699980125%202012-10-01');">34699980125 2012-10-01</a> 17:27:<a onmouseover="dialecticShowPhoneNumberLinkIcon(this);" onmouseout="dialecticHidePhoneNumberLinkIcon();" title="Dial “47 62890000 0 373” with Dialectic" href="javascript:dialecticDial('47%2062890000%200%20373');">47 62890000 0 373</a> 0 0 0 346 Duration: 373 s</span><br>
<br>Only using domainA.net at dcontext i get correct rating, everything else is rated as Default with <br><br>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<br>
<br> <br> after putting in dcontext domainA.net i get<br> <br> ConnectFee=0.0000 CallId=41800 Span=1 Duration=373 DestId=346 domain=domainA.net Profile=domainA_default Period=weekday Rate=domainA_default Interval=0-24 Cost=0.0900/60 Price=0.5595 PriceIn=0.0000<br>
<br> <br> and trying with the secondary domain domainB it's ignored and rated as domainA.net<br> <br> ConnectFee=0.0000 CallId=41800 Span=1 Duration=373 DestId=346 domain=domainA.net Profile=domainA_default Period=weekday Rate=domainA_default Interval=0-24 Cost=0.0900/60 Price=0.5595 PriceIn=0.0000<br>
<br> Tried too using domain at src user@<br> <br> <br> There is some way to get diferent rates from these data?<br><br>--<br><br>Adrià Vidal Romero<br><br><br>