Feature/multi input

Not ready to merge.
Currently not working on Asterisk, with trace logs here: https://gist.github.com/polysics/8c3a2d34a4e4666fd8e1