From 2d3a6154748061edd66b721bc11dbed9046d49ff Mon Sep 17 00:00:00 2001 From: Anders Svensson Date: Tue, 25 Sep 2012 17:40:17 +0200 Subject: Fix handling of Origin-State-Id config Documentation (correctly) say {'Origin-State-Id', Unsigned32()}, code (incorrectly) expected {'Origin-State-Id', [Unsigned32()]}. --- lib/diameter/src/base/diameter_capx.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/diameter/src/base/diameter_capx.erl') diff --git a/lib/diameter/src/base/diameter_capx.erl b/lib/diameter/src/base/diameter_capx.erl index 6c4d60ee9b..6a87819f04 100644 --- a/lib/diameter/src/base/diameter_capx.erl +++ b/lib/diameter/src/base/diameter_capx.erl @@ -141,7 +141,9 @@ cap('Host-IP-Address', Vs) when is_list(Vs) -> lists:map(fun ipaddr/1, Vs); -cap('Firmware-Revision', V) -> +cap(K, V) + when K == 'Firmware-Revision'; + K == 'Origin-State-Id' -> [V]; cap(_, Vs) -- cgit v1.2.3