Improve timing interface to remember which provider provided a timer
authorKevin P. Fleming <kpfleming@digium.com>
Fri, 27 Mar 2009 19:10:32 +0000 (19:10 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Fri, 27 Mar 2009 19:10:32 +0000 (19:10 +0000)
commit9381bff79d8c042affb23d3733fe6aa272a1f579
treece5d46d0d87fc7ee22af3c25180e9916951b3cfc
parentf7453267505c4889b323df8a8718012c59033a67
Improve timing interface to remember which provider provided a timer

The ability to load/unload timing interfaces is nice, but it means that when a timer is allocated, it may come from provider A, but later provider B becomes the 'preferred' provider. If this happens, all timer API calls on the timer that was provided by provider A will actually be handed to provider B, which will say WTF and return an error.

This patch changes the timer API to include a pointer to the provider of the timer handle so that future operations on the timer will be forwarded to the proper provider.

(closes issue #14697)
Reported by: moy

Review: http://reviewboard.digium.com/r/211/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@184762 65c4cc65-6c06-0410-ace0-fbb531ad65f3
bridges/bridge_softmix.c
channels/chan_iax2.c
include/asterisk/channel.h
include/asterisk/timing.h
main/channel.c
main/timing.c