chan_iax2 has an extremely large function, socket_process(), to handle incoming
authorRussell Bryant <russell@russellbryant.com>
Sat, 9 Dec 2006 07:10:55 +0000 (07:10 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 9 Dec 2006 07:10:55 +0000 (07:10 +0000)
commit62c5be4fdab0050a5832c1483ef887bb592bfa75
treeec843963c184f8a2417123b9defe9cbabe557159
parent6592c25a6910546a2c2bea99df86d2d0d8a810e8
chan_iax2 has an extremely large function, socket_process(), to handle incoming
frames.  The function, before this commit, was roughly 1400 lines long.  So, I
am working on breaking this up into functions so that the code is easier to
follow and debug.  Also, I will be committing these changes in chunks as I do
them to ease tracking down any potentially introduced problems.

Break out roughly 150 lines from socket_process() and introduce a new function,
socket_process_meta() which handles the parsing of an incoming meta frame.
Also, restructure some of this code a bit to reduce the deep nesting that was
in this code.

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