aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/contrib
AgeCommit message (Collapse)AuthorFilesLines
2019-12-12osmoappdesc.py, tests, ipa.py: switch to python 3Oliver Smith1-3/+13
Make build and external tests work with python3, so we can drop the python2 dependency. This should be merged shortly after osmo-python-tests was migrated to python3, and the jenkins build slaves were (automatically) updated to have the new osmo-python-tests installed. Related: OS#2819 Depends: osmo-python-tests I3ffc3519bf6c22536a49dad7a966188ddad351a7 Change-Id: Id7d006f892198bb8a7c0d4a8a8ea00b8d0e62df4
2018-12-06contrib: fix makedistcheck with disabled systemdOliver Smith1-1/+6
EXTRA_DIST files need to be distributed, no matter if the systemd option is configured or not. Change-Id: I8dbb17571df5d6cea040498af2fe57f087bdeb24
2018-09-13Install systemd services with autotoolsPau Espin Pedrol2-0/+15
Change-Id: I9bc40cf9e9a901d28d1f1629f6f1d55e8ba0c0b6
2018-09-07systemd: describe osmo-bsc-sccplite service as legacyPau Espin Pedrol1-1/+1
Change-Id: I88ba349e547c8f85e12e1ad80a2724086c489c02
2018-08-29Add osmo-bsc-nat systemd service and install it with debianPau Espin Pedrol1-0/+11
Change-Id: I29d719fbe059e38fde97371efc5e562901529b7c
2017-10-26rename osmo-bsc to osmo-bsc-sccpliteHarald Welte2-3/+3
This is to avoid naming conflicts with the new osmo-bsc, which resides in its own git repository (osmo-bsc.git) and which uses libosmo-sigtran and implements (primarily) 3GPP AoIP. Change-Id: If10d1599b62d010726336134091a4e855c380d93
2017-10-26remove sgsn, gbproxy and gtphub from openbsc.gitHarald Welte7-344/+0
The GPRS related programs osmo-sgsn, osmo-gtphub and osmo-gbproxy have been split off into the separate osmo-sgsn repository, which can be found at git://git.osmocom.org/osmo-sgsn.git http://git.osmocom.org/osmo-sgsn/ This is technically unrelated but conceptually part of the larger NITB-split activities. I did a brief log of all changes in src/gprs and couldn't find any commits that we might have applied here but which are missing from osmo-sgsn.git. Change-Id: If60e28b23f5cfb2c4eb354951363a2bb63f3e0de
2017-04-26gbproxy: add example .serviceMax1-0/+12
Change-Id: Ic8144777a77efce4bad44abf6c6abde12fc5149c Related: SYS#3610
2017-04-05python: fix Null loggerMax1-3/+3
Change-Id: Ie120273eabbc670e9f19ba365508688a810a2773 Related: SYS#3028
2017-03-23Add simple CTRL2SOAP proxyMax1-0/+188
Add python client which converts TRAP messages into SOAP requests and perform corresponding actions. It can be used as follows ./soap.py -d -w http://example.com/soapservice/htdocs/wsdl/test.wsdl See ./soap.py -h for additional options. Change-Id: I82844ec7a302bac30d6daee9ebca2188fd48ca46 Related: SYS#3028
2017-03-21twisted_ipa.py: make debug logging more robustMax1-23/+32
Do not print anything to stdout directly - use proper logger object instead: either the one supplied by IPAFactory user or default to NO-OP NullHandler logger. Change-Id: Ic3417095a6e8848f0acabb46a9e64c0197b736e2 Related: SYS#3028
2017-03-21twisted_ipa.py: bump version properlyMax1-1/+3
Adjust version string to comply with PEP8 and PEP386. Change-Id: I44c8521f12e6432038998bfb1ac1bb37a1137787 Related: SYS#3028
2017-03-14cosmetic: add copyright header to bsc_control.pyPhilipp Maier1-0/+21
bsc_control.py lacks a copyright header. This commit adds the copyright header from ipa.py to bsc_control.py. Change-Id: Ie70bf686ee9bb157198e02bf8d946abf56adc82a
2017-01-23bsc_control.py: fix blockingMax1-5/+11
Previously reading from socket would block if no data were sent by the server. Use non-blocking read for set and get operations. Change-Id: I706d54a4a7ceef62683bf9a2fe63fc9ab331c24e
2016-12-19bsc_control.py: remove unused -i optionMax1-5/+0
This option only served to demonstrate possibility of manually selecting <id> field in CTRL protocol. Since the transition to generic ipa module this is no longer exposed so the option became a no-op. Correspondingly there's no need to explicitly initialize the RNG - the Ctrl class handles random <id> generation internally. Change-Id: I10cc7c069354cced2bba84fe67c69c28b8596ded
2016-12-13bsc_control.py: use ipa.py moduleMax1-61/+28
Simplify code by using Ctrl implementation from ipa.py Change-Id: I25fd7cd4b42126354b72abd60a3837be5d13e159
2016-12-13bsc_control.py: style correctionsMax1-22/+23
* replace some tabs indent with spaces * add comment to make sure no new tabs are used for indentation by emacs * remove unnecessary parenthesis Change-Id: Ib79fd4317d40ee4fd87b090b9faf8ebaf4bfca64
2016-12-13Add twisted-based IPA multiplexMax1-0/+373
Add sample applications using twisted framework for IPA and CTRL multiplex. Change-Id: I07559df420b7fe8418f3412f45acd9a375e43bc5 Related: SYS#3028
2016-12-13Add IPA multiplexMax1-0/+278
Add base class and derived Ctrl class implementing ctrl-specific routines. Change-Id: I41e37ec143183e422c0b31af95d183bd84f0c328 Related: SYS#3028
2016-08-11Add web proxy for control interfaceMax1-0/+147
Add web application exposing Control Interface over web. All of SET, GET and TRAP are fully supported. Notice: TRAP is converted into 'Server-sent events' according to RFC 6202, see also https://www.w3.org/TR/eventsource/ - this requires corresponding client. Due to use of special prefix modified version of python eventsource-client is necessary ATM. Change-Id: I87d40c80061f8b3d02d656ab8cadabbfb871b461 Related: OS#1646
2016-08-11Add python functions to get/set ctrl variablesMax1-4/+27
Add get_var and set_var functions which handle requested variable while checking for proper response and id. Split header handling into separate function. Change-Id: I08705963c277bd93a011193dd7451a626d606c21 Related: OS#1646
2016-08-11Use random operation idMax1-8/+10
According to documentation for Control Interface Protocol <id> is "A numeric identifier, uniquely identifying this particular operation", hence it's best to be illustrated with random integer - use it as default. Fix override of id with previously used python-specific objects' id. Change-Id: I32236c067360526f4e7ee4bbdba64c5137de696d Related: OS#1646
2016-07-29Improve code re-useMax1-58/+59
Introduce explicit __main__ function to facilitate re-use of defined python functions for ctrl interface. Change-Id: I9bad8f0dd1d69bd28816bf047d85840e3411bb9c Related: OS#1646
2016-04-16nat/ussd: Add an example of the USSD gateway side-channelHolger Hans Peter Freyther1-0/+65
This adds a very basic, use once example in python on how to connect and deal with the app specific payload and messages. The code is not complete as the invokeId should be patched according to the initial invoke. This excercise is left to future readers of that code.
2015-12-05remove old obsolete linux kernel and wireshark patchesHarald Welte1-0/+125
Those were relevant in 2008/2009, but not today... Also, move hlrsync to the contrib directory
2014-11-11systemd: use Wants for the dependency btw. osmo-bsc-mgcp and osmo-bscHenning Heinold1-1/+1
* osmo-bsc and osmo-bsc-mgcp are needed to run * with Wants, both are started but can be indepently controlled via systemctl Fixes: SYS#738
2014-09-02mgcp: Move the "codec" params to a structHolger Hans Peter Freyther1-5/+5
We might be offered multiple codecs by the remote and need to switch between them once we receive data. Do this by moving it to a struct so we can separate between proposed and current codec. In SDP we can have multiple codecs but a global ptime. The current code doesn't separate that clearly instead we write it to the main codec.
2014-08-21systemd: Add Install section to service filesDaniel Willmann4-0/+12
That way the services can be enabled with > systemctl enable <service>
2014-07-22mgcp: Change API to remove memory management from the nameHolger Hans Peter Freyther1-1/+1
Jacob pointed out that "free_endp" refers to the memory of the endpoint being freed. What we want is actually a way to release an endpoint (and the resource it allocated) or in the case of the testcase/testapp initialize the data structure correctly. Introduce two names for that.
2014-06-05mgcp: Move transcoding to libmgcpJacob Erlbeck2-3/+2
This patch moves the files relevant to transcoding from src/osmo-bsc_mgcp to src/libmgcp and src/include/openbsc. Makefiles and include directives are being updated accordingly. Sponsored-by: On-Waves ehf
2014-06-05mgcp: Extend the CLI transcoding tool by ptime conversionJacob Erlbeck1-3/+21
This modification allows it to set the number of samples per packet that is written to the output. Sponsored-by: On-Waves ehf
2014-06-05mgcp: Add packet size (ptime) conversionJacob Erlbeck1-14/+38
The current transcoder implemenation always does a 1:1 recoding concerning the duration of a packet. So RTP timestamps and sequence numbers are not modified. This is not sufficient in some cases, e.g. when the BTS does only allow for a single fixed ptime. This patch decouples encoding from decoding and moves the decoded samples to the state structure so that samples can be combined or drain according to the packaging of incoming and outgoing packets. This patch incorporates parts of Holger's experimental fixes in 0e669e05^..9eba68f9. Ticket: OW#1111 Sponsored-by: On-Waves ehf
2014-06-05mgcp: Add CLI tool to test audio conversionJacob Erlbeck2-0/+108
This tool uses mgcp_transcode.c to convert audio data from stdin to stdout. Sponsored-by: On-Waves ehf
2014-05-09contrib/rtp: Use payload data files directly by gen_rtp_headerJacob Erlbeck1-4/+30
This adds a --frame-size option to read payload binary files with a fixed frame size directly. The file must not contain RTP headers. In addition '--rate' and '--duration' can be used to configure the timing. Sponsored-by: On-Waves ehf
2014-03-21systemd: Add service for the osmo-sgsnHolger Hans Peter Freyther1-0/+8
Fixes: SYS#175
2014-03-21systemd: Saying these services restart once should be enoughHolger Hans Peter Freyther2-2/+0
2014-03-13systemd: Remove the second occurance of Restart=alwaysHolger Hans Peter Freyther1-1/+0
2013-12-18contrib/rtp: Fix default payload caseJacob Erlbeck1-1/+3
There is the wrong record field selection being used to extract the default value. It returns the tuple offset instead of the value. This patch fixes this. Sponsored-by: On-Waves ehf
2013-12-13contrib/rtp: Add tool to create RTP state filesJacob Erlbeck1-0/+392
This tool provides the following features: - Output formats: state, C arrays - Optionally take RTP payload from existing state files - Generate streams with RTP timestamp jumps and/or delays - Set/change SSRC or payload type Requires erlang to be installed. Example: Generate 300 packets, set playout time offset to 1s, set RTP timestamp offset to 8000 (1s), generate another 100 packets, the RTP payload is copied from rtp.state: ./gen_rtp_header.erl --type=98 --file=rtp.state -- 0 300 0 --delay=1.0 100 8000 Sponsored-by: On-Waves ehf
2013-12-13contrib/rtp: Enhance RTP replay toolJacob Erlbeck2-5/+19
This patch adds optional parameters to pass the state file, the destination address (default 127.0.0.1), the destination port (default 4000), the source port (default 0). So it is called as follows: gst rtp_replay.st -a [FILE [HOST [SOURCEPORT [DESTPORT]]]] In addition, nonexistant FILEs are no longer created but opened read-only instead. Sponsored-by: On-Waves ehf
2013-11-14rtp: Take the parameter from the argumentsHolger Hans Peter Freyther1-1/+1
$ gst rtp_replay.st -a FILE
2013-06-24Introduced support for external python testsKaterina Barone-Adesi1-57/+0
The test scripts warn about missing documentation, untested configs, check common errors, and stub out testing individual VTY commands. The scripts have been moved to the another osmocom repository, python/osmo-python-tests The features were requested by zecke.
2013-02-07dump_all_docs.py: Also extract documentation for SGSNHarald Welte1-0/+1
2012-09-20mgcp: Add the disable color option to the mgcp binaryHolger Hans Peter Freyther1-1/+1
2012-09-20systemd: Add service units for the BSC, NITB and MGCPHolger Hans Peter Freyther3-0/+28
Add simple systemd service units.
2012-09-07contrib: Add some SQL statements to remove old subscribersHolger Hans Peter Freyther1-0/+18
2012-08-14docs: Do not remove too much from of the dumped online helpHolger Hans Peter Freyther1-1/+1
Use the len of the end and not the filename.
2012-08-05contrib: Create a script that opens a SIP session beforeHolger Hans Peter Freyther2-4/+130
Use the Smalltalk SIP implementation to create a call and once the call has been established start the replay using the commoncode. No patching of RTP occurs yet.
2012-08-05contrib: Move the shared code into a new fileHolger Hans Peter Freyther2-62/+71
2012-08-05contrib: Make the RTPReplay a a class so it can be sharedHolger Hans Peter Freyther1-47/+68