diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-01-27 12:31:36 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-01-27 18:11:50 +0100 |
commit | 640eae4ca386d2792ea54baafbeb5ff6d69e0acf (patch) | |
tree | ac24f505aa14206a9242db5e42213f92784d1944 /openbsc/tests | |
parent | 3953b7c5f03a0450122b57e1b1ffbebed0796236 (diff) |
MGCP: implement a more tolerant parser based on strtok_r()
Instead of building complex manual byte-wise parsers, we simply use two
strtok_r loops: one iterating over all the lines, the next one
iterating over the invididual space-separated elements in the first line.
The benefit is that we now accept \r, \n or \r\n, or any multiple of
them as line ending. This works around incompliant MGCP implementations
like that of Zynetix MSC.
Diffstat (limited to 'openbsc/tests')
-rw-r--r-- | openbsc/tests/mgcp/mgcp_test.ok | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/tests/mgcp/mgcp_test.ok b/openbsc/tests/mgcp/mgcp_test.ok index 1a01c28a8..4639d7e39 100644 --- a/openbsc/tests/mgcp/mgcp_test.ok +++ b/openbsc/tests/mgcp/mgcp_test.ok @@ -1,2 +1,5 @@ -Testing AUEP +Testing AUEP1 +Testing AUEP2 +Testing CRCX +Testing CRCX_ZYN Done |