Proper checking of callid length
Reported by Walter Doekes