[asterisk-bugs] [Asterisk 0009225]: sip doesnt bind to all
noreply at bugs.digium.com
noreply at bugs.digium.com
Tue Jan 22 06:23:46 CST 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=9225
======================================================================
Reported By: junky
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 9225
Category: Channels/chan_sip/General
Reproducibility: always
Severity: minor
Priority: normal
Status: ready for testing
Asterisk Version: 1.4.0
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: No
Request Review:
======================================================================
Date Submitted: 03-07-2007 10:45 CST
Last Modified: 01-22-2008 06:23 CST
======================================================================
Summary: sip doesnt bind to all
Description:
if you set your bindaddr=0.0.0.0 in sip.conf this supposes to bind to all
addresses (WAN and LAN).
In this scenario, if the wan cant get an ip, it will disable the stack.
module reload chan_sip.so
== Parsing '/flash/asterisk/configs/sip.conf': Found
== Parsing '/flash/asterisk/configs/users.conf': Found
[Dec 31 19:01:48] WARNING[1070]: acl.c:383 ast_ouraddrfor: Cannot connect
[Dec 31 19:01:48] WARNING[1070]: chan_sip.c:16474 reload_config: Unable to
get own IP address, SIP disabled
It should listen to lan adresses even when the wan is down.
But setting the bindaddr=192.168.0.10 works perfectly.
======================================================================
----------------------------------------------------------------------
sergee - 01-22-08 06:23
----------------------------------------------------------------------
+ else if (strncmp(address, "172", 3) == 0) {
+ if (address[4] == '1' && address[5] >= '6')
+ score = -5;
+ else if (address[4] == '2')
+ score = -5;
+ else if (address[4] == '3' && address[5] <= '1')
+ score = -5;
+ else
+ score = 0;
Corydon76, your code catches 172.2XX networks - i believe it's a small
bug, right?
Issue History
Date Modified Username Field Change
======================================================================
01-22-08 06:23 sergee Note Added: 0080987
======================================================================
More information about the asterisk-bugs
mailing list