9
0
Fork 0
Commit Graph

38 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther 368e549a92 tests/vty: Add VTY tests to the osmo-stp
There seems to be issues with the write handling of the osmo-stp
and so far we did not enable vty tests here. Make it possible to
enable the tests, fix the VTY strings, change string to OsmoSTP.

Change-Id: I547fd4840d86ce16e8589fb63802dd7099781194
2016-08-15 13:36:25 +02:00
Holger Hans Peter Freyther f3afabe989 misc: Attempt to fix various 64bit compiler warnings
Change-Id: I4ed058aba15d9fdc22dde99d60df0aabd6585b75
2016-08-15 13:36:11 +02:00
Holger Hans Peter Freyther 6a441c86fe m3ua: Make the traffic-mode configurable 2015-04-16 22:32:09 +02:00
Holger Hans Peter Freyther 316168249f all: Use the libosmo-sccp version of mtp_level3.h 2015-03-24 19:24:22 +01:00
Sylvain Munaut 9544ee2955 build: Replace deprecated INCLUDES with AM_CPPFLAGS
Thanks to mnhauke for the patch

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2014-12-22 22:36:17 +01:00
Holger Hans Peter Freyther e48231c539 dtmf: Check the tones that are put into the DTMF scheduler and reject a 0
Playing tones should be printable ascii characters, begin by checking
for NULL (as it happened before) as the first illegal tone. This is
an attempt to make the API more robust and detect errors more early.
2013-05-23 09:59:25 +02:00
Holger Hans Peter Freyther 9905b18811 dtmf: Make the API more robust and avoid inconsistencies
Because of the issue parsing the MGCP request a '\0' was added to
the queue. This lead to the dtmf scheduler believing that a play
was in progress while the playing code didn't play anything. This
lead to the queue to be stuck and nothing being played at all.

Return the number of tones that should be played and stop using
strlen on the tones.
2013-05-23 09:59:25 +02:00
Holger Hans Peter Freyther 4db78de76e patching: Add a VTY option to hardcode the assignment complete message
For some equipment it is the easiest to patch the assignment
complete message transported to the MSC. Add a VTY config to
enable this patching, create a testcase that tests that the
original message is truncated. The setting of the VTY option
has been manually tested. The entire system has not been end
to end tested.
2013-05-13 21:08:36 +02:00
Holger Hans Peter Freyther b566c79d82 patching: Get the struct ss7_application down to the patching routine 2013-05-13 18:18:02 +02:00
Holger Hans Peter Freyther 511848c864 bss patch: Patch all slots with FR2 in the assignment request
* Patch all slots with the FR2 codec. This is the easiest way to
  patch the entire message.
2013-03-25 11:06:31 +01:00
Holger Hans Peter Freyther 30be65a2e8 bss patching: Add test cases for assignment and assignment complete patching
* Chosen Channel and Speech Version are both optional. Patch them
  separately if they are present.
* Add testcase for the assignment request patching.
2013-03-25 10:32:23 +01:00
Holger Hans Peter Freyther a479c1b6f5 tests: Make the test data static const 2013-03-25 09:01:17 +01:00
Holger Hans Peter Freyther d93c84f96e misc: Address warnings coming from clang
* Include stdlib.h before the snmp headers to have a free declaration
* Use sprintf(dest, "%s", str) to avoid format string attacks
* Avoid bogus assignment. This pattern was used for marking something
  as unused in the past.
2013-03-18 19:03:44 +01:00
Holger Hans Peter Freyther 4822c8bc56 isup: Make isup CIC parsing/using work on big endian machines as well
This is a hot fix to make CIC reading (and later status) work on
big endian machines. There might be a more elegant way to do it
and I will explore this later.
2013-02-24 15:10:55 +01:00
Holger Hans Peter Freyther a9530059a1 isup: Test some more ISUP messages and that we parse them correctly 2012-12-16 12:10:36 +01:00
Holger Hans Peter Freyther 2d115d4bbb mgcp: Merge the current MGCP code from OpenBSC
There were several changes in the upstream code. These include
statistics, DTMF/RQNT, changes in the parsing code and re-transmission
handling. The last item is the main reason to do the merge now.
2012-12-16 11:33:27 +01:00
Holger Hans Peter Freyther d74ac33574 dtmf: Schedule DTMF tones for the MTN hardware
Create a simple queue for pending DTMF tones, play them using the
MTN API, and then send the next tones once the playback is complete.
The callback and scheduling is done from the same context so no locking
needs to be done.
2012-12-16 11:33:27 +01:00
Holger Hans Peter Freyther 9b2474490a mgcp: Begin handling of the RQNT message as needed for DTMF
Introduce a callback for the request and forward the signalrequest
to the callback. This is not a full implementation of MGCP RQNT.

