chan_agent: Misc code cleanup.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 3 Jan 2013 18:47:29 +0000 (18:47 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 3 Jan 2013 18:47:29 +0000 (18:47 +0000)
commitda7c2e3ffe676ec5fd38683f34e0908043dad018
tree7bb6f524a3d31ce673402f1db94ade57b25efcda
parent11571714fe5cea449e484283a8f3aa2fdf5600ed
chan_agent: Misc code cleanup.

* Fix off-nominal path resource cleanup in agent_request().

* Create agent_pvt_destroy() to eliminate inlined versions in many places.

* Pull invariant code out of loop in add_agent().

* Remove redundant module user references in login_exec().

* Remove unused struct agent_pvt logincallerid[] member.
........

Merged revisions 378456 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

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

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