DELETE from vicidial_auto_calls where channel is null and (now() - last_update_time)>=100;
I was doing exactly same thing before by deleting calls not updated since 6 mins or so . I want to make sure that it does not delete unnecessary entries ( even though channel is null many of entries are deleted by vicidial properly ) . Your script is deleting all null channels not updated from 100 secomds , right ?
Have you thoroughly tested it ? Even though it will definitely work, i just want to make sure it doesn't result in lead wastage by unnecessarily deleting entries . Let me know how well your testing went with it
.