Skip to content

Commit

Permalink
WHISTLE-878: put internal cost into db as a pvt field
Browse files Browse the repository at this point in the history
  • Loading branch information
James Aimonetti committed Jan 30, 2012
1 parent e2cbe22 commit 80e2d8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions whistle_apps/apps/crossbar/src/modules/cb_rates.erl
Expand Up @@ -482,9 +482,9 @@ process_row([Prefix, ISO, Desc, InternalCost, Rate], {Cnt, RateDocs}=Acc) ->
,{<<"rate_increment">>, 60}
,{<<"rate_minimum">>, 60}
,{<<"rate_surcharge">>, 0}
,{<<"internal_rate_cost">>, InternalCost1}
,{<<"pvt_rate_cost">>, InternalCost1}
,{<<"weight">>, constrain_weight(byte_size(Prefix1) * 10 - CostF)}

,{<<"options">>, []}
,{<<"routes">>, [<<"^\\+", (wh_util:to_binary(Prefix1))/binary, "(\\d*)$">>]}
]))
Expand Down

0 comments on commit 80e2d8a

Please sign in to comment.