blob: da23cbaba3af7a755db4bfbe0264d1586a28310e [file] [log] [blame]
Philipp Maier8970c492017-10-11 13:33:42 +02001/*
2 * SDP generation and parsing
3 *
4 * (C) 2009-2015 by Holger Hans Peter Freyther <zecke@selfish.org>
5 * (C) 2009-2014 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#include <osmocom/mgcp/mgcp_sdp.h>
25
26int mgcp_parse_sdp_data(const struct mgcp_endpoint *endp,
27 struct mgcp_conn_rtp *conn,
28 struct mgcp_parse_data *p);
29
30int mgcp_set_audio_info(void *ctx, struct mgcp_rtp_codec *codec,
31 int payload_type, const char *audio_name);
32
33int mgcp_write_response_sdp(const struct mgcp_endpoint *endp,
34 const struct mgcp_conn_rtp *conn, struct msgb *sdp,
35 const char *addr);