Switch to supervisors

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Don't expose common.hrl - it's a prvate header

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Use supervisor per media channel

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Remove CMD_D processing outside of the media

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
ll the entire supervisor on exit

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Prevent timer leak

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Remove no longer necessary cast matching

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Properly count allocated memory

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Move gen_rtp under supervisor as well

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Dump unknown call while exiting

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Relocate several functions from rtpproxy_sup

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Allow disabling HTTP server

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Remove unused function

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Don't shadow variable

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Set RTP subscribers outside of the media object

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Move role and sibling setting outside of the media

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Fix prefilling

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Cleanup repeated CMD_U and remove accounting start

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Properly count memory before exiting player

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
player: trap exits

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>