From 6a19e66d00220df9104dda65fd56c12251724895 Mon Sep 17 00:00:00 2001 From: Jeremy McNamara Date: Tue, 1 Jul 2003 19:11:37 +0000 Subject: [PATCH] update to deal with new rtp.c changes git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1146 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/h323/chan_h323.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/channels/h323/chan_h323.c b/channels/h323/chan_h323.c index e044e2396a..4bd97e4f32 100755 --- a/channels/h323/chan_h323.c +++ b/channels/h323/chan_h323.c @@ -684,7 +684,8 @@ static struct oh323_pvt *oh323_alloc(int callid) /* Keep track of stuff */ memset(p, 0, sizeof(struct oh323_pvt)); - p->rtp = ast_rtp_new(NULL, NULL); + p->rtp = ast_rtp_new(sched, io, 1, 0); + if (!p->rtp) { ast_log(LOG_WARNING, "Unable to create RTP session: %s\n", strerror(errno)); free(p); @@ -1569,8 +1570,15 @@ static struct ast_rtp *oh323_get_rtp_peer(struct ast_channel *chan) return NULL; } -static int oh323_set_rtp_peer(struct ast_channel *chan, struct ast_rtp *rtp) +static struct ast_rtp *oh323_get_vrtp_peer(struct ast_channel *chan) { + return NULL; +} + +static int oh323_set_rtp_peer(struct ast_channel *chan, struct ast_rtp *rtp, struct ast_rtp *vrtp) +{ + /* XXX Deal with Video */ + struct oh323_pvt *p; struct sockaddr_in them; struct sockaddr_in us; @@ -1598,9 +1606,11 @@ static int oh323_set_rtp_peer(struct ast_channel *chan, struct ast_rtp *rtp) static struct ast_rtp_protocol oh323_rtp = { get_rtp_info: oh323_get_rtp_peer, + get_vrtp_info: oh323_get_vrtp_peer, set_rtp_peer: oh323_set_rtp_peer, }; + int load_module() { int res;