I tried to check-value for an OctetString AVP both with
String value and exadecimal value.
The script and the log file for the OctetString AVP
check-value are as below:
Even if the expected and the received Origin-Host value
are the same, there is an error in the log file.
------------------------------------scenario.xml-----------------------------
<receive channel="trans-ip-v4">
<command name="CEA">
<avp name="Origin-Host" value="0x73697874696e6f"></avp>
<!-- Expected value is 0x73697874696e6f -->
</command>
<action>
<check-value name="Origin-Host"
behaviour="warning"></check-value>
</action>
</receive>
-----------------------------------------scenario.log---------------------
M | [Origin-Host |
---|---|
M | 73 69 78 74 69 6e 6f |
Received value is the same 0x73697874696e6f
|M| ]
|W|check failed in [CEA] command, value of avp
[Origin-Host] is incorrect