O2 Call Defence will be able to spot scam or spam calls and flag them to users before they answer the phone, the mobile phone giant and network said.