pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37002?usp=email )
Change subject: DONTMERGE ...................................................................... DONTMERGE Change-Id: I85a86453300f7c8795cf96f87ab04a3258b6107f --- M asterisk/AMI_Functions.ttcn 1 file changed, 15 insertions(+), 6 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/02/37002/1 diff --git a/asterisk/AMI_Functions.ttcn b/asterisk/AMI_Functions.ttcn index 9c84d00..6762c79 100644 --- a/asterisk/AMI_Functions.ttcn +++ b/asterisk/AMI_Functions.ttcn @@ -417,7 +417,7 @@ } private function dec_AMI_Msg_ext(charstring txt) return AMI_Msg { - log("AMI dec: '", txt, "'"); + //log("AMI dec: '", txt, "'"); /* TEXT Enc/dec is not happy with empty values, workaround it: */ var Misc_Helpers.ro_charstring fields := { "AccountCode", "AccountID", "Challenge", "DestExten", "Exten", "Extension", "Hint", "Value" }; var charstring patched_txt := txt; @@ -436,7 +436,7 @@ patched_txt := f_str_replace(patched_txt, to_remove, ""); } - log("AMI patched dec: '", patched_txt, "'"); + //log("AMI patched dec: '", patched_txt, "'"); return dec_AMI_Msg(patched_txt); } @@ -459,14 +459,14 @@ alt { [] IPL4.receive(ASP_RecvFrom:?) -> value rx_rf { var charstring rx_str := f_ASP_RecvFrom_msg_to_charstring(rx_rf); - log("AMI rx: '", rx_str, "'"); + //log("AMI rx: '", rx_str, "'"); buf := buf & rx_str; - log("AMI buf: '", buf, "'"); + //log("AMI buf: '", buf, "'"); /* If several messages come together */ var boolean last_is_complete := f_str_endswith(buf, "\r\n\r\n"); var Misc_Helpers.ro_charstring msgs := f_str_split(buf, "\r\n\r\n"); - log("AMI split: ", msgs); + //log("AMI split: ", msgs); if (lengthof(msgs) > 0) { for (var integer i := 0; i < lengthof(msgs) - 1; i := i + 1) { var charstring txt := msgs[i] & "\r\n"; @@ -482,7 +482,7 @@ buf := msgs[lengthof(msgs) - 1]; } } - log("AMI remain buf: '", buf, "'"); + //log("AMI remain buf: '", buf, "'"); } [] IPL4.receive(ASP_ConnId_ReadyToRelease:?) { } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37002?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: I85a86453300f7c8795cf96f87ab04a3258b6107f Gerrit-Change-Number: 37002 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pes...@sysmocom.de> Gerrit-MessageType: newchange