Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 1 | /* MGCP Private Data */ |
| 2 | |
| 3 | /* |
| 4 | * (C) 2009-2012 by Holger Hans Peter Freyther <zecke@selfish.org> |
| 5 | * (C) 2009-2012 by On-Waves |
| 6 | * All Rights Reserved |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU Affero General Public License as published by |
| 10 | * the Free Software Foundation; either version 3 of the License, or |
| 11 | * (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU Affero General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU Affero General Public License |
| 19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 | * |
| 21 | */ |
| 22 | |
| 23 | #pragma once |
| 24 | |
| 25 | #include <string.h> |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 26 | #include <inttypes.h> |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 27 | #include <osmocom/core/select.h> |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 28 | #include <osmocom/mgcp/mgcp.h> |
| 29 | #include <osmocom/core/linuxlist.h> |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 30 | |
| 31 | #define CI_UNUSED 0 |
| 32 | |
Philipp Maier | 01d24a3 | 2017-11-21 17:26:09 +0100 | [diff] [blame] | 33 | /* FIXME: This this is only needed to compile the currently |
| 34 | * broken OSMUX support. Remove when fixed */ |
| 35 | #define CONN_ID_BTS "0" |
| 36 | #define CONN_ID_NET "1" |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 37 | |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 38 | enum mgcp_trunk_type { |
| 39 | MGCP_TRUNK_VIRTUAL, |
| 40 | MGCP_TRUNK_E1, |
| 41 | }; |
| 42 | |
| 43 | struct mgcp_rtp_stream_state { |
| 44 | uint32_t ssrc; |
| 45 | uint16_t last_seq; |
| 46 | uint32_t last_timestamp; |
| 47 | uint32_t err_ts_counter; |
| 48 | int32_t last_tsdelta; |
| 49 | uint32_t last_arrival_time; |
| 50 | }; |
| 51 | |
| 52 | struct mgcp_rtp_state { |
Harald Welte | 3338135 | 2017-12-25 09:44:26 +0100 | [diff] [blame] | 53 | /* has this state structure been initialized? */ |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 54 | int initialized; |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 55 | |
Harald Welte | 3338135 | 2017-12-25 09:44:26 +0100 | [diff] [blame] | 56 | struct { |
| 57 | /* are we patching the SSRC value? */ |
| 58 | int patch_ssrc; |
| 59 | /* original SSRC (to which we shall patch any different SSRC) */ |
| 60 | uint32_t orig_ssrc; |
| 61 | /* offset to apply on the sequence number */ |
| 62 | int seq_offset; |
| 63 | /* offset to apply on the timestamp number */ |
| 64 | int32_t timestamp_offset; |
| 65 | } patch; |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 66 | |
Harald Welte | 3338135 | 2017-12-25 09:44:26 +0100 | [diff] [blame] | 67 | /* duration of a packet (FIXME: in which unit?) */ |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 68 | uint32_t packet_duration; |
| 69 | |
| 70 | struct mgcp_rtp_stream_state in_stream; |
| 71 | struct mgcp_rtp_stream_state out_stream; |
| 72 | |
| 73 | /* jitter and packet loss calculation */ |
Harald Welte | 49e3d5a | 2017-12-25 09:47:57 +0100 | [diff] [blame] | 74 | struct { |
| 75 | int initialized; |
| 76 | uint16_t base_seq; |
| 77 | uint16_t max_seq; |
| 78 | uint32_t ssrc; |
| 79 | uint32_t jitter; |
| 80 | int32_t transit; |
| 81 | int cycles; |
| 82 | } stats; |
| 83 | |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 84 | bool patched_first_rtp_payload; /* FIXME: drop this, see OS#2459 */ |
| 85 | }; |
| 86 | |
| 87 | struct mgcp_rtp_codec { |
| 88 | uint32_t rate; |
| 89 | int channels; |
| 90 | uint32_t frame_duration_num; |
| 91 | uint32_t frame_duration_den; |
| 92 | |
| 93 | int payload_type; |
| 94 | char *audio_name; |
| 95 | char *subtype_name; |
| 96 | }; |
| 97 | |
Harald Welte | 3f35a37 | 2017-12-26 15:48:46 +0100 | [diff] [blame] | 98 | /* 'mgcp_rtp_end': basically a wrapper around the RTP+RTCP ports */ |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 99 | struct mgcp_rtp_end { |
| 100 | /* statistics */ |
Harald Welte | a0ac30f | 2017-12-25 09:52:30 +0100 | [diff] [blame] | 101 | struct { |
| 102 | unsigned int packets_rx; |
| 103 | unsigned int octets_rx; |
| 104 | unsigned int packets_tx; |
| 105 | unsigned int octets_tx; |
| 106 | unsigned int dropped_packets; |
| 107 | } stats; |
| 108 | |
Harald Welte | 3f35a37 | 2017-12-26 15:48:46 +0100 | [diff] [blame] | 109 | /* local IP address of the RTP socket */ |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 110 | struct in_addr addr; |
| 111 | |
| 112 | /* in network byte order */ |
| 113 | int rtp_port, rtcp_port; |
| 114 | |
| 115 | /* audio codec information */ |
| 116 | struct mgcp_rtp_codec codec; |
| 117 | struct mgcp_rtp_codec alt_codec; /* TODO/XXX: make it generic */ |
| 118 | |
| 119 | /* per endpoint data */ |
| 120 | int frames_per_packet; |
| 121 | uint32_t packet_duration_ms; |
| 122 | char *fmtp_extra; |
Harald Welte | 3f35a37 | 2017-12-26 15:48:46 +0100 | [diff] [blame] | 123 | /* are we transmitting packets (1) or dropping (0) outbound packets */ |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 124 | int output_enabled; |
Harald Welte | 3f35a37 | 2017-12-26 15:48:46 +0100 | [diff] [blame] | 125 | /* FIXME: This parameter can be set + printed, but is nowhere used! */ |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 126 | int force_output_ptime; |
| 127 | |
| 128 | /* RTP patching */ |
| 129 | int force_constant_ssrc; /* -1: always, 0: don't, 1: once */ |
Harald Welte | 3f35a37 | 2017-12-26 15:48:46 +0100 | [diff] [blame] | 130 | /* should we perform align_rtp_timestamp_offset() (1) or not (0) */ |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 131 | int force_aligned_timing; |
Harald Welte | 3f35a37 | 2017-12-26 15:48:46 +0100 | [diff] [blame] | 132 | /* FIXME: not used anymore, used to be [external] transcoding related */ |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 133 | void *rtp_process_data; |
| 134 | |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 135 | /* Each end has a separate socket for RTP and RTCP */ |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 136 | struct osmo_fd rtp; |
| 137 | struct osmo_fd rtcp; |
| 138 | |
Harald Welte | 3f35a37 | 2017-12-26 15:48:46 +0100 | [diff] [blame] | 139 | /* local UDP port number of the RTP socket; RTCP is +1 */ |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 140 | int local_port; |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 141 | }; |
| 142 | |
| 143 | struct mgcp_rtp_tap { |
Harald Welte | 3f35a37 | 2017-12-26 15:48:46 +0100 | [diff] [blame] | 144 | /* is this tap active (1) or not (0) */ |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 145 | int enabled; |
Harald Welte | 3f35a37 | 2017-12-26 15:48:46 +0100 | [diff] [blame] | 146 | /* IP/port to which we're forwarding the tapped data */ |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 147 | struct sockaddr_in forward; |
| 148 | }; |
| 149 | |
| 150 | struct mgcp_lco { |
| 151 | char *string; |
| 152 | char *codec; |
| 153 | int pkt_period_min; /* time in ms */ |
| 154 | int pkt_period_max; /* time in ms */ |
| 155 | }; |
| 156 | |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 157 | /* Specific rtp connection type (see struct mgcp_conn_rtp) */ |
| 158 | enum mgcp_conn_rtp_type { |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 159 | MGCP_RTP_DEFAULT = 0, |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 160 | MGCP_OSMUX_BSC, |
| 161 | MGCP_OSMUX_BSC_NAT, |
| 162 | }; |
| 163 | |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 164 | #include <osmocom/mgcp/osmux.h> |
| 165 | struct mgcp_conn; |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 166 | |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 167 | /* MGCP connection (RTP) */ |
| 168 | struct mgcp_conn_rtp { |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 169 | |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 170 | /* Backpointer to conn struct */ |
| 171 | struct mgcp_conn *conn; |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 172 | |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 173 | /* Specific connection type */ |
| 174 | enum mgcp_conn_rtp_type type; |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 175 | |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 176 | /* Port status */ |
| 177 | struct mgcp_rtp_end end; |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 178 | |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 179 | /* Sequence bits */ |
| 180 | struct mgcp_rtp_state state; |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 181 | |
Harald Welte | 3f35a37 | 2017-12-26 15:48:46 +0100 | [diff] [blame] | 182 | /* taps for the rtp connection; one per direction */ |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 183 | struct mgcp_rtp_tap tap_in; |
| 184 | struct mgcp_rtp_tap tap_out; |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 185 | |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 186 | /* Osmux states (optional) */ |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 187 | struct { |
| 188 | /* Osmux state: disabled, activating, active */ |
| 189 | enum osmux_state state; |
| 190 | /* Allocated Osmux circuit ID for this endpoint */ |
| 191 | int allocated_cid; |
| 192 | /* Used Osmux circuit ID for this endpoint */ |
| 193 | uint8_t cid; |
| 194 | /* handle to batch messages */ |
| 195 | struct osmux_in_handle *in; |
| 196 | /* handle to unbatch messages */ |
| 197 | struct osmux_out_handle out; |
| 198 | /* statistics */ |
| 199 | struct { |
| 200 | uint32_t chunks; |
| 201 | uint32_t octets; |
| 202 | } stats; |
| 203 | } osmux; |
| 204 | }; |
| 205 | |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 206 | /*! Connection type, specifies which member of the union "u" in mgcp_conn |
| 207 | * contains a useful connection description (currently only RTP) */ |
| 208 | enum mgcp_conn_type { |
| 209 | MGCP_CONN_TYPE_RTP, |
| 210 | }; |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 211 | |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 212 | /*! MGCP connection (untyped) */ |
| 213 | struct mgcp_conn { |
| 214 | /*!< list head */ |
| 215 | struct llist_head entry; |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 216 | |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 217 | /*!< Backpointer to the endpoint where the conn belongs to */ |
| 218 | struct mgcp_endpoint *endp; |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 219 | |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 220 | /*!< type of the connection (union) */ |
| 221 | enum mgcp_conn_type type; |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 222 | |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 223 | /*!< mode of the connection */ |
| 224 | enum mgcp_connection_mode mode; |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 225 | |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 226 | /*!< copy of the mode to restore the original setting (VTY) */ |
| 227 | enum mgcp_connection_mode mode_orig; |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 228 | |
Harald Welte | 1d1b98f | 2017-12-25 10:03:40 +0100 | [diff] [blame] | 229 | /*!< connection id to identify the connection */ |
Philipp Maier | 01d24a3 | 2017-11-21 17:26:09 +0100 | [diff] [blame] | 230 | char id[MGCP_CONN_ID_LENGTH]; |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 231 | |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 232 | /*!< human readable name (vty, logging) */ |
| 233 | char name[256]; |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 234 | |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 235 | /*!< union with connection description */ |
| 236 | union { |
| 237 | struct mgcp_conn_rtp rtp; |
| 238 | } u; |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 239 | |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 240 | /*!< pointer to optional private data */ |
| 241 | void *priv; |
| 242 | }; |
| 243 | |
| 244 | #include <osmocom/mgcp/mgcp_conn.h> |
| 245 | |
| 246 | struct mgcp_endpoint_type; |
| 247 | |
| 248 | struct mgcp_endpoint { |
| 249 | char *callid; |
| 250 | struct mgcp_lco local_options; |
| 251 | |
| 252 | struct llist_head conns; |
| 253 | |
| 254 | /* backpointer */ |
| 255 | struct mgcp_config *cfg; |
| 256 | struct mgcp_trunk_config *tcfg; |
| 257 | |
| 258 | const struct mgcp_endpoint_type *type; |
| 259 | |
| 260 | /* fields for re-transmission */ |
| 261 | char *last_trans; |
| 262 | char *last_response; |
Philipp Maier | 55295f7 | 2018-01-15 14:00:28 +0100 | [diff] [blame^] | 263 | |
| 264 | /* Memorize if this endpoint was choosen by the MGW (wildcarded, true) |
| 265 | * or if the user has choosen the particular endpoint explicitly */ |
| 266 | bool wildcarded_crcx; |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 267 | }; |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 268 | |
| 269 | |
| 270 | #define ENDPOINT_NUMBER(endp) abs((int)(endp - endp->tcfg->endpoints)) |
| 271 | |
| 272 | /** |
| 273 | * Internal structure while parsing a request |
| 274 | */ |
| 275 | struct mgcp_parse_data { |
| 276 | struct mgcp_config *cfg; |
| 277 | struct mgcp_endpoint *endp; |
| 278 | char *trans; |
| 279 | char *save; |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 280 | }; |
| 281 | |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 282 | int mgcp_send(struct mgcp_endpoint *endp, int is_rtp, struct sockaddr_in *addr, |
| 283 | char *buf, int rc, struct mgcp_conn_rtp *conn_src, |
| 284 | struct mgcp_conn_rtp *conn_dst); |
| 285 | int mgcp_send_dummy(struct mgcp_endpoint *endp, struct mgcp_conn_rtp *conn); |
| 286 | int mgcp_dispatch_rtp_bridge_cb(int proto, struct sockaddr_in *addr, char *buf, |
| 287 | unsigned int buf_size, struct mgcp_conn *conn); |
| 288 | int mgcp_bind_net_rtp_port(struct mgcp_endpoint *endp, int rtp_port, |
| 289 | struct mgcp_conn_rtp *conn); |
| 290 | void mgcp_free_rtp_port(struct mgcp_rtp_end *end); |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 291 | |
| 292 | /* For transcoding we need to manage an in and an output that are connected */ |
| 293 | static inline int endp_back_channel(int endpoint) |
| 294 | { |
| 295 | return endpoint + 60; |
| 296 | } |
| 297 | |
| 298 | struct mgcp_trunk_config *mgcp_trunk_alloc(struct mgcp_config *cfg, int index); |
| 299 | struct mgcp_trunk_config *mgcp_trunk_num(struct mgcp_config *cfg, int index); |
| 300 | |
| 301 | void mgcp_rtp_end_config(struct mgcp_endpoint *endp, int expect_ssrc_change, |
| 302 | struct mgcp_rtp_end *rtp); |
| 303 | uint32_t mgcp_rtp_packet_duration(struct mgcp_endpoint *endp, |
| 304 | struct mgcp_rtp_end *rtp); |
| 305 | |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 306 | /* payload processing default functions */ |
| 307 | int mgcp_rtp_processing_default(struct mgcp_endpoint *endp, struct mgcp_rtp_end *dst_end, |
| 308 | char *data, int *len, int buf_size); |
| 309 | |
| 310 | int mgcp_setup_rtp_processing_default(struct mgcp_endpoint *endp, |
| 311 | struct mgcp_rtp_end *dst_end, |
| 312 | struct mgcp_rtp_end *src_end); |
| 313 | |
| 314 | void mgcp_get_net_downlink_format_default(struct mgcp_endpoint *endp, |
| 315 | int *payload_type, |
Philipp Maier | 87bd9be | 2017-08-22 16:35:41 +0200 | [diff] [blame] | 316 | const char**audio_name, |
| 317 | const char**fmtp_extra, |
| 318 | struct mgcp_conn_rtp *conn); |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 319 | |
| 320 | /* internal RTP Annex A counting */ |
| 321 | void mgcp_rtp_annex_count(struct mgcp_endpoint *endp, struct mgcp_rtp_state *state, |
| 322 | const uint16_t seq, const int32_t transit, |
| 323 | const uint32_t ssrc); |
| 324 | |
| 325 | int mgcp_set_ip_tos(int fd, int tos); |
| 326 | |
| 327 | enum { |
| 328 | MGCP_DEST_NET = 0, |
| 329 | MGCP_DEST_BTS, |
| 330 | }; |
| 331 | |
| 332 | |
| 333 | #define MGCP_DUMMY_LOAD 0x23 |
| 334 | |
| 335 | |
| 336 | /** |
| 337 | * SDP related information |
| 338 | */ |
| 339 | /* Assume audio frame length of 20ms */ |
| 340 | #define DEFAULT_RTP_AUDIO_FRAME_DUR_NUM 20 |
| 341 | #define DEFAULT_RTP_AUDIO_FRAME_DUR_DEN 1000 |
| 342 | #define DEFAULT_RTP_AUDIO_PACKET_DURATION_MS 20 |
| 343 | #define DEFAULT_RTP_AUDIO_DEFAULT_RATE 8000 |
| 344 | #define DEFAULT_RTP_AUDIO_DEFAULT_CHANNELS 1 |
| 345 | |
| 346 | #define PTYPE_UNDEFINED (-1) |
Neels Hofmeyr | f83ec56 | 2017-09-07 19:18:40 +0200 | [diff] [blame] | 347 | |
Philipp Maier | 1cb1e38 | 2017-11-02 17:16:04 +0100 | [diff] [blame] | 348 | void mgcp_get_local_addr(char *addr, struct mgcp_conn_rtp *conn); |