summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-01-04 19:35:00 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-01-04 19:35:00 +0000
commit2fac359db6bc7ea4293268e2fe6d5805400b37ab (patch)
tree046de3bbb09afa02f7e763f7f286c4b33da40dfe /channels
parentf4fba89489c36aa6aad45369b37b2fdae3f8486a (diff)
Merged revisions 96525 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r96525 | tilghman | 2008-01-04 13:27:25 -0600 (Fri, 04 Jan 2008) | 4 lines 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: https://origsvn.digium.com/svn/asterisk/trunk@96547 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 a2135a21d..f5532ca2b 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -17054,6 +17054,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;
}
}