diff --git a/channels/chan_sip.c b/channels/chan_sip.c index f5c726fea2..43fff0e04a 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -21519,8 +21519,9 @@ static int handle_response_register(struct sip_pvt *p, int resp, const char *res } tmptmp = strcasestr(contact, "expires="); if (tmptmp) { - if (sscanf(tmptmp + 8, "%30d;", &expires) != 1) + if (sscanf(tmptmp + 8, "%30d", &expires) != 1) { expires = 0; + } } }