chan_agent: Fix wrapup time wait response.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 3 Jan 2013 19:42:54 +0000 (19:42 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 3 Jan 2013 19:42:54 +0000 (19:42 +0000)
commit1d685bd28ca64f6093ae86d0fe2974612c05f1cd
tree109f3c5f6927ecef999edf77d28931c5ab78db9d
parentad582f9aef40a56fc13f9eea40adb3ea51fe37a8
chan_agent: Fix wrapup time wait response.

* Made agent_cont_sleep() and agent_ack_sleep() stop waiting if the wrapup
time expires.  agent_cont_sleep() had tried but returned the wrong value
to stop waiting.

* Made agent_ack_sleep() take a struct agent_pvt pointer instead of a void
pointer for better type safety.
........

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

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

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