aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-04 19:27:25 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-04 19:27:25 +0000
commitac0ee9984f5d6f40f2edefadde22d4860ae908ac (patch)
treeddbd0244ff336a032dcd87dc9b5b027ed2e89f67 /channels
parent4c55b7e2f2d858d75cdd194a0d577f3ae5f1b977 (diff)
If you change the bindaddr in sip.conf to a non-bound address and reload, sip goes kablooie.
Reported and patched by: one47 (Closes issue #11535) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@96525 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index cd09992d2..def3620b6 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -15487,6 +15487,9 @@ static void *do_monitor(void *data)
sipsock_read_id = ast_io_change(io, sipsock_read_id, sipsock, NULL, 0, NULL);
else
sipsock_read_id = ast_io_add(io, sipsock, sipsock_read, AST_IO_IN, NULL);
+ } else if (sipsock_read_id) {
+ ast_io_remove(io, sipsock_read_id);
+ sipsock_read_id = NULL;
}
}
/* Check for interfaces needing to be killed */