/* Returns index of method in sip_headers Header namne should be in lower case  */
static gint sip_is_known_sip_header(gchar *header_name, guint header_len)
/* Returns index of method in sip_headers Header namne should be in lower case  */
static gint sip_is_known_sip_header(gchar *header_name, guint header_len)
{
    guint pos;
    if(header_len>1){
        pos = GPOINTER_TO_UINT(g_hash_table_lookup(sip_headers_hash, header_name));
        if (pos!=0)
            return pos;
    }
    for (pos = 1; pos < array_length(sip_headers); pos++) {
        if (sip_headers[pos].compact_name != NULL &&
                header_len == strlen(sip_headers[pos].compact_name) &&
                g_ascii_strncasecmp(header_name, sip_headers[pos].compact_name, header_len) == 0)
            return pos;
    }
    return -1;
}