[Home]

Summary:ASTERISK-04389: [patch] one-way-audio problem on multihomed host with bind to secondary address:
Reporter:Pash (opa__)Labels:
Date Opened:2005-06-10 04:07:21Date Closed:2008-01-15 15:42:59.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_h323
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) asterisk-H323RTP4multiIPhosts-0.9.patch
Description:in oh323_alloc() @ chan_h323.c
memset(pvt, 0, sizeof(struct oh323_pvt));
-pvt->rtp = ast_rtp_new(sched, io, 1, 0);
+pvt->rtp = ast_rtp_new_with_bindaddr(sched, io, 1, 0,bindaddr.sin_addr);
if (!pvt->rtp) {
ast_log(LOG_WARNING, "Unable to create RTP session: %s\n", strerror(errno));

and

in external_rtp_create() remove "evil hack"

-ast_inet_ntoa(info->addr, sizeof(info->addr), bindaddr.sin_addr);
-info->port = ntohs(us.sin_port);



****** ADDITIONAL INFORMATION ******

like dead3a bug ASTERISK-3875.
tested on ASTERISK-3875!
Comments:By: Clod Patry (junky) 2005-06-20 19:27:24

Please attach patch, as said in bug guidelines.

By: Pash (opa__) 2005-07-01 00:23:44

see asterisk-H323RTP4multiIPhosts-0.9.patch

pls check hard second chunk. There evil hack was.

By: Pash (opa__) 2005-07-02 07:55:43

To test patch:
ifconfig eth0 IP1
ifconfig eth0:1 IP2

h323.conf:
bindaddr=IP2

and make outgoing call via h323. W/o this patch RTP's src will IP1 but OLC_srcIP==IP2  => RTP stream will not be accepted => 1-way-silence

By: jerjer (jerjer) 2005-07-27 00:36:33

commited to cvs -head

By: jerjer (jerjer) 2005-07-27 00:36:45

not in -stable

By: Digium Subversion (svnbot) 2008-01-15 15:42:59.000-0600

Repository: asterisk
Revision: 6233

U   trunk/channels/chan_h323.c

------------------------------------------------------------------------
r6233 | jeremy | 2008-01-15 15:42:59 -0600 (Tue, 15 Jan 2008) | 2 lines

one-way-audio problem on multihomed host with bind to secondary address. Bug ASTERISK-4389

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=6233