Holger Hans Peter Freyther
58ff219c85
mgcp: Attempt to separate the RTP/RTCP port for the Network and for the BTS
...
We plan to have two different ports for the network and for the
BTS to avoid detecting the BTS and to dynamically allocate the
port to have old data not go to a new socket.
2010-08-05 06:10:57 +08:00
Holger Hans Peter Freyther
a17d701a70
mgcp: Group the state for bts/net into a struct and have two instances
...
Group the data that each end (network/bts) have into a struct and use
this struct throughout the sourcecode.
2010-08-05 06:10:54 +08:00
Holger Hans Peter Freyther
8b5772ebe4
mgcp: Remove the forwarding mode as it was not used.
2010-08-05 06:10:13 +08:00
Holger Hans Peter Freyther
7f8aec2b2b
mgcp: Fix the payload_type... it broke in 7cdc62c012
2010-08-05 06:10:10 +08:00
Holger Hans Peter Freyther
7cdc62c012
mgcp: Fix the reversed net/bts... which has not cause any issue..
2010-08-04 22:21:40 +08:00
Holger Hans Peter Freyther
c02f11a04f
mgcp: Pass the whole endpoint to the patch method.
2010-08-04 22:20:34 +08:00
Holger Hans Peter Freyther
f1f6bba16d
mgcp: Fix the order of the arguments...
2010-08-04 22:14:46 +08:00
Holger Hans Peter Freyther
aaf8301a19
mgcp: Print the conn mode as well
2010-08-04 21:52:11 +08:00
Holger Hans Peter Freyther
bb14e62a7f
mgcp: Disable the actual patching... this is a temporary hack
2010-08-04 21:52:11 +08:00
Holger Hans Peter Freyther
2f10458831
mgcp: Print the system for the duplicate SSRC...
2010-08-04 21:52:11 +08:00
Holger Hans Peter Freyther
5c1e6cf5fc
mgcp: Only patch the header if we had a change in SSRC
2010-08-03 23:57:16 +08:00
Holger Hans Peter Freyther
6aa882b515
mgcp: Allow switching the audio streams, patch the header
...
Patch the sequence number, the SSRC and the timestamp to
allow to mix various voice streams, e.g. toggling the loop
during the call.
2010-08-03 23:57:16 +08:00
Holger Hans Peter Freyther
3186892771
mgcp: Move the rtp state into a struct
...
Use a struct to group the rtp state for the up and the down
link of the bts.
2010-08-03 23:57:16 +08:00
Holger Hans Peter Freyther
98a3877e97
mgcp: Implement the "loopback" mode for a connection endpoint.
2010-08-03 02:27:21 +08:00
Holger Hans Peter Freyther
417920a660
mgcp: Attempt to count lost packets better...
2010-07-29 03:04:57 +08:00
Holger Hans Peter Freyther
380b8711a2
mgcp: Attempt to count missing RTP packets with a basic calculation
...
This code compares the UDP sequence numbers of two RTP messages
and guesses if packets are missing. It is guessing in two ways:
1.) by default the sequence number is 0, so on the first
value we ignore the jump... we might ignore a real issue
in case of a wrap around which is easily possible as the
sequence should be a random number.
2.) the UDP stream might have been reordered on the network
and we would see the jump...
In any case these two shortcomings are acceptable for the feature
that is meant to provide some basic analysis..
2010-07-29 02:41:38 +08:00
Holger Hans Peter Freyther
d0c3229590
mgcp: Rename TOS to DSCP
...
DSCP is the more modern information for TOS and the kernel
will set parts of TOS by itself (e.g. for ECN).
2010-07-27 20:35:03 +08:00
Holger Hans Peter Freyther
7dece86a08
mgcp: u_int8_t -> uint8_t
2010-07-23 18:56:26 +08:00
Holger Hans Peter Freyther
d340cd3b2f
mgcp: u_int16_t -> uint16_t
2010-07-23 18:56:01 +08:00
Holger Hans Peter Freyther
d9b18f8c21
mgcp: u_int32_t -> uint32_t
2010-07-23 18:55:38 +08:00
Holger Hans Peter Freyther
75492e6e54
[mgcp] Set the IP_TOS/DSCP on RTP/RTCP IP packets.
2010-06-17 14:34:30 +08:00
Holger Hans Peter Freyther
a19bdabf22
[mgcp] Only patch RTP packets when they arrived on the RTP port
...
Do not attempt to patch RTCP packets...
2010-06-17 14:34:17 +08:00
Holger Hans Peter Freyther
7373109abc
Merge branch 'master' into on-waves/mgcp
2010-05-14 02:42:15 +08:00
Holger Hans Peter Freyther
b3c206aa34
[mgcp] Improve the language of the comments.
2010-05-14 02:39:33 +08:00
Holger Hans Peter Freyther
b715d7f890
[mgcp] Include stdlib.h for abs.
2010-05-14 02:39:16 +08:00
Holger Hans Peter Freyther
8f12fe818b
[mgcp] Remove talloc.h header.
2010-04-30 13:35:31 +08:00
Holger Hans Peter Freyther
a581136f73
[misc] Remove spaces, fix indention.
2010-04-30 13:34:15 +08:00
Holger Hans Peter Freyther
aa9d3ce97a
[mgcp] Ignore every dummy packet...
...
This routine should operate on different packets and the
dummy load is smaller than a legitimate RTP header so it
is unlikely we will filture out genuine traffic.
The reason is the dummy load might be send more than once.
2010-04-25 23:02:27 +08:00
Holger Hans Peter Freyther
b844b876ad
[mgcp] Add a dummy send method...
...
This can be used by higher level code to send one dummy
message from the audio port to the network. This can be
used to make the remote discover the nated port of this
endpoint.
2010-04-25 23:01:55 +08:00
Holger Hans Peter Freyther
aff596b8e1
[mgcp] Print the IP addr of the BTS we have detected.
2010-04-09 23:53:00 +02:00
Holger Hans Peter Freyther
575b89585f
[mgcp] Print the errno/strerror when we can not receive from our socket
2010-04-07 22:52:40 +02:00
Holger Hans Peter Freyther
b4b135efbf
[mgcp] Count incoming RTP packets from the BTS and remote
2010-04-07 22:51:59 +02:00
Holger Hans Peter Freyther
7279d24232
[mgcp] Do not patch RTP payload when type is set to -1.
...
For the nat we might or might not want to patch it, do not
patch if we have no valid rtp payload type.
2010-04-06 12:12:52 +02:00
Holger Hans Peter Freyther
8b120f0ef9
[mgcp] Look at the bts addr set at the endpoint
...
This will allow to discover the ports of a bts when we only know
the addr and have multiple bts's to handle.
2010-04-05 22:03:04 +02:00
Holger Hans Peter Freyther
774f0723bf
[mgcp] Do not print potentially many messages...
2010-03-01 18:53:05 +01:00
Holger Hans Peter Freyther
1ebad74377
Merge remote branch 'origin/master' into on-waves/mgcp
...
Conflicts:
openbsc/include/openbsc/Makefile.am
openbsc/src/Makefile.am
2010-02-26 20:16:45 +01:00
Holger Hans Peter Freyther
36ed8cc4c3
[mgcp] Patch the rtp payload depending on the direction.
...
The RTP header code is taken from the rtp_proxy, we will need
to figure out how to unite these properly in the long run.
2010-02-26 13:42:58 +01:00
Holger Hans Peter Freyther
1b0ea97457
[mgcp] Move the network bits to a separate file...
...
This change separates the protocol from the actual network code
(bind, forward data). This will allow to more easily hook up the
RTP code from OpenBSC and to not use local sockets at all.
2010-02-22 12:09:41 +01:00