Fold in common code into the separate function.
Fold in common code into the separate function.

synety-jdebp/rtpproxy,sippy/rtpproxy,synety-jdebp/rtpproxy,sippy/rtp_cluster,dsanders11/rtpproxy,sippy/rtpproxy,dsanders11/rtpproxy,synety-jdebp/rtpproxy,jevonearth/rtpproxy,jevonearth/rtpproxy,synety-jdebp/rtpproxy,sippy/rtp_cluster,jevonearth/rtpproxy,jevonearth/rtpproxy,dsanders11/rtpproxy,sippy/rtpproxy