Re: [reSIProcate] B2BUA architecture?
Max Bowsher wrote:
Hi,
I need to write a B2BUA, so I've been looking at the B2BUA code recently
added to main.
One point that I do not understand is this:
Why does the code so aggressively defer any kind of action involving
B2BCalls to the state machine, even when such actions are sometimes just
a state machine state change themselves? Why not just execute the action
inline immediately?
Several reasons:
- so that logic for regulating state changes can be kept in one place
- logging state changes
- to allow some state changes to be asynchronous (many of these are not
yet implemented though)