3 INSERT INTO config.upgrade_log (version) VALUES ('0279'); -- atz / senator
6 config.org_unit_setting_type (name, label, description, datatype)
8 'notice.telephony.callfile_lines',
9 'Telephony: Arbitrary line(s) to include in each notice callfile',
11 This overrides lines from opensrf.xml.
12 Line(s) must be valid for your target server and platform
18 INSERT INTO action_trigger.reactor (module, description) VALUES (
19 'AstCall', 'Possibly place a phone call with Asterisk'
23 action_trigger.event_definition (
24 id, active, owner, name, hook, validator, reactor,
25 cleanup_success, cleanup_failure, delay, delay_field, group_field,
26 max_delay, granularity, usr_field, opt_in_setting, template
31 'Telephone Overdue Notice',
32 'checkout.due', 'NOOP_True', 'AstCall',
33 DEFAULT, DEFAULT, '5 seconds', 'due_date', 'usr',
34 DEFAULT, DEFAULT, DEFAULT, DEFAULT,
36 [% phone = target.0.usr.day_phone | replace('[\s\-\(\)]', '') -%]
37 [% IF phone.match('^[2-9]') %][% country = 1 %][% ELSE %][% country = '' %][% END -%]
38 Channel: [% channel_prefix %]/[% country %][% phone %]
45 Set: eg_user_id=[% target.0.usr.id %]
46 Set: items=[% target.size %]
47 Set: titlestring=[% titles = [] %][% FOR circ IN target %][% titles.push(circ.target_copy.call_number.record.simple_record.title) %][% END %][% titles.join(". ") %]
52 action_trigger.environment (id, event_def, path)
54 (DEFAULT, 24, 'target_copy.call_number.record.simple_record'),