[Asterisk-Dev] SIP does NOT change bindaddr when "sip reload"
redice li
redice at buoy.3322.org
Tue Oct 11 18:21:58 MST 2005
I found that if I change the bindaddr in sip.conf, then use "sip
reload", the address is re-read by chan_sip, but the bind address is not
really changed. "sip reload" only change bind address when a only port
change in sip.conf(see below):
static int reload_config(void)
{
.....
if ((sipsock > -1) && (ntohs(bindaddr.sin_port) != oldport)) {
close(sipsock);
sipsock = -1;
}
if (sipsock < 0) {
/* DO bind here */
...
When use "sip show settings", it display the settings with new bindaddr,
but netstat show old address binded!
More information about the asterisk-dev
mailing list