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