mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
move SDP generator function write_response_sdp() from mgcp_protocol.c to mgcp_sdp.c and use msgb_printf() instead of snprintf() move prototypes for mgcp_parse_sdp_data() and mgcp_set_audio_info() to mgcp_sdp.h change parameter list of mgcp_parse_sdp_data() so that it takes the rtp conn directly, rather than struct mgcp_rtp_end. add doxygen comments to all public functions Change-Id: I9f88c93872ff913bc211f560b26901267f577324
36 lines
1.2 KiB
C
36 lines
1.2 KiB
C
/*
|
|
* SDP generation and parsing
|
|
*
|
|
* (C) 2009-2015 by Holger Hans Peter Freyther <zecke@selfish.org>
|
|
* (C) 2009-2014 by On-Waves
|
|
* All Rights Reserved
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License as published by
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Affero General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include <osmocom/mgcp/mgcp_sdp.h>
|
|
|
|
int mgcp_parse_sdp_data(const struct mgcp_endpoint *endp,
|
|
struct mgcp_conn_rtp *conn,
|
|
struct mgcp_parse_data *p);
|
|
|
|
int mgcp_set_audio_info(void *ctx, struct mgcp_rtp_codec *codec,
|
|
int payload_type, const char *audio_name);
|
|
|
|
int mgcp_write_response_sdp(const struct mgcp_endpoint *endp,
|
|
const struct mgcp_conn_rtp *conn, struct msgb *sdp,
|
|
const char *addr);
|