2012-02-10 14:53:55 +00:00
|
|
|
[general]
|
2012-02-17 16:19:17 +00:00
|
|
|
; General settings for the Javascript module
|
|
|
|
|
|
|
|
; scripts_dir: string: The absolute or relative path used by default to load
|
|
|
|
; scripts if no full path is specified
|
2014-03-14 14:45:41 +00:00
|
|
|
;scripts_dir=${sharedpath}/scripts
|
|
|
|
|
|
|
|
; include_dir: string: The absolute or relative path used when including other
|
|
|
|
; files via #include or #require if no full path is specified
|
|
|
|
; If the file is not found in include_dir it will be searched in scripts_dir
|
|
|
|
;include_dir=${configpath}
|
2012-02-17 16:19:17 +00:00
|
|
|
|
|
|
|
; routing: string: Name of the file holding the routing instructions
|
|
|
|
; Example: routing=route.js
|
|
|
|
;routing=
|
2012-06-16 23:21:13 +00:00
|
|
|
|
2016-05-18 13:31:47 +00:00
|
|
|
; max_length: integer: Maximum length of a single file
|
|
|
|
; Valid range 32768 to 2097152 (32KB to 2MB)
|
|
|
|
;max_length=500000
|
|
|
|
|
2012-11-20 16:08:25 +00:00
|
|
|
; allow_abort: boolean: Allow messages on level DebugFail to cause an engine abort
|
|
|
|
; Never enable it in production!
|
|
|
|
;allow_abort=no
|
|
|
|
|
2013-04-12 12:46:21 +00:00
|
|
|
; allow_trace: boolean: Allow the scripts to specify a trace file
|
|
|
|
; Never enable it in production!
|
|
|
|
;allow_trace=no
|
|
|
|
|
2013-02-14 14:37:20 +00:00
|
|
|
; allow_link: boolean: Allow linking of Javascript code (jump resolving)
|
|
|
|
;allow_link=yes
|
|
|
|
|
2020-10-14 13:24:46 +00:00
|
|
|
; track_objects: boolean: Track objects separately in each global script
|
|
|
|
;track_objects=no
|
|
|
|
|
2020-10-21 11:01:31 +00:00
|
|
|
; track_obj_life: unsigned integer: Number of lists to create for Hash List used
|
|
|
|
; for tracking object creation and destruction. Setting it to 0 deactivates tracking.
|
|
|
|
;track_obj_life=0
|
|
|
|
|
2014-08-06 08:08:06 +00:00
|
|
|
; auto_extensions: boolean: Automatically load scripting extensions in new scripts
|
|
|
|
; This does not prevent script code from explicitly loading extensions
|
|
|
|
;auto_extensions=yes
|
|
|
|
|
2019-12-19 12:21:42 +00:00
|
|
|
; keep_old_on_fail: boolean: Keep old scripts when replaced and failed to parse the new one
|
|
|
|
;keep_old_on_fail=no
|
|
|
|
|
2012-06-16 23:21:13 +00:00
|
|
|
|
|
|
|
[scripts]
|
|
|
|
; Add one entry in this section for each script that is to be loaded on Yate startup
|
|
|
|
; Each line has to be on the form:
|
|
|
|
; name=script_file_name
|
|
|
|
; The name must be unique and it will identify the running script instance.
|
|
|
|
; The file name should hold either the absolute path and name or the path
|
|
|
|
; and name relative to the scripts_dir in section [general]
|
|
|
|
; Examples:
|
|
|
|
; faxes=fax_handler.js
|
|
|
|
; callback=js_lib/callback.js
|
2014-02-12 13:02:49 +00:00
|
|
|
|
|
|
|
; The Eliza chat bot, enabled by default for your enjoyment in rmanager
|
|
|
|
eliza=eliza.js
|
2016-01-04 12:49:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
[late_scripts]
|
|
|
|
; Add one entry in this section for each script that is to be loaded after Yate startup
|
|
|
|
; These scripts are loaded only after the engine and modules have initialized, immediately
|
|
|
|
; after the dispatching of the "engine.start" message.
|
|
|
|
; The names must be unique and different from any in the [scripts] section.
|