Skinny cleanup.
authorDamien Wedhorn <voip@facts.com.au>
Thu, 7 Jun 2012 21:23:42 +0000 (21:23 +0000)
committerDamien Wedhorn <voip@facts.com.au>
Thu, 7 Jun 2012 21:23:42 +0000 (21:23 +0000)
commit0271734f2e7864aefebfd1f1b11b0d1aa0ad9109
treebaec52d7e1cc51da489bf060cb86cb63c9c3fc74
parent3f59ad990c28f472c1d01dab8d4d0091ff7e522a
Skinny cleanup.

Removed d->registered which was mirroring d->session. Changed relevant
references to use d->session instead.

Moved setting and unsetting of l->device from session register to device
configuration. As such, l->device will always be valid unless it is has not
been configured to a device. Revised various test where checking if a device
is registered to use l->device->session.

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