Summary:ASTERISK-04667: Address family missing in chan_sip.c
Reporter:gkloepfer (gkloepfer)Labels:
Date Opened:2005-07-23 20:28:46Date Closed:2008-01-15 15:42:20.000-0600
Versions:Frequency of
Environment:Attachments:( 0) chan_sip.c.patch
Description:On FreeBSD, the address family is not properly propogated during a sockaddr struct copy, resulting in the following messages:

Jul 23 20:03:15 WARNING[64031]: chan_sip.c:939 __sip_xmit: sip_xmit of 0x825401c (len 485) to returned -1: Address family not supported by protocol family

The attached patch fixes this problem by maintaining sin_family during a copy of a sockaddr_in struct.
Comments:By: Olle Johansson (oej) 2005-07-24 05:30:55

Thank you for this patch! I tried to find it, but did not.

By: Kevin P. Fleming (kpfleming) 2005-07-25 13:25:19

Committed to CVS HEAD, thanks!

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

Repository: asterisk
Revision: 6190

U   trunk/channels/chan_sip.c

r6190 | kpfleming | 2008-01-15 15:42:18 -0600 (Tue, 15 Jan 2008) | 2 lines

ensure socket address family is copied (bug ASTERISK-4667)