static void basic_tests(int mode)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
if (push == 0)
}
/*- End of function --------------------------------------------------------*/
+static void misc_01_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_misc_01(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Preamble: N/A
Method: A call is made to the TUT from the tester which remains off hook for 10 minutes
without sending any signal.
- Pass criteria: The TUT should answer the call and enter the probing state after 3 seconds. The
+ Pass criteria: The TUT should answer the call and enter the probing state after 3s. The
TUT should continue to probe until the test is terminated.
Comments: This feature should also be verified by observation during the automoding tests.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, misc_01_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, misc_01_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void misc_02_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_misc_02(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
/*
III.5.4.1.2 Automatic resumption of automoding
Purpose: To ensure that the DCE can be configured to automatically re-assume the automode
- calling state after 10 s of no valid signal.
+ calling state after 10s of no valid signal.
Preamble: The TUT should be configured to automatically re-assume the initial automoding
state.
Method: The tester should set up a call to the TUT in V.21 mode and then drop the carrier.
- The tester will then transmit silence for 11 seconds followed by a 1300Hz tone for
- 5 seconds (i.e. V.23).
- Pass criteria: 1) Ten seconds after dropping the carrier the TUT should return to state Monitor 1.
- 2) After 2.7+-0.3 seconds the TUT should select V.23 mode and send a 390Hz tone.
+ The tester will then transmit silence for 11s followed by a 1300Hz tone for
+ 5s (i.e. V.23).
+ Pass criteria: 1) 10s after dropping the carrier the TUT should return to state Monitor 1.
+ 2) After 2.7+-0.3s the TUT should select V.23 mode and send a 390Hz tone.
Comments: The TUT should indicate that carrier has been lost at some time after the 1650Hz
signal is lost.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, misc_02_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, misc_02_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void misc_03_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_misc_03(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Preamble: The TUT should be configured to remain in the selected transmission mode when
the carrier is lost.
Method: The tester should set up a call to the TUT in V.21 mode, for example. It will drop
- the carrier for 9 seconds and then re-start transmission of the same carrier for
- 1 second followed by a short message.
+ the carrier for 9s and then re-start transmission of the same carrier for
+ 1s followed by a short message.
Pass criteria: The TUT should resume operation in V.21 mode and capture the entire test
message.
Comments: The TUT should indicate that carrier has been lost at some time after the carrier
signal is removed and not disconnect.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, misc_03_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, misc_03_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void misc_04_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_misc_04(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
automatically hang up when busy tone is detected. PABX busy tones may differ in
frequency and cadence from national parameters.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, misc_04_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, misc_04_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void misc_05_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_misc_05(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Pass criteria: The RINGING condition should be visually indicated by the TUT.
Comments: This test should be repeated across a range of valid timings and ring voltages.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, misc_05_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, misc_05_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void misc_06_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_misc_06(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
mode. There may be other cases, e.g. where the V.18 DCE is used in a gateway,
when automatic disconnection is required.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, misc_06_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, misc_06_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void misc_07_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_misc_07(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
However, this may possibly not be indicated by the DTE.
Comments: The possible modes are: V.21, V.23, Baudot 45, Baudot 50, EDT, Bell 103, DTMF.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, misc_07_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, misc_07_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void misc_08_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_misc_08(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Purpose: To ensure that the DCE implements circuit 135 or an equivalent way of indicating
presence of a signal.
Preamble: N/A
- Method: A call from the TUT should be answered in voice mode after 20 seconds. The tester
+ Method: A call from the TUT should be answered in voice mode after 20s. The tester
will transmit sampled voice messages. V.24 circuit 135 or its equivalent should be
observed.
Pass criteria: The ring tone and speech shall be indicated by circuit 135.
Comment: The response times and signal level thresholds of Circuit 135 are not specified in
ITU-T V.18 or V.24 and therefore the pattern indicated may vary.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, misc_08_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, misc_08_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void misc_09_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_misc_09(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Pass criteria: TBD
Comment: TBD
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, misc_09_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, misc_09_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_01_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_01(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
check for correct coding and timing of the signal.
Pass criteria: 1) No signal should be transmitted for one second after connecting to the line.
2) Four CI patterns are transmitted for each repetition.
- 3) No signal is transmitted for two seconds after the end of each CI.
+ 3) No signal is transmitted for 2s after the end of each CI.
4) Each CI must have the correct bit pattern.
- 5) The CI patterns followed by two seconds of silence must be repeated twice.
+ 5) The CI patterns followed by 2s of silence must be repeated twice.
6) One second after every 3 blocks CI an XCI signal must be transmitted.
7) The XCI should have the structure defined in 3.11.
8) The whole sequence should be repeated until the call is cleared.
9) When V.18 to V.18, the XCI must not force V.23 or Minitel mode.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_01_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_01_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_02_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_02(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Preamble: Make a V.18 call from the TUT.
Method: The Test System waits for the TUT to stop transmitting a CI and responds with an
ANS signal. The V.21 demodulator is used to decode the TXP sequence and a timer
- measures the silence intervals between them. ANS should be transmitted for 2
- seconds.
- Pass criteria: 1) No signal should be transmitted by TUT for 0.5 seconds from detection of ANS.
+ measures the silence intervals between them. ANS should be transmitted for 2s.
+ Pass criteria: 1) No signal should be transmitted by TUT for 0.5s from detection of ANS.
2) The TUT should reply with transmission of TXP as defined in 5.1.2.
3) Verify that TXP sequence has correct bit pattern.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_02_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_02_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_03_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_03(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Purpose: The TUT should stop sending TXP at the end of the current sequence when the ANS
tone ceases.
Preamble: Test ORG-02 should be successfully completed immediately prior to this test.
- Method: The tester sends ANS for 2 seconds followed by silence. The tester will then
+ Method: The tester sends ANS for 2s followed by silence. The tester will then
monitor for cessation of TXP at the end of the answer tone.
Pass criteria: The TUT should stop sending TXP at the end of the current sequence when ANS
tone ceases.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_03_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_03_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_04_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_04(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
III.5.4.2.4 ANS tone followed by TXP
Purpose: To check correct detection of V.18 modem.
Preamble: Tests ORG-02 and ORG-03 should be successfully completed prior to this test.
- Method: Tester transmits ANS for 2.5 seconds followed by 75ms of no tone then transmits
- 3 TXP sequences using V.21 (2) and starts a 1 s timer. It will then transmit 1650Hz
- for 5 seconds.
+ Method: Tester transmits ANS for 2.5s followed by 75ms of no tone then transmits
+ 3 TXP sequences using V.21 (2) and starts a 1s timer. It will then transmit 1650Hz
+ for 5s.
Pass criteria: 1) TUT should initially respond with TXP.
- 2) TUT should stop sending TXP within 0.2 seconds of end of ANS.
- 3) TUT should respond with 980Hz carrier within 1 second of end of 3 TXP sequences.
+ 2) TUT should stop sending TXP within 0.2s of end of ANS.
+ 3) TUT should respond with 980Hz carrier within 1s of end of 3 TXP sequences.
4) Data should be transmitted and received according to ITU-T T.140 to comply
with the V.18 operational requirements.
Comments: The TUT should indicate that V.18 mode has been selected.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_04_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_04_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_05_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_05(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Purpose: To check correct detection of V.21 modem upper channel when preceded by answer
tone and to confirm discrimination between V.21 and V.18 modes.
Preamble: Tests ORG-02 and ORG-03 should be successfully completed prior to this test.
- Method: Tester transmits ANS for 2.5 seconds followed by 75ms of no tone then transmits
+ Method: Tester transmits ANS for 2.5s followed by 75ms of no tone then transmits
1650Hz and starts a 0.7 second timer.
Pass criteria: 1) TUT should initially respond with TXP.
- 2) TUT should stop sending TXP within 0.2 seconds of end of ANS.
- 3) TUT should respond with 980Hz at 0.5(+0.2-0.0) seconds of start of 1650Hz.
+ 2) TUT should stop sending TXP within 0.2s of end of ANS.
+ 3) TUT should respond with 980Hz at 0.5(+0.2-0.0)s of start of 1650Hz.
4) Data should be transmitted and received at 300 bit/s complying with Annex F.
Comments: Selection of ITU-T V.21 as opposed to ITU-T V.18 should be confirmed by
examination of TUT. If there is no visual indication, verify by use of ITU-T T.50 for
ITU-T V.21 as opposed to UTF-8 coded ISO 10646 character set for ITU-T V.18.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_05_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_05_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_06_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_06(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Purpose: To check correct detection of V.23 modem upper channel when preceded by answer
tone.
Preamble: Tests ORG-02 and ORG-03 should be successfully completed prior to this test.
- Method: Tester transmits ANS for 2.5 seconds followed by 75ms of no tone then transmits
- 1300Hz and starts a 2.7 s timer.
+ Method: Tester transmits ANS for 2.5s followed by 75ms of no tone then transmits
+ 1300Hz and starts a 2.7s timer.
Pass criteria: 1) TUT should initially respond with TXP.
- 2) TUT should stop sending TXP within 0.2 seconds of end of ANS.
- 3) TUT should respond with 390Hz after 1.7(+0.2-0.0) seconds of start of 1300Hz.
+ 2) TUT should stop sending TXP within 0.2s of end of ANS.
+ 3) TUT should respond with 390Hz after 1.7(+0.2-0.0)s of start of 1300Hz.
4) Data should be transmitted and received at 75 bit/s and 1200 bit/s respectively
by the TUT to comply with Annex E.
Comments: The TUT should indicate that V.23 mode has been selected.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_06_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_06_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_07_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_07(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
III.5.4.2.7 ANS tone followed by no tone
Purpose: To confirm that TUT does not lock up under this condition.
Preamble: Tests ORG-02 and ORG-03 should be successfully completed prior to this test.
- Method: Tester transmits ANS for 2.5 seconds followed by no tone for 10 s. It then transmits
- DTMF tones for 2 seconds.
+ Method: Tester transmits ANS for 2.5s followed by no tone for 10 s. It then transmits
+ DTMF tones for 2s.
Pass criteria: 1) TUT should initially respond with TXP.
- 2) TUT should stop sending TXP within 0.2 seconds of end of ANS.
+ 2) TUT should stop sending TXP within 0.2s of end of ANS.
3) TUT should return to Monitor 1 state and then connect in DTMF mode within
- 12 seconds of the end of ANS tone.
+ 12s of the end of ANS tone.
Comments: This condition would cause the terminal to lock up if the V.18 standard is followed
literally. It may however, occur when connected to certain Swedish textphones if the
handset is lifted just after the start of an automatically answered incoming call.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_07_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_07_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_08_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_08(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Purpose: To verify that the TUT correctly detects the Bell 103 upper channel signal during
the 2-second interval between transmission of CI sequences.
Preamble: N/A
- Method: The tester waits for a CI and then sends a 2225Hz signal for 5 seconds.
- Pass criteria: 1) The TUT should respond with a 1270Hz tone in 0.5+-0.1 seconds.
+ Method: The tester waits for a CI and then sends a 2225Hz signal for 5s.
+ Pass criteria: 1) The TUT should respond with a 1270Hz tone in 0.5+-0.1s.
2) Data should be transmitted and received at 300 bit/s to comply with Annex D.
Comments: The TUT should indicate that Bell 103 mode has been selected.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_08_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_08_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_09_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_09(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Purpose: To verify that the TUT correctly detects the V.21 upper channel signal during the
2-second interval between transmission of CI sequences.
Preamble: N/A
- Method: The tester waits for a CI and then sends a 1650Hz signal for 5 seconds.
- Pass criteria: 1) The TUT should respond with a 980Hz tone in 0.5+-0.1 seconds.
+ Method: The tester waits for a CI and then sends a 1650Hz signal for 5s.
+ Pass criteria: 1) The TUT should respond with a 980Hz tone in 0.5+-0.1s.
2) Data should be transmitted and received at 300 bit/s to comply with Annex F.
Comments: The TUT should indicate that V.21 mode has been selected.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_09_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_09_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_10_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_10(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Purpose: To verify that the TUT correctly detects the V.23 upper channel signal during the
2-second interval between transmission of CI sequences.
Preamble: N/A
- Method: The tester waits for a CI and then sends a 1300Hz signal for 5 seconds.
- Pass criteria: 1) The TUT should respond with a 390Hz tone in 1.7+-0.1 seconds.
+ Method: The tester waits for a CI and then sends a 1300Hz signal for 5s.
+ Pass criteria: 1) The TUT should respond with a 390Hz tone in 1.7+-0.1s.
2) Data should be transmitted and received at 75 bit/s and 1200 bit/s respectively
by the TUT to comply with Annex E.
Comments: The TUT should indicate that V.23 mode has been selected.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_10_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_10_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_11_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_11(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Purpose: To confirm correct selection of V.23 reverse mode during sending of XCI.
Preamble: N/A
Method: The tester should wait for the start of the XCI signal and then send 390Hz to TUT
- for 5 seconds.
+ for 5s.
Pass criteria: 1) The TUT should complete the XCI as normal.
2) The TUT should then maintain the 1300Hz tone while the 390Hz test tone is
present.
3) Data should be transmitted and received at 1200 bit/s and 75 bit/s respectively
by the TUT to comply with Annex E when connection is indicated.
- Comments: The TUT should indicate that V.23 mode has been selected at least 3 seconds after
+ Comments: The TUT should indicate that V.23 mode has been selected at least 3s after
the start of the 390Hz tone.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_11_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_11_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_12_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_12(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
automode answer state. The TUT may then select either 45.45 or 50 bit/s for the
transmission.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_12_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_12_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_13_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_13(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
TUT should comply with ITU-T Q.24 for the Danish Administration while
receiving for best possible performance.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_13_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_13_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_14_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_14(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
the number lost should be minimal. The data bits and parity are specified in
Annex C.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_14_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_14_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_15_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_15(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Purpose: To verify the presence of 980/1180Hz at a different signalling rate than 110 bit/s
returns the TUT modem to the "monitor A" state.
Preamble: N/A
- Method: The tester transmits 980/1180Hz signals at 300 bit/s for 2 seconds.
+ Method: The tester transmits 980/1180Hz signals at 300 bit/s for 2s.
Pass criteria: The TUT should not select EDT or any other mode and should continue to transmit
the CI signal.
Comments: Echoes of the CI sequences may be detected at 300 bit/s.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_15_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_15_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_16_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_16(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
III.5.4.2.16 980Hz detection
Purpose: To confirm correct selection of V.21 reverse mode.
Preamble: N/A
- Method: The tester sends 980Hz to TUT for 5 seconds.
- Pass criteria: 1) TUT should respond with 1650Hz tone after 1.5+-0.1 seconds after start of
+ Method: The tester sends 980Hz to TUT for 5s.
+ Pass criteria: 1) TUT should respond with 1650Hz tone after 1.5+-0.1s after start of
980Hz tone.
2) Data should be transmitted and received at 300 bit/s complying with Annex F.
Comments: The TUT should indicate that V.21 mode has been selected.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_16_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_16_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_17_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_17(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
III.5.4.2.17 Loss of signal after 980Hz
Purpose: To confirm that TUT returns to the Monitor 1 state if 980Hz signal disappears.
Preamble: N/A
- Method: The tester sends 980Hz to TUT for 1.2 seconds followed by silence for 5 seconds.
+ Method: The tester sends 980Hz to TUT for 1.2s followed by silence for 5s.
Pass criteria: TUT should not respond to the 980Hz tone and resume sending CI signals after a
- maximum of 2.4 seconds from the end of the 980Hz tone.
+ maximum of 2.4s from the end of the 980Hz tone.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_17_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_17_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_18_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_18(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
III.5.4.2.18 Tr timer
Purpose: To confirm that TUT returns to the Monitor 1 state if Timer Tr expires.
Preamble: N/A
- Method: The tester sends 980Hz to TUT for 1.2 seconds followed by 1650Hz for 5 seconds
+ Method: The tester sends 980Hz to TUT for 1.2s followed by 1650Hz for 5s
with no pause.
- Pass criteria: TUT should respond with 980Hz after 1.3+-0.1 seconds of 1650Hz.
- Comments: This implies timer Tr has expired 2 seconds after the start of the 980Hz tone and
- then 1650Hz has been detected for 0.5 seconds.
+ Pass criteria: TUT should respond with 980Hz after 1.3+-0.1s of 1650Hz.
+ Comments: This implies timer Tr has expired 2s after the start of the 980Hz tone and
+ then 1650Hz has been detected for 0.5s.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_18_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_18_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_19_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_19(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
III.5.4.2.19 Bell 103 (1270Hz signal) detection
Purpose: To confirm correct selection of Bell 103 reverse mode.
Preamble: N/A
- Method: The tester sends 1270Hz to TUT for 5 seconds.
+ Method: The tester sends 1270Hz to TUT for 5s.
Pass criteria: 1) TUT should respond with 2225Hz tone after 0.7+-0.1 s.
2) Data should be transmitted and received at 300 bit/s complying with Annex D.
Comments: The TUT should indicate that Bell 103 mode has been selected.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_19_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_19_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_20_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_20(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
presence and cadence of the tones for instance by a flashing light. The TUT may
disconnect on reception of tones indicating a failed call attempt.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_20_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_20_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_21_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_21(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Comments: Some high speed modems may fall back to a compatibility mode, e.g. V.21 or V.23
that should be correctly detected by the TUT.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_21_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_21_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_22_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_22(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Comments: Ideally the TUT should detect the presence of a fax machine and report it back to
the user.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_22_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_22_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_23_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_23(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Comments: Ideally the TUT should report the presence of speech back to the user, e.g. via
circuit 135.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_23_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_23_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_24_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_24(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Preamble: Make a V.18 call from the TUT.
Method: The Test System waits for the TUT to stop transmitting a CI and responds with an
ANSam signal. The V.21 demodulator is used to decode the CM sequence. ANSam
- should be transmitted for 2 seconds.
- Pass criteria: 1) No signal should be transmitted by TUT for 0.5 seconds from detection of
+ should be transmitted for 2s.
+ Pass criteria: 1) No signal should be transmitted by TUT for 0.5s from detection of
ANSam.
2) The TUT should reply with transmission of CM as defined in 5.2.13.
3) Verify that CM sequence has correct bit pattern.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_24_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_24_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void org_25_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_org_25(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Method: The Test System waits for the TUT to start transmitting V.21 carrier (1).
Pass criteria: The TUT should connect by sending V.21 carrier (1).
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_25_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, org_25_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_01_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_01(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
/*
III.5.4.3.1 Ta timer
- Purpose: To ensure that on connecting the call, the DCE starts timer Ta (3 seconds) and on
+ Purpose: To ensure that on connecting the call, the DCE starts timer Ta (3s) and on
expiry begins probing.
Preamble: N/A
Method: The tester makes a call to the TUT and attempts to determine when the TUT
answers the call. It will then monitor for any signal.
- Pass criteria: The TUT should start probing 3 seconds after answering the call.
+ Pass criteria: The TUT should start probing 3s after answering the call.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_01_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_01_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_02_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_02(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
III.5.4.3.2 CI signal detection
Purpose: To confirm the correct detection and response to the V.18 CI signal.
Preamble: N/A
- Method: The tester will transmit 2 sequences of 4 CI patterns separated by 2 seconds. It will
+ Method: The tester will transmit 2 sequences of 4 CI patterns separated by 2s. It will
monitor for ANS and measure duration.
Pass criteria: 1) The TUT should respond after either the first or second CI with ANSam tone.
- 2) ANSam tone should remain for 3 seconds +-0.5 s followed by silence.
+ 2) ANSam tone should remain for 3s+-0.5s followed by silence.
Comments: The ANSam tone is a modulated 2100Hz tone. It may have phase reversals. The
XCI signal is tested in a separate test.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_02_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_02_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_03_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_03(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Purpose: To confirm that the TUT will respond correctly to TXP signals, i.e. by stopping
ANSam tone on reception of TXP signal.
Preamble: N/A
- Method: The tester will transmit 2 sequences of 4 CI patterns separated by 2 seconds. On
- reception of the ANSam tone the tester will wait 0.5 seconds and then begin
+ Method: The tester will transmit 2 sequences of 4 CI patterns separated by 2s. On
+ reception of the ANSam tone the tester will wait 0.5s and then begin
transmitting the TXP signal in V.21 (1) mode.
Pass criteria: 1) On reception of the TXP signal, the TUT should remain silent for 75+-5ms.
2) The TUT should then transmit 3 TXP sequences in V.21(2) mode.
V.18 mode connection is completed.
Comments: The TUT should indicate V.18 mode.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_03_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_03_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_04_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_04(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
timer Tt expires.
Preamble: Successful completion of test ANS-03.
Method: After completion of test ANS-03 the tester will continue to monitor for signals.
- Pass criteria: The TUT should start probing 3 seconds after ANSam disappears.
+ Pass criteria: The TUT should start probing 3s after ANSam disappears.
Comments: It is assumed that timer Ta is restarted on return to Monitor A.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_04_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_04_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_05_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_05(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Purpose: To check correct detection of V.21 modem lower channel when preceded by answer
tone.
Preamble: N/A
- Method: Tester transmits ANS for 2.5 seconds followed by 75ms of no tone then transmits
- 980Hz and starts a 1 s timer.
+ Method: Tester transmits ANS for 2.5s followed by 75ms of no tone then transmits
+ 980Hz and starts a 1s timer.
Pass criteria: TUT should respond with 1650Hz within 400+-100ms of start of 980Hz.
Comments: The TUT should indicate that V.21 mode has been selected.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_05_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_05_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_06_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_06(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Purpose: To check correct detection of V.23 modem upper channel when preceded by answer
tone.
Preamble: N/A
- Method: Tester transmits ANS for 2.5 seconds followed by 75ms of no tone then transmits
+ Method: Tester transmits ANS for 2.5s followed by 75ms of no tone then transmits
1300Hz and starts a 2-s timer.
- Pass criteria: TUT should respond with 390Hz after 1.7(+0.2-0.0) seconds of start of 1300Hz.
+ Pass criteria: TUT should respond with 390Hz after 1.7(+0.2-0.0)s of start of 1300Hz.
Comments: The TUT should indicate that V.23 mode has been selected.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_06_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_06_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_07_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_07(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Purpose: To check correct detection of V.21 modem upper channel when preceded by answer
tone and to confirm discrimination between V.21 and V.18 modes.
Preamble: N/A
- Method: Tester transmits ANS for 2.5 seconds followed by 75ms of no tone then transmits
+ Method: Tester transmits ANS for 2.5s followed by 75ms of no tone then transmits
1650Hz and starts a 1-second timer.
Pass criteria: TUT should respond with 980Hz within 400+-100ms of start of 1650Hz.
Comments: The TUT should indicate that V.21 mode has been selected.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_07_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_07_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_08_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_08(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Pass criteria: The TUT should respond with the appropriate carrier depending on when it
connects.
Comments: The TUT should indicate a V.21 connection. The time for which each frequency is
- transmitted is random and varies between 0.64 and 2.56 seconds.
+ transmitted is random and varies between 0.64 and 2.56s.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_08_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_08_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_09_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_09(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Purpose: To confirm correct detection of 980Hz calling tones as defined in V.25.
Preamble: N/A
Method: The tester will send bursts of 980Hz signals (a) 400ms, (b) 500ms, (c) 700ms and
- (d) 800ms followed by 1 second of silence.
- Pass criteria: 1) The TUT should not respond to bursts of 400 or 800ms.
- 2) The TUT should immediately begin probing after a burst of 980Hz for 500 or
- 700ms followed by 1 second of silence.
+ (d) 800ms followed by 1s of silence.
+ Pass criteria: 1) The TUT should not respond to bursts of 400ms or 800ms.
+ 2) The TUT should immediately begin probing after a burst of 980Hz for 500ms or
+ 700ms followed by 1s of silence.
Comments: The probe sent by the TUT will depend on the country setting.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_09_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_09_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_10_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_10(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Purpose: To confirm correct selection of V.21 calling modem when the received signal is not
modulated, i.e. there is no 1180Hz.
Preamble: N/A
- Method: The tester sends 980Hz to TUT for 2 seconds.
- Pass criteria: The TUT should respond with a 1650Hz tone in 1.5+-0.1 seconds.
+ Method: The tester sends 980Hz to TUT for 2s.
+ Pass criteria: The TUT should respond with a 1650Hz tone in 1.5+-0.1s.
Comments: The TUT should indicate that V.21 mode has been selected.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_10_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_10_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_11_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_11(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
be lost during the detection process. However, the number lost should be minimal.
The data bits and parity are specified in Annex C.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_11_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_11_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_12_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_12(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
(1650Hz) probe. However, it is catered for in V.18. It is more likely that this is
where CI or TXP characters would be detected (see test ANS-02).
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_12_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_12_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_13_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_13(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
/*
III.5.4.3.13 Tr timer
Purpose: To ensure that the TUT returns to the Monitor A state on expiry of timer Tr
- (2 seconds). Timer Tr is started when a modulated V.21 (1) signal is detected.
+ (2s). Timer Tr is started when a modulated V.21 (1) signal is detected.
Preamble: N/A
Method: The tester will transmit 980Hz for 200ms followed by alternating 980Hz/1180Hz
- at 110 bit/s for 100ms followed by 980Hz for 1 second.
- Pass criteria: The TUT should begin probing 4+-0.5 seconds after the 980Hz signal is removed.
+ at 110 bit/s for 100ms followed by 980Hz for 1s.
+ Pass criteria: The TUT should begin probing 4+-0.5s after the 980Hz signal is removed.
Comments: It is not possible to be precise on timings for this test since the definition of a
"modulated signal" as in 5.2.4.4 is not specified. Therefore it is not known exactly
when timer Tr will start. It is assumed that timer Ta is restarted on re-entering the
Monitor A state.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_13_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_13_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_14_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_14(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
/*
III.5.4.3.14 Te timer
Purpose: To ensure that the TUT returns to the Monitor A on expiry of timer Te
- (2.7 seconds). Timer Te is started when a 980Hz signal is detected.
+ (2.7s). Timer Te is started when a 980Hz signal is detected.
Preamble: N/A
Method: The tester will transmit 980Hz for 200ms followed silence for 7 s.
- Pass criteria: The TUT should begin probing 5.5+-0.5 seconds after the 980Hz signal is removed.
- Comments: It is assumed that timer Ta (3 seconds) is restarted on re-entering the Monitor A
+ Pass criteria: The TUT should begin probing 5.5+-0.5s after the 980Hz signal is removed.
+ Comments: It is assumed that timer Ta (3s) is restarted on re-entering the Monitor A
state.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_14_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_14_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_15_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_15(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
automode answer state. The TUT may then select either 45.45 or 50 bit/s for the
transmission.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_15_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_15_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_16_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_16(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Comments: The TUT should indicate that it has selected DTMF mode. The DTMF capabilities
of the TUT should comply with ITU-T Q.24 for the Danish Administration.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_16_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_16_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_17_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_17(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
III.5.4.3.17 Bell 103 (1270Hz signal) detection
Purpose: To ensure correct detection and selection of Bell 103 modems.
Preamble: N/A
- Method: The tester sends 1270Hz to TUT for 5 seconds.
- Pass criteria: TUT should respond with 2225Hz tone after 0.7+-0.1 s.
+ Method: The tester sends 1270Hz to TUT for 5s.
+ Pass criteria: TUT should respond with 2225Hz tone after 0.7+-0.1s.
Comments: The TUT should indicate that Bell 103 mode has been selected.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_17_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_17_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_18_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_18(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
III.5.4.3.18 Bell 103 (2225Hz signal) detection
Purpose: To ensure correct detection and selection of Bell 103 modems in reverse mode.
Preamble: N/A
- Method: The tester sends 2225Hz to TUT for 5 seconds.
- Pass criteria: The TUT should respond with 1270Hz after 1+-0.2 seconds.
+ Method: The tester sends 2225Hz to TUT for 5s.
+ Pass criteria: The TUT should respond with 1270Hz after 1+-0.2s.
Comments: The TUT should indicate that Bell 103 mode has been selected. Bell 103 modems
use 2225Hz as both answer tone and higher frequency of the upper channel.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_18_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_18_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_19_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_19(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
III.5.4.3.19 V.21 Reverse mode (1650Hz) detection
Purpose: To ensure correct detection and selection of V.21 reverse mode.
Preamble: N/A
- Method: The tester sends 1650Hz to TUT for 5 seconds.
- Pass criteria: The TUT should respond with 980Hz after 0.4+-0.2 seconds.
+ Method: The tester sends 1650Hz to TUT for 5s.
+ Pass criteria: The TUT should respond with 980Hz after 0.4+-0.2s.
Comments: The TUT should indicate that V.21 mode has been selected.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_19_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_19_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_20_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_20(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Purpose: To confirm correct detection of 1300Hz calling tones as defined in ITU-T V.25.
Preamble: N/A
Method: The tester will send 1300Hz bursts of (a) 400ms, (b) 500ms, (c) 700ms and
- (d) 800ms followed by 1 second of silence.
- Pass criteria: 1) The TUT should not respond to bursts of 400 or 800ms.
- 2) The TUT should immediately begin probing after a burst of 1300Hz for 500 or
- 700ms followed by 1 second of silence.
+ (d) 800ms followed by 1s of silence.
+ Pass criteria: 1) The TUT should not respond to bursts of 400ms or 800ms.
+ 2) The TUT should immediately begin probing after a burst of 1300Hz for 500ms or
+ 700ms followed by 1s of silence.
Comments: The probe sent by the TUT will depend on the country setting.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_20_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_20_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_21_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_21(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
III.5.4.3.21 V.23 Reverse mode (1300Hz) detection
Purpose: To ensure correct detection and selection of V.23 reverse mode.
Preamble: N/A
- Method: The tester sends 1300Hz only, with no XCI signals, to TUT for 5 seconds.
- Pass criteria: The TUT should respond with 390Hz after 1.7+-0.1 seconds.
+ Method: The tester sends 1300Hz only, with no XCI signals, to TUT for 5s.
+ Pass criteria: The TUT should respond with 390Hz after 1.7+-0.1s.
Comments: The TUT should indicate that V.23 mode has been selected.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_21_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_21_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_22_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_22(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
silent for 500ms then transmit the TXP signal in V.21 (1) mode.
Pass criteria: The TUT should respond with TXP using V.21 (2) and select V.18 mode.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_22_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_22_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_23_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_23(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Pass criteria: The TUT should use the orders described in Appendix I.
Comments: The order of the probes is not mandatory.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_23_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_23_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_24_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_24(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Method: The tester will call the TUT, wait for Ta to expire and then monitor the probes sent
by the TUT.
Pass criteria: The TUT should send the user defined probe message for Annexes A, B, and C
- modes followed by a pause of Tm (default 3) seconds.
+ modes followed by a pause of Tm (default 3)s.
Comments: The carrierless modes are those described in Annexes A, B and C.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_24_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_24_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_25_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_25(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
/*
III.5.4.3.25 Interrupted carrierless mode probe
Purpose: To ensure that the TUT continues probing from the point of interruption a maximum
- of 20 s after a failed connect attempt.
+ of 20s after a failed connect attempt.
Preamble: The TUT should be configured for the UK country setting.
Method: The tester will call the TUT, wait for Ta to expire and then during the pause after
the first Baudot probe it will send a 200ms burst of 1270Hz followed by silence
- for 30 s.
+ for 30s.
Pass criteria: The TUT should transmit silence on detecting the 1270Hz tone and then continue
- probing starting with the V.23 probe 20 seconds after the end of the 1270Hz signal.
+ probing starting with the V.23 probe 20s after the end of the 1270Hz signal.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_25_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_25_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_26_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_26(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
/*
III.5.4.3.26 Stimulate carrier mode probe time
- Purpose: To ensure that the TUT sends each carrier mode for time Tc (default 6 seconds)
+ Purpose: To ensure that the TUT sends each carrier mode for time Tc (default 6s)
preceded by the correct answer tone.
Preamble: None.
Method: The tester will call the TUT, wait for Ta to expire and then monitor the probes sent
by the TUT.
- Pass criteria: The TUT should send the ANS tone (2100Hz) for 1 second followed by silence for
+ Pass criteria: The TUT should send the ANS tone (2100Hz) for 1s followed by silence for
75+-5ms and then the 1650Hz, 1300Hz and 2225Hz probes for time Tc.
Comments: The carrier modes are those described in Annexes D, E, and F.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_26_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_26_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_27_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_27(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Purpose: To confirm correct selection of V.23 mode.
Preamble: N/A
Method: The tester waits until the 1300Hz probe is detected from the TUT and then
- transmits 390Hz for 11 seconds.
- Pass criteria: 1) After 3 seconds of the 390Hz signal the TUT should indicate that V.23 has
+ transmits 390Hz for 11s.
+ Pass criteria: 1) After 3s of the 390Hz signal the TUT should indicate that V.23 has
been selected.
2) The tester will confirm that the 1300Hz carrier is maintained for at least
- 4 seconds beyond the normal probe duration, i.e. Tc (= 6 s default) + 4 s =
- 10 seconds total.
+ 4s beyond the normal probe duration, i.e. Tc (= 6s default) + 4s =
+ 10s total.
Comments: All known V.23 devices need to receive 1300Hz tone before they will respond with
390Hz. When the 1300Hz probe is not being transmitted, a 390Hz tone may be
interpreted as a 400Hz network tone.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_27_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_27_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_28_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_28(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
/*
III.5.4.3.28 Interrupted carrier mode probe
Purpose: To ensure that the TUT continues probing from the point of interruption a maximum
- of 4 s after a failed connect attempt.
+ of 4s after a failed connect attempt.
Preamble: The TUT should be configured for the UK country setting.
Method: The tester will call the TUT, wait for Ta to expire and then during the first V.21
- probe it will send a 200ms burst of 1270Hz followed by silence for 30 s.
+ probe it will send a 200ms burst of 1270Hz followed by silence for 30s.
Pass criteria: The TUT should transmit silence on detecting the 1270Hz tone and then continue
- probing with the Baudot stored message 4 seconds after the end of the 1270Hz
+ probing with the Baudot stored message 4s after the end of the 1270Hz
burst.
- Comments: It is most likely that the TUT will return to probing time Ta (3 seconds) after the
+ Comments: It is most likely that the TUT will return to probing time Ta (3s) after the
1270Hz tone ceases. This condition needs further clarification.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_28_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_28_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_29_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_29(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Comments: The TUT may not respond to any signals while a carrierless mode probe is being
sent since these modes are half duplex.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_29_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_29_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_30_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_30(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
tones may be ignored. Some devices may only provide a visual indication of the
presence and cadence of the tones for instance by a flashing light.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_30_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_30_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_31_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_31(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Purpose: To determine whether the TUT can discriminate fax calling tones.
Preamble: N/A
Method: The tester will call the TUT and send the fax calling tone, CNG. This is an 1100Hz
- tone with cadence of 0.5 seconds ON and 3 seconds OFF as defined in ITU-T T.30.
+ tone with cadence of 0.5s ON and 3s OFF as defined in ITU-T T.30.
Pass criteria: The TUT should not respond to this signal and may report it as being a calling fax
machine.
Comments: This is an optional test as detection of the fax calling tone is not required by
ITU-T V.18.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_31_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_31_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_32_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_32(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Comments: Ideally the TUT should report the presence of speech back to the user. This is an
optional test.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_32_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_32_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void ans_33_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_ans_33(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Purpose: To confirm that the TUT will respond correctly to CM signals and connect
according to V.8 procedures.
Preamble: N/A
- Method: The tester will transmit 2 sequences of 4 CI patterns separated by 2 seconds. On
- reception of the ANSam tone the tester will wait 0.5 seconds and then begin
+ Method: The tester will transmit 2 sequences of 4 CI patterns separated by 2s. On
+ reception of the ANSam tone the tester will wait 0.5s and then begin
transmitting the CM signal with textphone and V.21 specified.
Pass criteria: 1) On reception of the CM signal, the TUT should transmit JM with textphone
and V.21.
V.18 mode connection is completed.
Comments: The TUT should indicate V.18 mode.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_33_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, ans_33_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void mon_01_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_mon_01(void)
{
printf("Test not yet implemented\n");
}
/*- End of function --------------------------------------------------------*/
+static void mon_21_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_mon_21(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
/*
III.5.4.4.1 Automode monitor Ta timer test
- Purpose: To ensure that on entering monitor mode, timer Ta (3 seconds) is not active and that
+ Purpose: To ensure that on entering monitor mode, timer Ta (3s) is not active and that
the TUT does not enter the probing state.
Preamble: N/A
Method: The TUT should be put into monitor state. The tester will then monitor for signals
for 1 minute.
Pass criteria: The TUT should not start probing.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, mon_21_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, mon_21_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void mon_22_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_mon_22(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
ITU-T V.25.
Preamble: N/A
Method: The tester will send 1300Hz bursts of (a) 400ms, (b) 500ms, (c) 700ms and
- (d) 800ms followed by 1 second of silence.
- Pass criteria: 1) The TUT should not respond to bursts of 400 or 800ms.
+ (d) 800ms followed by 1s of silence.
+ Pass criteria: 1) The TUT should not respond to bursts of 400ms or 800ms.
2) The TUT should report detection of calling tones to the DTE after a burst of
- 1300Hz for 500 or 700ms followed by 1 second of silence.
+ 1300Hz for 500ms or 700ms followed by 1s of silence.
Comments: In automode answer, the 1300Hz calling causes the DCE to start probing. In
monitor mode it should only report detection to the DTE.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, mon_22_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, mon_22_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void mon_23_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_mon_23(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
ITU-T V.25.
Preamble: N/A
Method: The tester will send 980Hz bursts of (a) 400ms, (b) 500ms, (c) 700ms and
- (d) 800ms followed by 1 second of silence.
- Pass criteria: 1) The TUT should not respond to bursts of 400 or 800ms.
+ (d) 800ms followed by 1s of silence.
+ Pass criteria: 1) The TUT should not respond to bursts of 400ms or 800ms.
2) The TUT should report detection of calling tones to the DTE after a burst of
- 980Hz for 500 or 700ms followed by 1 second of silence.
+ 980Hz for 500ms or 700ms followed by 1s of silence.
Comments: In automode answer, the 980Hz calling causes the DCE to start probing. In monitor
mode it should only report detection to the DTE.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, mon_23_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, mon_23_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
{
printf("1-1 %d '%s'\n", len, msg);
if (user_data == NULL)
- strcat(result[0], (const char *) msg);
+ strcat(result[1], (const char *) msg);
//else
// v18_put(v18[1], "abcdefghij", 10);
}
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
v18_put(v18[0], "z", 1);
for (i = 0; i < 10000; i++)
{
ref = "cdefghij";
printf("Result:\n%s\n", result[0]);
printf("Reference result:\n%s\n", ref);
- if (unexpected_echo || strcmp(result[0], ref) != 0)
+ if (unexpected_echo || strcmp(result[1], ref) != 0)
return -1;
return 1;
}
/*- End of function --------------------------------------------------------*/
+static void x_02_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_x_02(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
transmit the string "abcdef" at each rate.
Pass criteria: The tester will measure the bit timings and confirm the rates.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_5BIT_4545, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_5BIT_4545, V18_AUTOMODING_GLOBAL, x_02_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_5BIT_4545, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_5BIT_4545, V18_AUTOMODING_GLOBAL, x_02_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
+static void x_03_put_text_msg(void *user_data, const uint8_t *msg, int len)
+{
+}
+/*- End of function --------------------------------------------------------*/
+
static int test_x_03(void)
{
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
Comments: The probe message must be long enough for the tester to establish the bit rate. "GA"
may not be sufficient.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_5BIT_4545, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 0);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_5BIT_4545, V18_AUTOMODING_USA, x_03_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_5BIT_4545, V18_AUTOMODING_GLOBAL, NULL, (void *) (intptr_t) 1);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_5BIT_4545, V18_AUTOMODING_USA, x_03_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
}
/*- End of function --------------------------------------------------------*/
-static void x_04_put_echo_text_msg(void *user_data, const uint8_t *msg, int len)
-{
- printf("Unexpected ECHO received (%d) '%s'\n", len, msg);
- unexpected_echo = TRUE;
-}
-/*- End of function --------------------------------------------------------*/
-
static void x_04_put_text_msg(void *user_data, const uint8_t *msg, int len)
{
+ if (user_data == NULL)
+ {
+ strcat(result[0], (const char *) msg);
+printf("Unexpected ECHO received (%d) '%s'\n", len, msg);
+ unexpected_echo = TRUE;
+ }
+ else
+ {
printf("1-1 %d '%s'\n", len, msg);
- strcat(result[0], (const char *) msg);
+ strcat(result[1], (const char *) msg);
+ /* Echo each received character */
+ //v18_put(v18[1], msg, len);
+ }
}
/*- End of function --------------------------------------------------------*/
static int test_x_04(void)
{
char msg[1024];
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
assumed that the character conversion is the same for Baudot at 50 bit/s and any
other supported speed.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_5BIT_4545, V18_AUTOMODING_GLOBAL, x_04_put_echo_text_msg, NULL);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_5BIT_4545 | V18_MODE_REPETITIVE_SHIFTS_OPTION, V18_AUTOMODING_GLOBAL, x_04_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
- v18[1] = v18_init(NULL, FALSE, V18_MODE_5BIT_4545, V18_AUTOMODING_GLOBAL, x_04_put_text_msg, NULL);
+ v18[1] = v18_init(NULL, FALSE, V18_MODE_5BIT_4545 | V18_MODE_REPETITIVE_SHIFTS_OPTION, V18_AUTOMODING_GLOBAL, x_04_put_text_msg, (void *) (intptr_t) 1);
logging = v18_get_logging_state(v18[1]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "TUT");
exit(2);
}
- result[0][0] = '\0';
+ result[0][0] =
+ result[1][0] = '\0';
unexpected_echo = FALSE;
for (i = 0; i < 127; i++)
msg[i] = i + 1;
msg[127] = '\0';
v18_put(v18[0], msg, 127);
- for (i = 0; i < 1000; i++)
+ for (i = 0; i < 2000; i++)
{
for (j = 0; j < 2; j++)
{
v18_free(v18[0]);
v18_free(v18[1]);
printf("Result:\n%s\n", result[0]);
+ printf("Result:\n%s\n", result[1]);
printf("Reference result:\n%s\n", full_baudot_rx);
- if (unexpected_echo || strcmp(result[0], full_baudot_rx) != 0)
+ if (unexpected_echo || strcmp(result[1], full_baudot_rx) != 0)
return -1;
return 0;
}
display will show when its receiver is re-enabled.
Pass criteria: The receiver should be re-enabled after 300ms.
*/
- v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, x_05_put_text_msg, NULL);
+ v18[0] = v18_init(NULL, TRUE, V18_MODE_DTMF, V18_AUTOMODING_GLOBAL, x_05_put_text_msg, (void *) (intptr_t) 0);
logging = v18_get_logging_state(v18[0]);
span_log_set_level(logging, SPAN_LOG_SHOW_SEVERITY | SPAN_LOG_SHOW_PROTOCOL | SPAN_LOG_FLOW);
span_log_set_tag(logging, "Tester");
exit(2);
}
- result[0][0] = '\0';
+ result[0][0] =
+ result[1][0] = '\0';
v18_put(v18[0], "e", 1);
for (i = 0; i < 1000; i++)
static void x_06_put_text_msg(void *user_data, const uint8_t *msg, int len)
{
if (user_data == NULL)
+ ;
else
strcat(result[1], (const char *) msg);
}
static int test_x_06(void)
{
char msg[128];
- char dtmf[1024];
const char *ref;
- v18_state_t *v18[2];
logging_state_t *logging;
int16_t amp[2][SAMPLES_PER_CHUNK];
int16_t model_amp[2][SAMPLES_PER_CHUNK];
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 127; i++)
msg[i] = i + 1;
msg[127] = '\0';
- printf("Original:\n%s\n", msg);
+ v18_put(v18[0], msg, 127);
- result[0][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)
exit(2);
}
+ result[0][0] =
+ result[1][0] = '\0';
for (i = 0; i < 10000; i++)
{
for (j = 0; j < 2; j++)