Merged revisions 108288 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Wed, 12 Mar 2008 21:57:41 +0000 (21:57 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 12 Mar 2008 21:57:41 +0000 (21:57 +0000)
commit39cc1b4f36bdf4c8d31011e3922eda9d3fd2c0c1
treec1374ef3c25edfe2857a9af105f7e9dacb3cd0ae
parenta3a8aa65475bd71900f8a7630bab3ab52fb5bbc0
Merged revisions 108288 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r108288 | mmichelson | 2008-03-12 16:53:46 -0500 (Wed, 12 Mar 2008) | 14 lines

Change AST_SCHED_DEL use to ast_sched_del for autocongestion in chan_sip.

The scheduler callback will always return 0. This means that this id
is never rescheduled, so it makes no sense to loop trying to delete
the id from the scheduler queue. If we fail to remove the item from the
queue once, it will fail every single time.

(Yes I realize that in this case, the macro would exit early because the
id is set to -1 in the callback, but it still makes no sense to use
that macro in favor of calling ast_sched_del once and being done with it)

This is the first of potentially several such fixes.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108289 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c