Add missing test event

This test event was missing from channel.c causing the dial_LS_options
test to fail intermittently because of a race condition where most code
paths emitted the test event but this one did not. The dial_LS_options
test should stop bouncing now.


git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/1.8@378455 f38db490-d61c-443f-a65b-d21fe96a405b
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.

* Remove some redundant code in agent_request().


git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/1.8@378456 f38db490-d61c-443f-a65b-d21fe96a405b