Index: b/channels/chan_sip.c =================================================================== --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -19451,7 +19451,8 @@ static int handle_incoming(struct sip_pv */ req->ignore = 1; append_history(p, "Ignore", "Ignoring this retransmit\n"); - } else if (e) { + } + if (!ret && e) { e = ast_skip_blanks(e); if (sscanf(e, "%d %n", &respid, &len) != 1) { ast_log(LOG_WARNING, "Invalid response: '%s'\n", e);