]> git.ipfire.org Git - thirdparty/asterisk.git/commit
LDAP Realtime Peers Cannot Register
authorDarren Sessions <dmsessions@gmail.com>
Thu, 6 Sep 2012 18:54:37 +0000 (18:54 +0000)
committerDarren Sessions <dmsessions@gmail.com>
Thu, 6 Sep 2012 18:54:37 +0000 (18:54 +0000)
commitf25975699e04dcb55baa0c85d786ea588ae36bb0
tree3833dca49b6fe52b2cca90387f3a6a14bdf7a737
parent7e462b699aaa781fac38ce2904ddd0db1ef0dec3
LDAP Realtime Peers Cannot Register

Prior to 1.8, it was not necessary for an explicit "type" to be set for an
asterisk LDAP realtime peer. Now the routine find_peer actually checks the
type field during registration and fails to find the peer if it is not set.

The attached patches make the realtime type equal whatever type is being
searched for if the type is 0 upon return from routine build_peer.

(closes issue ASTERISK-17222)
Reported by: John Covert
Patch by: David Vossel
Tested by: Darren Sessions

Review: https://reviewboard.asterisk.org/r/2095/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@372498 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c
configs/res_ldap.conf.sample