Manual merge and backport from OpenBSC.
2012-12-16 11:33:27 +01:00
Holger Hans Peter Freyther f3e9ad01c1 tests: Remove the copy of the 'missing' and use the $(top_srcdir) one 2011-12-04 23:29:46 +01:00
Holger Hans Peter Freyther 143af9a02d bss: Add an additional test where we do not want to patch anything 2011-11-24 11:23:30 +01:00
Holger Hans Peter Freyther 6853567564 bss: Patch CC messages with bearer capabilities to contain AMR 3
* This changes bss_patch_filter_msg to return -1 or BSS_FILTER_DTAP
  for DTAP messages. This way app_forward_sccp should continue to behave
  the same besides now looking into DTAP messages.
* Introduce a direction in case we want to advertize FR into the BSS
  side and HR into the other direction.
* Patch AMR HR3 and Fullrate/Halfrate capabilities in the Bearer
  Capabilities. Add a test case that is patching the bearer capabilities
2011-11-24 11:07:37 +01:00
Holger Hans Peter Freyther 475291355d tests: Add GNU Autotest invocation for the tests we have here
Add some std output of the applications, integrate tests.
2011-11-20 10:47:14 +01:00
Holger Hans Peter Freyther b1dfc462df cellmgr: Patch the MGCP messages and replace the domain name
Replace the domain name with a new name domain that can be configured
via the VTY interface.
2011-09-15 19:30:20 +02:00
Holger Hans Peter Freyther fcfb05fd5d misc: Fix the compilation of the tests 2011-05-09 11:08:55 +02:00
Holger Hans Peter Freyther 925d566c18 mtp: Fix the address mask, macro to extract opc/dpc
Fix the address mask, add macro to extract the DPC
and OPC from an address. Write a test case for this.
2011-01-20 13:11:29 +01:00
Holger Hans Peter Freyther ecd835500e isup: Make status parsing and status response be generic 2011-01-20 11:49:39 +01:00
Holger Hans Peter Freyther 1b6901ec4a stp: Forward unhandled ISUP from one end to another 2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther 569f1e171d mtp: Rename mtp_link to mtp_link_set as this is the linkset
The link_udp is actually below the linkset. We need to get this
right now and then can have multiple links.
2011-01-17 11:21:11 +01:00
Holger Hans Peter Freyther de56c22702 license: Switch to the GNU AGPLv3 for this network service 2011-01-16 20:35:13 +01:00
Holger Hans Peter Freyther 3aad776b28 isup: Respond to a ISUP GRS with a GRA. 2010-12-10 13:22:46 +01:00
Holger Hans Peter Freyther c21cfaa023 isup: Start parsing the ISUP messages
Introduce a ISUP debug category, parse the reset circuit
message, add a test case for this easy parsing.
2010-12-10 13:22:46 +01:00
Holger Hans Peter Freyther 03ba4f485b isup: Start with isup support in the cellmgr.
Start parsing the ISUP messages. This just adds what
we need to handle now and will not grow it a lot.
2010-12-10 13:22:42 +01:00
Holger Hans Peter Freyther e66c7c10ea cleanup: Remove code that is provided by libosmocore now.
libosmocore contains the GSM08.08 definition, no need to copy
that anymore.
2010-08-04 18:51:16 +08:00
Holger Hans Peter Freyther cbf7d18bb9 Use libosmocore instead of the old temporary laF0rge1 lib.. 2010-08-04 06:08:40 +08:00
Holger Hans Peter Freyther 9ed3e1b3f3 u_int32_t -> uint32_t 2010-07-31 05:22:56 +08:00
Holger Hans Peter Freyther 585f3d90d1 u_int16_t -> uint16_t 2010-07-31 04:38:17 +08:00
Holger Hans Peter Freyther 5aa17014de u_int8_t -> uint8_t 2010-07-31 04:37:26 +08:00
Holger Hans Peter Freyther 97f66e2b53 Public release of the cellmgr_ng code to convert E1 to IPA SCCP 2010-07-28 03:36:32 +08:00