diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-01-05 12:35:16 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-01-05 12:35:16 +0100 |
commit | 64b811f11321a13138ec48edcd6cafae23fcc7ed (patch) | |
tree | 5d4a4a26d4e29e8b5515fe305173206b38cd05bf /openbsc/src | |
parent | 91fc9bf8620034dc6c8f6e37894d801ff99b6b79 (diff) |
[bsc_mgcp] Set the right remote rtp and rtcp port
* It is the same as local endpoint port
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/bsc_mgcp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/bsc_mgcp.c b/openbsc/src/bsc_mgcp.c index 56a0b13c1..bdfe08483 100644 --- a/openbsc/src/bsc_mgcp.c +++ b/openbsc/src/bsc_mgcp.c @@ -1153,6 +1153,8 @@ int main(int argc, char** argv) struct mgcp_endpoint *endp = &endpoints[i]; inet_aton(forward_ip, &endp->remote); endp->ci = CI_UNUSED + 23; + endp->rtp = htons(rtp_calculate_port(ENDPOINT_NUMBER(endp), rtp_base_port)); + endp->rtcp = htons(rtp_calculate_port(ENDPOINT_NUMBER(endp), rtp_base_port) + 1); } DEBUGP(DMGCP, "Configured for Audio Forwarding.\n"); |