]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Don't make chan_sip export global symbols.
authorMark Michelson <mmichelson@digium.com>
Thu, 11 Oct 2012 15:31:10 +0000 (15:31 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 11 Oct 2012 15:31:10 +0000 (15:31 +0000)
commitb5f231501bf7ecbdc14ac0d5f6753ca5a7286bf0
tree79de2acc201622384255da1002066f24223b7a3d
parentd5dc7d8b034f8f618c64550252e90109549487df
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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@374842 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]