From: Russell Bryant Date: Fri, 5 May 2006 20:49:53 +0000 (+0000) Subject: update chan_h323 to reflect the new prototype for rtp_set_peer (issue #6560, casper) X-Git-Tag: 1.2.8~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f643c18be87a4bc8c0603e382afdc8ef2841500;p=thirdparty%2Fasterisk.git update chan_h323 to reflect the new prototype for rtp_set_peer (issue #6560, casper) This was fixed a couple months ago in the trunk, but never in 1.2. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@25015 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_h323.c b/channels/chan_h323.c index 469ce398ec..ee0bdbd1dd 100644 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -1233,7 +1233,6 @@ void setup_rtp_connection(unsigned call_reference, const char *remoteIp, int rem */ void connection_made(unsigned call_reference, const char *token) { - struct ast_channel *c = NULL; struct oh323_pvt *pvt; if (h323debug) @@ -1435,7 +1434,6 @@ int setup_outgoing_call(call_details_t *cd) */ void chan_ringing(unsigned call_reference, const char *token) { - struct ast_channel *c = NULL; struct oh323_pvt *pvt; if (h323debug) @@ -2281,7 +2279,7 @@ static char *convertcap(int cap) } } -static int oh323_set_rtp_peer(struct ast_channel *chan, struct ast_rtp *rtp, struct ast_rtp *vrtp, int codecs) +static int oh323_set_rtp_peer(struct ast_channel *chan, struct ast_rtp *rtp, struct ast_rtp *vrtp, int codecs, int nat_active) { /* XXX Deal with Video */ struct oh323_pvt *pvt; @@ -2310,7 +2308,7 @@ static struct ast_rtp_protocol oh323_rtp = { .type = type, .get_rtp_info = oh323_get_rtp_peer, .get_vrtp_info = oh323_get_vrtp_peer, - .set_rtp_peer= oh323_set_rtp_peer, + .set_rtp_peer = oh323_set_rtp_peer, }; int load_module()