Elastix自定义配置文件

时间:2018-03-13 08:50:50

标签: queue asterisk elastix custom-configuration

我是Asterisk的新手,在实验室环境中使用Elastix 2.5创建两个队列,每个队列有2个静态成员。我想设置' setqueuevar'的值。是的为此,我更改了queue_custom.conf文件并将此值设置为yes;虽然我重新加载了星号模块,但一切看起来还不错,但相关的通道变量(QUEUENAME,QUEUESTRATEGY,...)没有任何价值!

由于某些配置文件是由Elastix(freepbx模块)自动生成的,您能否告诉我配置文件的优先级是什么?它们之间是否存在任何关系,或者主文件是否被自定义配置文件覆盖?

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

;--------------------------------------------------------------------------------;
; 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:

[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

先谢谢。

1 个答案:

答案 0 :(得分:0)

Freepbx仅覆盖以“_additional.conf”结尾的文件 您不应该对文件进行任何更改,而是编写freepbx模块。

如果您仍想进行手动更改,请对以“_custom.conf”结尾的文件进行更改

如果在具有相同prio的2个文件中具有相同的模式,则结果为 UNPREDICTABLE ,但在大多数情况下,第一个将起作用。

阅读本文 https://www.voip-info.org/wiki/view/Asterisk+Dialplan+Introduction

阅读ORelly的“Asterisk the future telephony”