diff options
author | Jeremy McNamara <jj@nufone.net> | 2003-07-01 19:11:37 +0000 |
---|---|---|
committer | Jeremy McNamara <jj@nufone.net> | 2003-07-01 19:11:37 +0000 |
commit | 6a19e66d00220df9104dda65fd56c12251724895 (patch) | |
tree | 6712e052e82eeb12e7f100d2e45ce21b9a70b06c /channels/h323 | |
parent | 16b14c89451b5f94fa198624efebaed65bfa5840 (diff) |
update to deal with new rtp.c changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/h323')
-rwxr-xr-x | channels/h323/chan_h323.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/channels/h323/chan_h323.c b/channels/h323/chan_h323.c index e044e2396..4bd97e4f3 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; |