[asterisk-bugs] [Asterisk 0015827]: Callcentric only - Address family not supported by protocol

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Sep 15 12:42:44 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15827 
====================================================================== 
Reported By:                DennisD
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15827
Category:                   Core/Netsock
Reproducibility:            random
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.1.5 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-09-03 15:54 CDT
Last Modified:              2009-09-15 12:42 CDT
====================================================================== 
Summary:                    Callcentric only - Address family not supported by
protocol
Description: 
This ONLY happens with callcentric and only after Asterisk is up for a few
hours:

[2009-09-03 16:28:01.487] DEBUG[6851] devicestate.c: device
'SIP/callcentric' state '6'
[2009-09-03 16:28:01.488] DEBUG[10700] chan_sip.c: ** Our capability: 0x4
(ulaw) Video flag: False Text flag: False
[2009-09-03 16:28:01.488] DEBUG[10700] chan_sip.c: ** Our prefcodec: 0x4
(ulaw) 
[2009-09-03 16:28:01.488] DEBUG[10700] chan_sip.c: -- Done with adding
codecs to SDP
[2009-09-03 16:28:01.488] DEBUG[10700] chan_sip.c: Done building SDP.
Settling with this capability: 0x4 (ulaw)
[2009-09-03 16:28:01.488] DEBUG[10700] chan_sip.c: Initializing initreq
for method INVITE - callid 6e3807ab0e1b8f406ae186e8110e9606 at dennisd.com
[2009-09-03 16:28:01.488] DEBUG[10700] chan_sip.c: Trying to put 'INVITE
sip' onto UDP socket destined for 204.11.192.39:5060
[2009-09-03 16:28:01.488] WARNING[10700] chan_sip.c: sip_xmit of 0x2844f90
(len 943) to 204.11.192.39:5060 returned -1: Address family not supported
by protocol
[2009-09-03 16:28:01.488] VERBOSE[10700] app_dial.c:     -- Called
15869091150 at callcentric
[2009-09-03 16:28:02.488] DEBUG[8281] chan_sip.c: ** SIP timers:
Rescheduling retransmission 2 to 1000 ms (t1 500 ms (Retrans id
https://issues.asterisk.org/view.php?id=19577)) 
[2009-09-03 16:28:02.488] DEBUG[8281] chan_sip.c: Trying to put 'INVITE
sip' onto UDP socket destined for 204.11.192.39:5060
[2009-09-03 16:28:02.488] WARNING[8281] chan_sip.c: sip_xmit of 0x2844f90
(len 943) to 204.11.192.39:5060 returned -1: Address family not supported
by protocol
[2009-09-03 16:28:03.488] DEBUG[8281] chan_sip.c: ** SIP timers:
Rescheduling retransmission 3 to 2000 ms (t1 500 ms (Retrans id
https://issues.asterisk.org/view.php?id=19577)) 
[2009-09-03 16:28:03.488] DEBUG[8281] chan_sip.c: Trying to put 'INVITE
sip' onto UDP socket destined for 204.11.192.39:5060
[2009-09-03 16:28:03.488] WARNING[8281] chan_sip.c: sip_xmit of 0x2844f90
(len 943) to 204.11.192.39:5060 returned -1: Address family not supported
by protocol
[2009-09-03 16:28:05.488] DEBUG[8281] chan_sip.c: ** SIP timers:
Rescheduling retransmission 4 to 4000 ms (t1 500 ms (Retrans id
https://issues.asterisk.org/view.php?id=19577)) 
[2009-09-03 16:28:05.488] DEBUG[8281] chan_sip.c: Trying to put 'INVITE
sip' onto UDP socket destined for 204.11.192.39:5060
[2009-09-03 16:28:05.488] WARNING[8281] chan_sip.c: sip_xmit of 0x2844f90
(len 943) to 204.11.192.39:5060 returned -1: Address family not supported
by protocol
[2009-09-03 16:28:09.488] DEBUG[8281] chan_sip.c: ** SIP timers:
Rescheduling retransmission 5 to 8000 ms (t1 500 ms (Retrans id
https://issues.asterisk.org/view.php?id=19577)) 
[2009-09-03 16:28:09.488] DEBUG[8281] chan_sip.c: Trying to put 'INVITE
sip' onto UDP socket destined for 204.11.192.39:5060
[2009-09-03 16:28:09.488] WARNING[8281] chan_sip.c: sip_xmit of 0x2844f90
(len 943) to 204.11.192.39:5060 returned -1: Address family not supported
by protocol
[2009-09-03 16:28:11.129] DEBUG[8281] chan_sip.c: Auto destroying SIP
dialog '64357d2a-d82cc7ab at 127.0.0.1'
[2009-09-03 16:28:11.129] DEBUG[8281] chan_sip.c: Destroying SIP dialog
64357d2a-d82cc7ab at 127.0.0.1
[2009-09-03 16:28:17.094] DEBUG[8281] acl.c: Found IP address for this
socket



====================================================================== 

---------------------------------------------------------------------- 
 (0110708) russell (administrator) - 2009-09-15 12:42
 https://issues.asterisk.org/view.php?id=15827#c110708 
---------------------------------------------------------------------- 
I have seen this type of thing caused by the sockaddr_in->sin_family field
being left uninitialized.  It should be set to AF_INET.  Usually, at least
on linux, if you leave it uninitialized, it will just assume AF_INET
(IPv4).

However, if you have IPv6 enabled on the box, it may now require it to be
set (it should be set, anyway).

If you completely disable IPv6, I wonder if it will go away.  In any case,
we'll have to find where the AF_INET setting is missing and fix it up. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-15 12:42 russell        Note Added: 0110708                          
======================================================================




More information about the asterisk-bugs mailing list