【问题标题】:Elastix Custom Configuration filesElastix 自定义配置文件
【发布时间】:2018-03-13 08:50:49
【问题描述】:

我是 Asterisk 的新手,在实验室环境中使用 Elastix 2.5 创建两个队列,每个队列有 2 个静态成员。我想将'setqueuevar'的值设置为yes。为此,我更改了 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

【问题讨论】:

    标签: queue asterisk elastix custom-configuration


    【解决方案1】:

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

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

    如果您在具有相同优先级的 2 个文件中具有相同的模式,则结果是 UNPREDICTABLE,但在大多数情况下,第一个会起作用。

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

    阅读 ORelly 的“Asterisk 未来的电话”

    【讨论】:

    • 谢谢@arheops。假设我需要更改队列 115 的 setqueuevar 参数值。我的 queues_custom.conf 文件将如何配置?
    • 如果未设置,只需将节 [1050] 和 setqueuevar= 放入 queues_custom.conf。最好的选择是创建模块,该模块将使用钩子并将该值添加到结构中,然后再写入文件。
    • 我刚刚将队列的 setvarqueue=yes 添加到 custom.conf 文件中,队列的其他选项丢失了!请给我一个关于如何创建freepbx模块的指南?
    • 指南?这就像“请教我编程”。从这个页面开始。 wiki.freepbx.org/display/FOP/FreePBX+Development
    • 不,不是 :) 谢谢@arheops
    猜你喜欢
    • 2012-01-11
    • 1970-01-01
    • 2016-03-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-28
    • 1970-01-01
    • 2014-01-15
    相关资源
    最近更新 更多