]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Refactor and cleanup of skinny session handling.
authorDamien Wedhorn <voip@facts.com.au>
Thu, 11 Jul 2013 20:17:53 +0000 (20:17 +0000)
committerDamien Wedhorn <voip@facts.com.au>
Thu, 11 Jul 2013 20:17:53 +0000 (20:17 +0000)
commit6a2b3af90cf80055c47fa02b52a3a0e8a329c21a
tree9855d437ded786cef738f7db6a70a1abf20126d9
parent0ce29906eb59208f6a05f0e58060538687cd8eb4
Refactor and cleanup of skinny session handling.

Major changes are to pull all packet reading functions into skinny_session
and move timeout handling to scheduling arrangements. Thread cancelling is
now undertaken directly rather than waiting for the read to timeout
(cleanup is popped on thread cancel). Also added some keepalive timings in
debugging messages.

Keepalive timeout has been increased from 1.1 by keepalive to 3 times
keepalive. This seems to align (after keepalives stabilise) with when
devices reset after not receiving keepalives. Probably needs more work,
especially around the first and/or second keepalives that vary
significantly by device and firmware version.

Review: https://reviewboard.asterisk.org/r/2611/

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