July 2017
Intermediate to advanced
434 pages
12h 59m
English
This object allows your script to inject an event in FreeSWITCH, which will then be a full member of the FreeSWITCH Event System:
--Create Custom event
event = freeswitch.Event("custom", "dial::dial-result")
event:addBody("dial_record_id: " .. dial_record_id .. "\n" ..
"call_disposition: " .. Disposition .. "\n" ..
"campaign_number: " .. Campaign .. "\n" ..
"called_number: " .. dial_num .."\n")
event:fire();
Events sent this way can interact with FreeSWITCH core itself, or with modules, or be consumed by custom modules or applications. See in Chapter 11, ESL - FreeSWITCH Controlled by Events about the role of events in FreeSWITCH.
For a complete example, see the following section.
Read now
Unlock full access