core: set log prefix only for sip messages

(cherry picked from commit 79a23a4fc154ad1ff174c3a8c2a14c3c5f85f402)