简体   繁体   English

Elastix 自定义配置文件

[英]Elastix Custom Configuration files

I am new in Asterisk and using Elastix 2.5 to create two queues with 2 static members per queue in a lab environment.我是 Asterisk 的新手,在实验室环境中使用 Elastix 2.5 创建两个队列,每个队列有 2 个静态成员。 I want to set the value of 'setqueuevar' to yes.我想将 'setqueuevar' 的值设置为 yes。 To do that I have changed the queue_custom.conf file and set this value to yes;为此,我更改了 queue_custom.conf 文件并将此值设置为 yes; although I have reloaded the asterisk modules and everything looks ok, but the related channel variables (QUEUENAME, QUEUESTRATEGY,...) don't get any value!尽管我重新加载了星号模块并且一切看起来都很好,但是相关的通道变量(QUEUENAME、QUEUESTRATEGY...)没有任何值!

As some of the configuration files are auto-generated by Elastix (freepbx module), would you please tell me what is the precedence of configuration files in it?由于某些配置文件是由 Elastix(freepbx 模块)自动生成的,请您告诉我其中配置文件的优先级是多少? Is there any relationship between them or the main files are overwritten by custom configuration files?它们之间是否有任何关系或主文件被自定义配置文件覆盖?

queues.conf file: queues.conf 文件:

[general]
;
; Global settings for call queues
;   (none exist currently)
;
; Note that a timeout to fail out of a queue may be passed as part of 
application call
; from extensions.conf:
; Queue(queuename|[options]|[optionalurl]|[announceoverride]|[timeout])
; example: Queue(dave|t|||45)
#include queues_general_additional.conf
#include queues_custom_general.conf

[default]
;
; Default settings for queues (currently unused)
;

#include queues_custom.conf
#include queues_additional.conf
#include queues_post_custom.conf

queues_additional.conf queues_additional.conf

;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make    ;
; custom modifications, details at: http://freepbx.org/configuration_files       ;
;--------------------------------------------------------------------------------;
;

[1050]
announce-frequency=0
announce-holdtime=no
announce-position=no
autofill=no
autopause=no
autopausebusy=no
autopausedelay=0
autopauseunavail=no
eventmemberstatus=no
eventwhencalled=no
joinempty=no
leavewhenempty=no
maxlen=0
memberdelay=0
monitor-type=mixmonitor
penaltymemberslimit=0
periodic-announce-frequency=0
queue-callswaiting=silence/1
queue-thereare=silence/1
queue-youarenext=silence/1
reportholdtime=no
retry=5
ringinuse=yes
servicelevel=60
strategy=rrmemory
timeout=15
timeoutpriority=app
timeoutrestart=no
weight=0
wrapuptime=0
member=Local/10501@from-queue/n,0,10501,hint:10501@ext-local
member=Local/10502@from-queue/n,0,10502,hint:10502@ext-local

[115]
announce-frequency=0
announce-holdtime=no
announce-position=no
autofill=no
autopause=no
autopausebusy=no
autopausedelay=0
autopauseunavail=no
eventmemberstatus=no
eventwhencalled=no
joinempty=no
leavewhenempty=no
maxlen=0
memberdelay=0
monitor-type=mixmonitor
penaltymemberslimit=0
periodic-announce-frequency=0
queue-callswaiting=silence/1
queue-thereare=silence/1
queue-youarenext=silence/1
reportholdtime=no
retry=5
ringinuse=yes
servicelevel=60
strategy=rrmemory
timeout=15
timeoutpriority=app
timeoutrestart=no
weight=0
wrapuptime=0
member=Local/1151@from-queue/n,0,1151,hint:1151@ext-local
member=Local/1152@from-queue/n,0,1152,hint:1152@ext-local

queues_custom.conf: queues_custom.conf:

[1050]
announce-frequency=0
announce-holdtime=no
announce-position=no
autofill=no
autopause=no
autopausebusy=no
autopausedelay=0
autopauseunavail=no
eventmemberstatus=no
eventwhencalled=no
joinempty=no
leavewhenempty=no
maxlen=0
memberdelay=0
monitor-type=mixmonitor
penaltymemberslimit=0
periodic-announce-frequency=0
queue-callswaiting=silence/1
queue-thereare=silence/1
queue-youarenext=silence/1
reportholdtime=no
retry=5
ringinuse=yes
servicelevel=60
strategy=rrmemory
timeout=15
timeoutpriority=app
timeoutrestart=no
weight=0
wrapuptime=0
setqueuevar=yes
member=Local/10501@from-queue/n,0,10501,hint:10501@ext-local
member=Local/10502@from-queue/n,0,10502,hint:10502@ext-local

[115]
announce-frequency=0
announce-holdtime=no
announce-position=no
autofill=no
autopause=no
autopausebusy=no
autopausedelay=0
autopauseunavail=no
eventmemberstatus=no
eventwhencalled=no
joinempty=no
leavewhenempty=no
maxlen=0
memberdelay=0
monitor-type=mixmonitor
penaltymemberslimit=0
periodic-announce-frequency=0
queue-callswaiting=silence/1
queue-thereare=silence/1
queue-youarenext=silence/1
reportholdtime=no
retry=5
ringinuse=yes
servicelevel=60
strategy=rrmemory
timeout=15
timeoutpriority=app
timeoutrestart=no
weight=0
wrapuptime=0
setqueuevar=yes
member=Local/1151@from-queue/n,0,1151,hint:1151@ext-local
member=Local/1152@from-queue/n,0,1152,hint:1152@ext-local

Freepbx overwrite only files which ends by "_additional.conf" You should do NOT do any changes in file, instead you have write freepbx module. Freepbx 只覆盖以“_additional.conf”结尾的文件你不应该对文件做任何更改,而是你编写了 freepbx 模块。

If you still want do manual changes, do changes in files which ending by "_custom.conf"如果您仍然想要手动更改,请更改以“_custom.conf”结尾的文件

If you have same pattern in 2 files with same prio, result is UNPREDICTABLE , but in most cases first one will work.如果您在具有相同优先级的 2 个文件中具有相同的模式,则结果是不可预测的,但在大多数情况下,第一个会起作用。

Read this https://www.voip-info.org/wiki/view/Asterisk+Dialplan+Introduction阅读此https://www.voip-info.org/wiki/view/Asterisk+Dialplan+Introduction

Read ORelly's "Asterisk the future telephony"阅读 ORelly 的“Asterisk 未来电话”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM