diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 9defb2e640..c68e90a4b1 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -23418,8 +23418,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; + } } }