Commit Graph

11 Commits

Author SHA1 Message Date
Harald Welte e3d93518bd Initial port from python2 to python3
This is a very crude port, including manual edits to the ctypeslib-generated
mncc.py file.  There's no real clean way to do this, as ctypeslib is
ancient, abandoned and unmaintained.

Change-Id: Ie6ecd37353b35a6ac13c6578585c714c9ab46e06
2024-03-19 14:17:54 +01:00
Neels Hofmeyr 5e6d9d3594 mncc_test: add calls() to initiate series of calls
Change-Id: I0cec9e5dc52e62247da8a3bec47917f929bde5be
2020-03-07 21:48:08 +01:00
Neels Hofmeyr a765716b8c mncc_{test,mg_loadgen}.py: Add a manual call-release function
Change-Id: I30265b765f03bd0485bdaa7d6be6d95ad678b0ee
2020-03-07 21:48:08 +01:00
Oliver Smith cf8e58e5fb mncc_{test,mt_loedgen}.py: don't start calls automatically
Change-Id: I3173b94f5a5b8baea4a111193a7894b673272a24
2020-03-07 21:48:08 +01:00
Vadim Yanitskiy af9a227a89 *.py: use generic logging framework instead of print()
Change-Id: I025ddae64e41319abac8e2cd2e266db83aea4a7b
2018-09-30 17:21:41 +07:00
Vadim Yanitskiy a275d7a49d *.py: cosmetic: tweak the global logging format
Printing log level, file name, and line number together with a
log message is the common practice in Osmocom projects that
facilitates debugging and development.

Change-Id: I80cd7cdfa41ae7e70a1890d88c8b2f7357a500af
2018-09-30 17:21:41 +07:00
Vadim Yanitskiy c43f321e6e mncc_sock.py: distinguish traffic frames
Change-Id: I996513e433bb57f12a4030391697f4e87e6ff938
2018-09-29 22:33:20 +07:00
Vadim Yanitskiy 022be433ad *.py: use proper '#!/usr/bin/env' shebang
Using hard-coded paths in shebang is a bad idea, because on different
systems Python interpreter can be installed in different places. See:

https://mail.python.org/pipermail/tutor/2007-June/054816.html

Change-Id: Ib729ece0c95254dc2b235f90eb731681df955bd1
2018-09-29 21:55:16 +07:00
Harald Welte 5b283e8942 gcm_call_fsm: Allow user to specify which codec(s) are to be used
The user can submit a list of permitted codecs for a GsmCallFsm or
GsmCallConnector.  This list is ordered by priority (highest first),
and the first matching codec is chosen.

TODO: Proper error handling in case no matching codec is found
2015-12-05 13:51:43 +01:00
Harald Welte 47ff791075 add license headers 2015-12-02 00:23:09 +01:00
Harald Welte 7e94f0d22f rename mncc_test2.py to mncc_test.py 2015-12-02 00:18:28 +01:00