--- chan_sip.orig 2013-09-23 09:56:52.919919504 +0200 +++ chan_sip.c 2013-09-23 09:57:08.575959405 +0200 @@ -21004,7 +21004,7 @@ static int handle_response_register(stru } tmptmp = strcasestr(contact, "expires="); if (tmptmp) { - if (sscanf(tmptmp + 8, "%30d;", &expires) != 1) + if (sscanf(tmptmp + 8, "%30d", &expires) != 1) expires = 0; }