diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-08 07:18:37 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-08 07:18:37 +0800 |
commit | edd980619c1e0f12176a0e714287076a4c1fbf20 (patch) | |
tree | 30c03734f673a5baf1f7d0f6044a886b7b996532 /openbsc/include | |
parent | 2c362abfb47d75fda3b75e96060dd72d60f19445 (diff) |
mgcp: Allocate a different port for the networking...
Use the right source port when sending the message.
Conflicts:
openbsc/include/openbsc/mgcp.h
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/mgcp.h | 2 | ||||
-rw-r--r-- | openbsc/include/openbsc/mgcp_internal.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/mgcp.h b/openbsc/include/openbsc/mgcp.h index b650210ec..548470135 100644 --- a/openbsc/include/openbsc/mgcp.h +++ b/openbsc/include/openbsc/mgcp.h @@ -29,6 +29,7 @@ #include <arpa/inet.h> #define RTP_PORT_DEFAULT 4000 +#define RTP_PORT_NET_DEFAULT 16000 /** * Calculate the RTP audio port for the given multiplex * and the direction. This allows a semi static endpoint @@ -92,6 +93,7 @@ struct mgcp_config { int audio_payload; int audio_loop; int rtp_bts_base_port; + int rtp_net_base_port; int endp_dscp; /* only used in forward mode */ diff --git a/openbsc/include/openbsc/mgcp_internal.h b/openbsc/include/openbsc/mgcp_internal.h index 357f3bf82..6c236735f 100644 --- a/openbsc/include/openbsc/mgcp_internal.h +++ b/openbsc/include/openbsc/mgcp_internal.h @@ -99,5 +99,6 @@ int mgcp_analyze_header(struct mgcp_config *cfg, struct msgb *msg, const char **transaction_id, struct mgcp_endpoint **endp); int mgcp_send_dummy(struct mgcp_endpoint *endp); int mgcp_bind_bts_rtp_port(struct mgcp_endpoint *endp, int rtp_port); +int mgcp_bind_net_rtp_port(struct mgcp_endpoint *endp, int rtp_port); #endif |