${Event[attrCheck=value](attribute)}
- $(Channel(channel, expression)) - evaluate
expression
in context of specifiedchannel
- $(Duration(event1, event2)) - calculate time is seconds between
event1
andevent2
- $(FileContents(filename)) - wait for file to appear in specified path in
filename
, read it and encode to base64 - $(Responsible(phone)) - search for bitrix24 entities (companies, contacts, leads), related to specified phone and return responsible for this entity emploee identifier
- $(REST(method, field[, attr, value]...)) - execute REST
method
and return value offield
of result, supported:- user.get - get filtered list of users
- crm.lead.add - Add lead
- crm.lead.update - Update (modify) lead
- telephony.externalcall.attachrecord - Attach call record
- telephony.externalcall.finish - Finish registered call
- telephony.externalcall.hide - Hide call card
- telephony.externalcall.register - Register call
- telephony.externalcall.show - Show call card
- asterisk.ami.dbdel - Delete DB entry
- asterisk.ami.dbdeltree - Delete DB Tree
- asterisk.ami.dbput - Put DB entry
- asterisk.ami.setvar - Sets a channel variable or function value
- '|' - logical or, e.g. if left part of expression is null, then evaluate right, for example:
action:
- method: telephony.externalcall.register
params:
USER_ID: $(Responsible(${QueueCallerJoin(CallerIDNum)})) | 663
PHONE_NUMBER: ${QueueCallerJoin(CallerIDNum)}
LINE_NUMBER: ${Newchannel(Exten)}
CRM_CREATE: 1
TYPE: 2
SHOW: 0