Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local event = event
- local uuid = event:getHeader("variable_originating_leg_uuid")
- if uuid and uuid ~= "" and event:getHeader("variable_sofia_profile_name") == "external" then
- local freeswitch = freeswitch
- local api = freeswitch.API()
- local recording_file_name = api:executeString("uuid_getvar " .. uuid .. " record_file_name")
- api:executeString("uuid_broadcast " .. uuid .. " stop_record_session::" .. recording_file_name)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement