diff --git a/channels/chan_sip.c b/channels/chan_sip.c index fa6938f3fec7b58ce2b2eaba1427224ae22027ec..f7941c86f5c512592c141213a8e0657c4866bcca 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -15970,8 +15970,6 @@ static int handle_response_register(struct sip_pvt *p, int resp, char *rest, str } break; case 408: /* Request timeout */ - if (global_regattempts_max) - p->registry->regattempts = global_regattempts_max+1; p->needdestroy = 1; if (r->call) r->call = dialog_unref(r->call, "unsetting registry->call pointer-- case 408");