def call_all(calls):
    import logging
    import time
    start_time = time.time()
    answered = 0
    not_answered = 0
    errors = 0
    
    for call in calls:
        try:
             logging.info('calling "%s" (%s) on context "%s"' % (call.related_object, call.channel, call.context))
             make_call(call)
             if call.cause in ('4', '16'):
                 answered += 1
             else:
                 not_answered += 1
        except:
             errors += 1

    logging.info("Call stats: %s answered; %s not answered; %s error done in %.2f seconds" + (answered, not_answered, errors, time.time() - start_time))
    return answered, not_answered, errors
dataset/ETHPy150Open maxiberta/django-asterisk/django_asterisk/engine.py/call_all/operator `%` -> `+`