merge from team/rizzo/astobj2, rev 47243, 47244, 47245:
authorLuigi Rizzo <rizzo@icir.org>
Wed, 8 Nov 2006 13:49:25 +0000 (13:49 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Wed, 8 Nov 2006 13:49:25 +0000 (13:49 +0000)
commit09012d5f20a5d17c23579eb1e51fe9215d01a305
tree0c57615907d36240feca8c7e9949f2d9caa4acf2
parent24dfbe955e653de562c66973183820958fcba581
merge from team/rizzo/astobj2, rev 47243, 47244, 47245:

Replace ASTOBJ_UNREF(peer, sip_destroy_peer) with unref_peer(peer);

This places the name of the destructor in one place only (where it
should be), eliminates the chance of errors in case you specify the wrong
destructor, and also lets the compiler do type checking on the argument,
again helping with keeping the code clean.

Same for users.
remove two duplicate definitions.

Approved By: oej

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