aboutsummaryrefslogtreecommitdiffstats
path: root/tests/osmo-pcap-test/osmux_test.c
AgeCommit message (Collapse)AuthorFilesLines
2013-02-12fix osmux_test with pcap filePablo Neira Ayuso1-5/+5
2012-10-20osmux: remove generic functions to register and get ccidPablo Neira Ayuso1-4/+45
Remove these functions: - osmux_xfrm_input_get_ccid - osmux_xfrm_input_register_ccid The ccid will be managed by the BSC and it will be stored in the mgcp_endpoint structure. Also adjust all tests and examples using the API.
2012-10-15osmux: release of batch message is controled by callerPablo Neira Ayuso1-0/+1
Instead of internally released. This is required if we use the osmo_dgram infrastructure, to avoid a double release. Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2012-08-06osmux: support two concurrent calls in output pathPablo Neira Ayuso1-4/+2
2012-08-06osmux: add infrastructure to map RTP SSRC and osmux CCIDPablo Neira Ayuso1-0/+9
2012-08-06osmux: batching factor can be explicitly configured by callerPablo Neira Ayuso1-0/+1
Not hardcoded in osmux.c code anymore.
2012-08-06osmux: store internal batching information in struct osmux_in_handlePablo Neira Ayuso1-1/+1
The layout is not provided, as it is internal. Thus, we don't allocate the internal batching information in BSS anymore.
2012-08-04osmux: remove timeval parameter from osmux_tx_schedPablo Neira Ayuso1-4/+1
We can internal allocate this in the stack, no need to expose it to the caller.
2012-08-04osmux: cleanup tx pathPablo Neira Ayuso1-20/+5
This patch cleans up the transmission path for osmux, this involves the functions that extract the messages from the batch and the one that reconstruct the timing. They now take a list that contains the reconstructed RTP messages: osmux_xfrm_output(osmuxh, &h_output, &list); osmux_tx_sched(&list, &tv, tx_cb, NULL);
2012-08-04fix wrong delta between two RTP messagesPablo Neira Ayuso1-1/+1
it should 20 ms, not 160 ms. Thanks for Holger for spotting this.
2012-08-02osmux: major rework to reduce batch message size (add counter field)Pablo Neira Ayuso1-0/+10
This patch adds the counter field to the osmux header, so we can reduce the size of the batch even further, eg. osmuxhdr (ctr=3) speech speech speech osmuxhdr (ctr=2) speech speech ... The new header is the following: 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FT | CTR |F|Q| SeqNR | Circuit ID |AMR-FT |AMR-CMR| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The counter field is 3 bits long, thus, we can batch up to 8 RTP speech frames into one single batch per circuit ID. I have also removed the RTP marker, since it can be reconstructed from the AMR information. Moreover, the entire workflow has been also reworked. Whenever a packet arrives, we introduce it into the batch list. This batch list contains a list of RTP messages ordered by RTP SSRC. Then, once the batch timer expires or the it gets full, we build the batch from the list of RTP messages. Note that this allows us to put several speech frame into one single osmux header without actually worrying about the amount of messages that we'll receive. The functions that reconstruct the RTP messages has been also adjusted. Now, it returns a list of RTP messages per RTP SSRC that has been extracted from the batch.
2012-08-02tests: osmux: initialize input handler before first runPablo Neira Ayuso1-2/+2
Make sure we don't segfault due to uninitiliazed handler.
2012-08-02tests: osmo-pcap: cleanup for osmux test receiver loopPablo Neira Ayuso1-11/+7
2012-07-19tests: osmo-pcap: use logging infrastructurePablo Neira Ayuso1-0/+26
so far, it was missing and printf was used instead of the generic logging infrastructure that osmocom provides.
2012-07-19tests: osmo-pcap: split packet replay from osmux_test codePablo Neira Ayuso1-0/+142
This patch splits in two files the code that contains the packet replay based on PCAP from the osmux test.