pespin has submitted this change. (
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/36758?usp=email )
(
3 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
)Change subject: AMI_Function: Match field keys in case insensitive way
......................................................................
AMI_Function: Match field keys in case insensitive way
As per [1], "Keys are case insensitive".
[1]
https://docs.asterisk.org/Configuration/Interfaces/Asterisk-Manager-Interfa…
Change-Id: I9080f617c4e7272b9dd67d616069ac9350411f3c
---
M asterisk/AMI_Functions.ttcn
1 file changed, 20 insertions(+), 7 deletions(-)
Approvals:
Jenkins Builder: Verified
osmith: Looks good to me, approved
diff --git a/asterisk/AMI_Functions.ttcn b/asterisk/AMI_Functions.ttcn
index b70e0ee..c1211a9 100644
--- a/asterisk/AMI_Functions.ttcn
+++ b/asterisk/AMI_Functions.ttcn
@@ -84,22 +84,22 @@
ts_AMI_Field_Registration(template (value) charstring val) :=
ts_AMI_Field(AMI_FIELD_REGISTRATION, val);
template (present) AMI_Field
-tr_AMI_Field_Action(template (present) charstring val := ?) :=
tr_AMI_Field(AMI_FIELD_ACTION, val);
+tr_AMI_Field_Action(template (present) charstring val := ?) := tr_AMI_Field(pattern
@nocase AMI_FIELD_ACTION, val);
template (present) AMI_Field
-tr_AMI_Field_ActionId(template (present) charstring val := ?) :=
tr_AMI_Field(AMI_FIELD_ACTION_ID, val);
+tr_AMI_Field_ActionId(template (present) charstring val := ?) := tr_AMI_Field(pattern
@nocase AMI_FIELD_ACTION_ID, val);
template (present) AMI_Field
-tr_AMI_Field_Username(template (present) charstring val := ?) :=
tr_AMI_Field(AMI_FIELD_USERNAME, val);
+tr_AMI_Field_Username(template (present) charstring val := ?) := tr_AMI_Field(pattern
@nocase AMI_FIELD_USERNAME, val);
template (present) AMI_Field
-tr_AMI_Field_Secret(template (present) charstring val := ?) :=
tr_AMI_Field(AMI_FIELD_SECRET, val);
+tr_AMI_Field_Secret(template (present) charstring val := ?) := tr_AMI_Field(pattern
@nocase AMI_FIELD_SECRET, val);
template (present) AMI_Field
-tr_AMI_Field_Response(template (present) charstring val := ?) :=
tr_AMI_Field(AMI_FIELD_RESPONSE, val);
+tr_AMI_Field_Response(template (present) charstring val := ?) := tr_AMI_Field(pattern
@nocase AMI_FIELD_RESPONSE, val);
/* Extensions: */
template (present) AMI_Field
-tr_AMI_Field_Registration(template (present) charstring val := ?) :=
tr_AMI_Field(AMI_FIELD_REGISTRATION, val);
+tr_AMI_Field_Registration(template (present) charstring val := ?) := tr_AMI_Field(pattern
@nocase AMI_FIELD_REGISTRATION, val);
template (present) AMI_Field
-tr_AMI_Field_ResponseSuccess := tr_AMI_Field(AMI_FIELD_RESPONSE, "Success");
+tr_AMI_Field_ResponseSuccess := tr_AMI_Field(pattern @nocase AMI_FIELD_RESPONSE,
"Success");
/***********************
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/36758?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I9080f617c4e7272b9dd67d616069ac9350411f3c
Gerrit-Change-Number: 36758
Gerrit-PatchSet: 4
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged