]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
update chan_h323 to reflect the new prototype for rtp_set_peer (issue #6560, casper)
authorRussell Bryant <russell@russellbryant.com>
Fri, 5 May 2006 20:49:53 +0000 (20:49 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 5 May 2006 20:49:53 +0000 (20:49 +0000)
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

channels/chan_h323.c

index 469ce398ec9cbec4e67eac502f2bd3570bbdea6a..ee0bdbd1ddf09ef59cba1bd8335df1c48ea120ce 100644 (file)
@@ -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()