星号同时启动多次拨盘

时间:2019-02-12 14:19:50

标签: asterisk freepbx dialplan

请帮助了解发生了什么。
星号为一个输入呼叫多次启动拨号盘。
我使用Asterisk 15.4.0(FreePBX 14.0.5.25),
我的extensions_custom.conf:

[bpms_input]
exten => _[A-Za-z0-9]!,1,NoOp(>>>>>>>>>>>>>>>>>>>>>>Exten = ${EXTEN} CONTEXT = ${CONTEXT} DATE = ${DATETIME} STATUS = ${DIALSTATUS})
same => n,Wait(10)

星号日志:

  == Setting global variable 'SIPDOMAIN' to '192.168.2.11'
  == Setting global variable 'SIPDOMAIN' to '192.168.2.11'
    -- Executing [MyTrunk@bpms_input:1] NoOp("PJSIP/MyTrunk-00000000", ">>>>>>>>>>>>>>>>>>>>>>Exten = MyTrunk CONTEXT = bpms_input DATE =  STATUS = ") in new stack
    -- Executing [MyTrunk@bpms_input:2] Wait("PJSIP/MyTrunk-00000000", "10") in new stack
    -- Executing [MyTrunk@bpms_input:1] NoOp("PJSIP/MyTrunk-00000001", ">>>>>>>>>>>>>>>>>>>>>>Exten = MyTrunk CONTEXT = bpms_input DATE =  STATUS = ") in new stack
  == Setting global variable 'SIPDOMAIN' to '192.168.2.11'
    -- Executing [MyTrunk@bpms_input:2] Wait("PJSIP/MyTrunk-00000001", "10") in new stack
    -- Executing [MyTrunk@bpms_input:1] NoOp("PJSIP/MyTrunk-00000002", ">>>>>>>>>>>>>>>>>>>>>>Exten = MyTrunk CONTEXT = bpms_input DATE =  STATUS = ") in new stack
    -- Executing [MyTrunk@bpms_input:2] Wait("PJSIP/MyTrunk-00000002", "10") in new stack
  == Setting global variable 'SIPDOMAIN' to '192.168.2.11'
    -- Executing [MyTrunk@bpms_input:1] NoOp("PJSIP/MyTrunk-00000003", ">>>>>>>>>>>>>>>>>>>>>>Exten = MyTrunk CONTEXT = bpms_input DATE =  STATUS = ") in new stack
  == Setting global variable 'SIPDOMAIN' to '192.168.2.11'
    -- Executing [MyTrunk@bpms_input:2] Wait("PJSIP/MyTrunk-00000003", "10") in new stack
    -- Executing [MyTrunk@bpms_input:1] NoOp("PJSIP/MyTrunk-00000004", ">>>>>>>>>>>>>>>>>>>>>>Exten = MyTrunk CONTEXT = bpms_input DATE =  STATUS = ") in new stack
  == Setting global variable 'SIPDOMAIN' to '192.168.2.11'
    -- Executing [MyTrunk@bpms_input:2] Wait("PJSIP/MyTrunk-00000004", "10") in new stack
    -- Executing [MyTrunk@bpms_input:1] NoOp("PJSIP/MyTrunk-00000005", ">>>>>>>>>>>>>>>>>>>>>>Exten = MyTrunk CONTEXT = bpms_input DATE =  STATUS = ") in new stack
  == Setting global variable 'SIPDOMAIN' to '192.168.2.11'
    -- Executing [MyTrunk@bpms_input:2] Wait("PJSIP/MyTrunk-00000005", "10") in new stack
    -- Executing [MyTrunk@bpms_input:1] NoOp("PJSIP/MyTrunk-00000006", ">>>>>>>>>>>>>>>>>>>>>>Exten = MyTrunk CONTEXT = bpms_input DATE =  STATUS = ") in new stack
  == Setting global variable 'SIPDOMAIN' to '192.168.2.11'
    -- Executing [MyTrunk@bpms_input:2] Wait("PJSIP/MyTrunk-00000006", "10") in new stack
    -- Executing [MyTrunk@bpms_input:1] NoOp("PJSIP/MyTrunk-00000007", ">>>>>>>>>>>>>>>>>>>>>>Exten = MyTrunk CONTEXT = bpms_input DATE =  STATUS = ") in new stack
  == Setting global variable 'SIPDOMAIN' to '192.168.2.11'
    -- Executing [MyTrunk@bpms_input:2] Wait("PJSIP/MyTrunk-00000007", "10") in new stack
    -- Executing [MyTrunk@bpms_input:1] NoOp("PJSIP/MyTrunk-00000008", ">>>>>>>>>>>>>>>>>>>>>>Exten = MyTrunk CONTEXT = bpms_input DATE =  STATUS = ") in new stack
    -- Executing [MyTrunk@bpms_input:2] Wait("PJSIP/MyTrunk-00000008", "10") in new stack


已编辑
我的提供者回答了我的要求。
他说:“ 3个邀请是由3个可用的活动注册创建的。每条邀请到该行。”
截图:
enter image description here

其他信息:
在旧的FreePBX(10.13.66-8)上,此问题未重复。但是我需要一个新版本的FreePBX

其他信息2:
我比较了新旧FreePBX版本的注册请求。 新版本还包括用于请求联系人的参数“ line”。 每次都会自动生成参数值。 虽然我不能禁用发送此参数。 我在pjsip.registration_custom.conf文件中创建了一个中继。 但是,当指定参数“ line = no”星号已满时,将停止注册尝试

2 个答案:

答案 0 :(得分:1)

相应地,您的日志选择是不同的(PJSIP / MyTrunk-00000008与PJSIP / MyTrunk-00000001不同)

使用tcpdump或sip调试来查看数据包。

很可能您的提供商已设置-如果服务器未提供有效响应-请重新调用。

P.S尝试不使用此类提供程序。这是一个坏兆头。

答案 1 :(得分:0)

我需要更改部分

[MyTrunk]
type = registration

我删除了参数

line = yes

然后星号不再看到我的行李箱了

pjsip show registrations

我已从同一部分中删除了该参数。

endpoint = MyTrunk

现在所有作品。

PS:不能通过UI FrePBX创建此更改。我必须从UI禁用中继。然后,我在type=registration

中重新创建节(type=identifytype=authtype=endpointtype=aorpjsip.registration_custom.conf

PS2:语法

[MyTrunk] (+)

这里没有工作。