[Home]

Summary:ASTERISK-15933: proxy_allocate() fails to init proxy->ip.sin_family
Reporter:Stuart Henderson (stuarth)Labels:
Date Opened:2010-04-09 06:01:24Date Closed:2010-05-21 15:38:47
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:sin_family should be init'ed to AF_INET, otherwise any OS which requires a valid address family fails when using outboundproxy.
Comments:By: Paul Belanger (pabelanger) 2010-04-09 10:44:07

Patch?

By: Stuart Henderson (stuarth) 2010-04-09 11:30:05

I won't provide a direct patch here as I haven't signed the license and don't wish to at this time. But simply initialise ip.sin_family to AF_INET in proxy_allocate() of chan_sip.c.

By: Digium Subversion (svnbot) 2010-05-21 15:38:15

Repository: asterisk
Revision: 265087

U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r265087 | mmichelson | 2010-05-21 15:38:14 -0500 (Fri, 21 May 2010) | 7 lines

Be sure to set the sin_family on the proxy when allocating.

(closes issue ASTERISK-15933)
Reported by: stuarth



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

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

By: Digium Subversion (svnbot) 2010-05-21 15:38:46

Repository: asterisk
Revision: 265088

_U  branches/1.6.2/
U   branches/1.6.2/channels/chan_sip.c

------------------------------------------------------------------------
r265088 | mmichelson | 2010-05-21 15:38:46 -0500 (Fri, 21 May 2010) | 12 lines

Merged revisions 265087 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r265087 | mmichelson | 2010-05-21 15:38:14 -0500 (Fri, 21 May 2010) | 7 lines
 
 Be sure to set the sin_family on the proxy when allocating.
 
 (closes issue ASTERISK-15933)
 Reported by: stuarth
........

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

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