[asterisk-commits] dvossel: branch dvossel/generic_aoc r256417 - /team/dvossel/generic_aoc/chann...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Apr 6 16:09:51 CDT 2010


Author: dvossel
Date: Tue Apr  6 16:09:50 2010
New Revision: 256417

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=256417
Log:
fixes aoc multipler enum translation between ast and pri AOC-S msg 

Modified:
    team/dvossel/generic_aoc/channels/sig_pri.c

Modified: team/dvossel/generic_aoc/channels/sig_pri.c
URL: http://svnview.digium.com/svn/asterisk/team/dvossel/generic_aoc/channels/sig_pri.c?view=diff&rev=256417&r1=256416&r2=256417
==============================================================================
--- team/dvossel/generic_aoc/channels/sig_pri.c (original)
+++ team/dvossel/generic_aoc/channels/sig_pri.c Tue Apr  6 16:09:50 2010
@@ -2159,7 +2159,7 @@
 			ast_aoc_s_add_rate_duration(decoded,
 				charged_item,
 				aoc_s->item[idx].rate.duration.amount.cost,
-				aoc_s->item[idx].rate.duration.amount.multiplier,
+				sig_pri_aoc_multiplier_from_pri(aoc_s->item[idx].rate.duration.amount.multiplier),
 				aoc_s->item[idx].rate.duration.currency,
 				aoc_s->item[idx].rate.duration.time.length,
 				sig_pri_aoc_scale_to_ast(aoc_s->item[idx].rate.duration.time.scale),
@@ -2171,7 +2171,7 @@
 			ast_aoc_s_add_rate_flat(decoded,
 				charged_item,
 				aoc_s->item[idx].rate.flat.amount.cost,
-				aoc_s->item[idx].rate.flat.amount.multiplier,
+				sig_pri_aoc_multiplier_from_pri(aoc_s->item[idx].rate.flat.amount.multiplier),
 				aoc_s->item[idx].rate.flat.currency);
 			break;
 		case PRI_AOC_RATE_TYPE_VOLUME:
@@ -2179,7 +2179,7 @@
 				charged_item,
 				aoc_s->item[idx].rate.volume.unit,
 				aoc_s->item[idx].rate.volume.amount.cost,
-				aoc_s->item[idx].rate.volume.amount.multiplier,
+				sig_pri_aoc_multiplier_from_pri(aoc_s->item[idx].rate.volume.amount.multiplier),
 				aoc_s->item[idx].rate.volume.currency);
 			break;
 		case PRI_AOC_RATE_TYPE_SPECIAL_CODE:




More information about the asterisk-commits mailing list