Debian Codegraph @

configs/samples/sorcery.conf.sample

raw
1 ; Sample configuration file for Sorcery Data Access Layer
2
3 [general]
4
5 ; When true, writable Sorcery backends may attempt to insert the object
6 ; if the object is missing.
7 ; This helps re-populate missing backends when using multiple writable mappings
8 ; (e.g., AstDB + Realtime) if a backend was temporarily unavailable.
9 ; NOTE: This is best-effort and does not guarantee atomicity across backends.
10 ; Default: no (preserves legacy behavior).
11 ;
12 ;update_or_create_on_update_miss = no
13
14 ;
15 ; Wizards
16 ;
17 ; Wizards are the persistence mechanism for objects. They are loaded as Asterisk modules and register
18 ; themselves with the sorcery core. All implementation specific details of how objects are persisted is isolated
19 ; within wizards.
20 ;
21
22 ;
23 ; Caching
24 ;
25 ; A wizard can optionally be marked as an object cache by adding "/cache" to the object type within the mapping.
26 ; If an object is returned from a non-object cache it is immediately given to the cache to be created. Multiple
27 ; object caches can be configured for a single object type.
28 ;
29
30 ;
31 ; Object Type Mappings
32 ;
33 ; To allow configuration of where and how an object is persisted object mappings can be defined within this file
34 ; on a per-module basis. The mapping consists of the object type, options, wizard name, and wizard configuration
35 ; data. This has the following format:
36 ;
37 ; object type [/options] = wizard name, wizard configuration data
38 ;
39 ; For example to configure an in-memory wizard for the 'bob' object type:
40 ;
41 ; bob = memory
42 ;
43 ; Or to configure the object type 'joe' from a configuration file:
44 ;
45 ; joe = config,joe.conf
46 ;
47 ; Note that an object type can have multiple mappings defined. Each mapping will be consulted in the order in which
48 ; it appears within the configuration file. This means that if you are configuring a wizard as a cache it should
49 ; appear as the first mapping so the cache is consulted before all other mappings.
50 ;
51
52 ;
53 ; The following object mappings are used by the unit test to test certain functionality of sorcery.
54 ;
55 [test_sorcery_section]
56 test=memory
57
58 [test_sorcery_cache]
59 test/cache=test
60 test=memory
61
62 ;
63 ; The following object mapping is the default mapping of external MWI mailbox
64 ; objects to give persistence to the message counts.
65 ;
66 ;[res_mwi_external]
67 ;mailboxes=astdb,mwi_external
68
69 ;
70 ; The following object mappings set PJSIP objects to use realtime database mappings from extconfig
71 ; with the table names used when automatically generating configuration from the alembic script.
72 ;
73 ;[res_pjsip]
74 ;endpoint=realtime,ps_endpoints
75 ;auth=realtime,ps_auths
76 ;aor=realtime,ps_aors
77 ;domain_alias=realtime,ps_domain_aliases
78
79 ;[res_pjsip_endpoint_identifier_ip]
80 ;identify=realtime,ps_endpoint_id_ips
81
82 ;[res_pjsip_outbound_publish]
83 ;outbound-publish=realtime,ps_outbound_publishes
84
85 ;[res_pjsip_pubsub]
86 ;inbound-publication=realtime,ps_inbound_publications
87
88 ;[res_pjsip_publish_asterisk]
89 ;asterisk-publication=realtime,ps_asterisk_publications
90
91 ;[res_stir_shaken]
92 ;tn=realtime,stir_tn