Fix subscription-id decoding function
[anna.git] / example / diameter / launcher / resources / scripts / tinyTestcase.sh
index bd1c733..a8e44ea 100755 (executable)
@@ -115,7 +115,12 @@ update_testcase () {
   then
     # Send the request
     # Special case for SNR/SNA (code=8388636): the Session-Id is created on client and received on SLR previously
-    [ "$code" = "8388636" -a "$adml_type" = "server" ] && s_send="test|1|$send_command|$xml|$REQUEST_STEP"
+    if [ "$code" = "8388636" -a "$adml_type" = "server" ]
+    then
+      s_send="test|1|$send_command|$xml|$REQUEST_STEP"
+      s_wait="test|1|$wait_command|$code|0"
+    fi
+
     echo "$s_send" >> $TESTCASE_BN
 
     if [ -n "$resultcode" ]
@@ -139,7 +144,7 @@ update_testcase () {
 
     # Wait the request
     # Special case for SLR/SLA (code=8388635): the Session-Id is created on client
-    [ "$code" = "8388635" -a "$adml_type" = "server" ] && { s_wait="test|1|$wait_command|$code|1|||||$subscriber" ; REQUEST_STEP=$next_step_number ; }
+    [ "$code" = "8388635" -a "$adml_type" = "server" ] && { s_wait="test|1|$wait_command|$code|1" ; REQUEST_STEP=$next_step_number ; }
     echo "$s_wait" >> $TESTCASE_BN
 
     # Send the answer