Commit Graph

6 Commits

Author SHA1 Message Date
Harald Welte ec0c3ce444 rtpsourcec: Fix compilation on Debian 11 / gcc-10.2.1
rtpsource.c: In function ‘signal_handler’:
rtpsource.c:209:3: error: called object ‘signal’ is not a function or function pointer
  209 |   signal(SIGABRT, SIG_DFL);
      |   ^~~~~~
rtpsource.c:198:32: note: declared here
  198 | static void signal_handler(int signal)
      |                            ~~~~^~~~~~

Change-Id: I57d13faa8052b6f15890ce9c6c74efa927d2e2ab
2023-01-17 11:38:53 +00:00
Pau Espin 45ff1d2e62 main: generate coredump and exit upon SIGABRT received
Previous code relied on abort() switching sigaction to SIG_FDL +
retriggering SIGABRT in case the signal handler returns, which would
then generate the coredump + terminate the process.
However, if a SIGABRT is received from somewhere else (kill -SIGABRT),
then the process would print the talloc report and continue running,
which is not desired.

Fixes: OS#4865
Change-Id: I3caa78e6ce7c9a98b0a26fde61468bd7b38c6fd9
2020-11-25 17:52:19 +01:00
Oliver Smith 2d24cd48c9 rtpsource: CTRL call rtp_create: add codec arg
Instead of hardcoding FR in rtpsource, add an argument to set the codec
from mncc_mt_loadgen.py via CTRL call rtp_create. Hardcode FR in
mncc_mt_loadgen.py for now, a follow up patch will make it configurable
there, too.

Related: SYS#4924
Change-Id: If75e902b451d7e202a03e93afcd55bd24f517813
2020-04-30 10:05:39 +02:00
Harald Welte fb046ebc9e rtpsource: Modularize generation of RTP frames
Change-Id: Iad98e1753fef1927c0e8a7493372141372a38224
2020-04-30 10:00:49 +02:00
Harald Welte 94791c8d56 rtpsource: Make local RTP bind IP configurble via "-r" cmdline opt
Change-Id: Ia742180326f3d945eb7933cebbef3fd17d127d51
2020-03-11 15:12:10 +00:00
Harald Welte 09462c3b04 initial checkin of 'osmo-rtpsource' program
osmo-rtpsource is a small utility program which is generating
RTP flows at a constant rate of 20ms, as required in most IP based
telphony.  The payload currently is hard-coded.

Change-Id: Id4e292ddfd5aa58754382b2380558993b2ddf07a
2020-03-07 21:48:08 +01:00