Hello all, I’m trying to record an IVR using my gateway to do the outbound call in my luascript: local new_session = freeswitch.Session("[origination_caller_id_name=‘987654321',origination_caller_id_number=‘987654321']sofia/gateway/MY_GATEWAY/3157244022", session); new_session:execute("record_session","/usr/local/freeswitch/recordings/myrecording.wav") new_session:sleep("10000") new_session:hangup() So in the above script I just call to the Bank Of America as an example and try to record the first 10 seconds of the call in the recordings path. The problem is that I have an empty recording file.. Why? The funny thing is: if I add this command after the record_session command: new_session:streamFile("voicemail/vm-goodbye.wav”); And then this is the entire new script: local new_session = freeswitch.Session("[origination_caller_id_name=‘987654321',origination_caller_id_number=‘987654321']sofia/gateway/MY_GATEWAY/3157244022", session); new_session:execute("record_session","/usr/local/freeswitch/recordings/myrecording.wav”) new_session:streamFile("voicemail/vm-goodbye.wav”); new_session:sleep("10000") new_session:hangup() I can hear the Good Bye sound from my script and then hear the Bank of America IVR. I just don’t understand why the record works if I play a sound in our side and the record does not work if I don’t play any sound. Do you know what’s happening? How can I solve this? Thank you!