Index: channels/chan_sip.c =================================================================== --- channels/chan_sip.c (revision 121560) +++ channels/chan_sip.c (working copy) @@ -12735,12 +12735,12 @@ int sipmethod; int res = 1; const char *c = get_header(req, "Cseq"); - const char *msg = strchr(c, ' '); + /* Skip the Cseq and its subsequent spaces */ + const char *msg = ast_skip_blanks(ast_skip_nonblanks((char *)c)); if (!msg) msg = ""; - else - msg++; + sipmethod = find_sip_method(msg); owner = p->owner;