Summary: | ASTERISK-08558: chan_sip doesn't recognize localnet | ||
Reporter: | tootai (tootai) | Labels: | |
Date Opened: | 2007-01-11 13:03:06.000-0600 | Date Closed: | 2007-01-12 21:37:27.000-0600 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) localnet_diff.diff | |
Description: | Sip conf is: localnet=192.168.0.0/16 ; All RFC 1918 addresses are local networks ;localnet=10.0.0.0/255.0.0.0 ; Also RFC1918 ;localnet=172.16.0.0/12 ; Another RFC1918 with CIDR notation ;localnet=169.254.0.0/255.255.0.0 ;Zero conf local network #include /usr/local/etc/asterisk/localnet.conf Result: ERROR[26787] chan_sip.c: Bad localnet configuration value line 179 : 192.168.0.0/255.255.0.0] ERROR[26787] chan_sip.c: Bad localnet configuration value line 1 : xx.xx.xx.xx/255.255.255.255 or ERROR[26398] chan_sip.c: Bad localnet configuration value line 179 : 192.168.0.0/16 ERROR[26398] chan_sip.c: Bad localnet configuration value line 1 : xx.xx.xx.xx/32 -- Daniel | ||
Comments: | By: Anthony LaMantia (alamantia) 2007-01-12 17:28:48.000-0600 do you see any errors such as <ip> is not a valid netmask or <ip> is not a valid ip if not, please try my patch(i've just uploaded it) and see if that resolves the issue for you. By: Joshua C. Colp (jcolp) 2007-01-12 21:37:26.000-0600 Labbed up and the patch did work. Fixed in trunk as of revision 50677. |