mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
When a channel snapshot was created it used to be done from scratch, copying all data (many strings). This incurs a cost when doing so. This change segments the channel snapshot into different components which can be reused if unchanged from the previous snapshot creation, reducing the cost. In normal cases this results in some pointers being copied with reference count being bumped, some integers being set, and a string or two copied. The other benefit is that it is now possible to determine if a channel snapshot update is redundant and thus stop it before a message is published to stasis. The specific segments in the channel snapshot were split up based on whether they are changed together, how often they are changed, and their general grouping. In practice only 1 (or 0) of the segments actually get changed in normal operation. Invalidation is done by setting a flag on the channel when the segment source is changed, forcing creation of a new segment when the channel snapshot is created. ASTERISK-28119 Change-Id: I5d7ef3df963a88ac47bc187d73c5225c315f8423
38 lines
1.5 KiB
Plaintext
38 lines
1.5 KiB
Plaintext
[general]
|
|
enabled = yes ; When set to no, ARI support is disabled.
|
|
;pretty = no ; When set to yes, responses from ARI are
|
|
; ; formatted to be human readable.
|
|
;allowed_origins = ; Comma separated list of allowed origins, for
|
|
; ; Cross-Origin Resource Sharing. May be set to * to
|
|
; ; allow all origins.
|
|
;auth_realm = ; Realm to use for authentication. Defaults to Asterisk
|
|
; ; REST Interface.
|
|
;
|
|
; Default write timeout to set on websockets. This value may need to be adjusted
|
|
; for connections where Asterisk must write a substantial amount of data and the
|
|
; receiving clients are slow to process the received information. Value is in
|
|
; milliseconds; default is 100 ms.
|
|
;websocket_write_timeout = 100
|
|
;
|
|
; Display certain channel variables every time a channel-oriented
|
|
; event is emitted:
|
|
;
|
|
; Note that this does incur a performance penalty and should be avoided if possible.
|
|
;
|
|
;channelvars = var1,var2,var3
|
|
|
|
;[username]
|
|
;type = user ; Specifies user configuration
|
|
;read_only = no ; When set to yes, user is only authorized for
|
|
; ; read-only requests.
|
|
;
|
|
;password = ; Crypted or plaintext password (see password_format).
|
|
;
|
|
; password_format may be set to plain (the default) or crypt. When set to crypt,
|
|
; crypt(3) is used to validate the password. A crypted password can be generated
|
|
; using mkpasswd -m sha-512.
|
|
;
|
|
; When set to plain, the password is in plaintext.
|
|
;
|
|
;password_format = plain
|