chan_iax2 has an extremely large function, socket_process(), to handle incoming