sipmsg: add helpers to find common headers