def call_and_bridge_to_pstn_with_greeting()

in src/smaLambda/callForwardingSMA.py [0:0]


def call_and_bridge_to_pstn_with_greeting(caller_id, destination, audio_file):
    return {
        'Type': 'CallAndBridge',
        'Parameters': {
            'CallTimeoutSeconds': 30,
            'CallerIdNumber': caller_id,
            'RingbackTone': {
                    'Type': 'S3',
                    'BucketName': os.environ['WavBucketName'],
                    'Key': audio_file
                },
            'Endpoints':
            [
                {
                    'Uri': destination,
                    'BridgeEndpointType': 'PSTN'
                }
            ]
        }
    }