Don't make chan_sip export global symbols.
authorMark Michelson <mmichelson@digium.com>
Thu, 11 Oct 2012 15:49:02 +0000 (15:49 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 11 Oct 2012 15:49:02 +0000 (15:49 +0000)
commit825607e09b022ce56f7b5ccac03cd0dbf042396c
treedeec60920ba118bd06d2fdcd18f84853900e15c6
parent5ac43a08ad199d25d50198c0bb15826c346db9d2
Don't make chan_sip export global symbols.

During testing, it was discovered that having chan_sip
export global symbols was problematic.

The biggest problem was that load order was affected.
Trying to use realtime could be problematic since in
all likelihood the necessary realtime driver(s) would
not be loaded before chan_sip.

In addition, it was found that it was impossible to
use the Digium Phone Module for Asterisk since it
must be loaded before chan_sip since it must hook
into chan_sip's configuration parsing.

The solution is to use a virtual table in the same
manner that other modules in Asterisk do, like
app_voicemail.

(closes issue ASTERISK-20545)
Reported by: kmoore

........

Merged revisions 374842 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@374849 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c
channels/chan_sip.exports.in [deleted file]
include/asterisk/sip_api.h
main/sip_api.c [new file with mode: 0644]