代码之家  ›  专栏  ›  技术社区  ›  T.Sh

Elastix自定义配置文件

  •  0
  • T.Sh  · 技术社区  · 7 年前

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

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

    队列。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\u附加。形态

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

    排队是一种习惯。形态:

    [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 回复  |  直到 3 年前
        1
  •  0
  •   arheops    7 年前

    Freepbx只覆盖以“\u additional.conf”结尾的文件 您不应该在文件中做任何更改,而是应该编写freepbx模块。

    如果仍要手动更改,请更改以“\u custom.conf”结尾的文件

    如果在两个文件中使用相同的prio具有相同的模式,则结果是 不可预测的 ,但在大多数情况下,第一种方法会起作用。

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

    阅读ORelly的“星号未来电话”