core: moved repeating code to sipmsg_parse_warning()