...
beforeCreateInboundCallSession event: besides call information, two additional piece of data is stored here:
context.eventData.sessionParameters
: Session parameters of the CIF2 session which is being opened. By hooking up a plugin and amending this parameter, any custom session template can be used.context.eventData.sessionTemplateId
: By default it contains the id of the out-of-the-box configured session template to be used. A custom plugin can update it before opening the session, so default session template can be overridden on the fly.
...