def on_start(channel, event):
    channel.answer()
    playback = channel.play(media='sound:demo-congrats')

    def on_dtmf(channel, event):
        """Callback for DTMF events.

        DTMF events control the playback operation.

        :param channel: Channel DTMF was received on.
        :param event: Event.
        """
        # Since the callback was registered to a specific channel, we can
        #  control the playback object we already have in scope.
        digit = event['digit']
        if digit == '5':
            playback.control(operation='pause')
        elif digit == '8':
            playback.control(operation='unpause')
        elif digit == '4':
            playback.control(operation='reverse')
        elif digit == '6':
            playback.control(operation='forward')
        elif digit == '2':
            playback.control(operation='restart')
        elif digit == '#':
            playback.stop()
            channel.continueInDialplan()
        else:
            print >> sys.stderr, "Unknown DTMF %s" % digit

    channel.on_event('ChannelDtmfReceived', on_dtmf)
Returns a full log for all instance usage audit tasks on all
dataset/ETHPy150Open asterisk/ari-py/examples/playback_example.py/on_start--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/api/openstack/compute/instance_usage_audit_log.py/InstanceUsageAuditLogController._get_audit_task_logs