From: Russell Bryant Date: Wed, 6 Oct 2004 22:26:10 +0000 (+0000) Subject: fix bindaddr for MGCP (bug #2579) X-Git-Tag: 1.0.11.1~453 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9be91101f350df1b081f3bfe65ded3f61f15bc4;p=thirdparty%2Fasterisk.git fix bindaddr for MGCP (bug #2579) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@3925 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index 781fa29e21..1a31c18a5d 100755 --- a/channels/chan_mgcp.c +++ b/channels/chan_mgcp.c @@ -2411,7 +2411,7 @@ static void start_rtp(struct mgcp_subchannel *sub) sub->rtp = NULL; } /* Allocate the RTP now */ - sub->rtp = ast_rtp_new(sched, io, 1, 0); + sub->rtp = ast_rtp_new_with_bindaddr(sched, io, 1, 0, bindaddr.sin_addr); if (sub->rtp && sub->owner) sub->owner->fds[0] = ast_rtp_fd(sub->rtp); if (sub->rtp)