0

请帮助了解发生了什么。
Asterisk 为一个输入呼叫多次启动拨号盘。
我使用 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 个可用的有效注册创建的。每个邀请都加入该行”。
截图:
在此处输入图像描述

附加信息:
在旧的 FreePBX(10.13.66-8) 上,问题没有重复。但我需要一个新版本的 FreePBX

附加信息 2:
我比较了新旧 FreePBX 版本的注册请求。新版本附加包含参数“line”以请求联系人。每次自动生成参数值。虽然我无法禁用发送此参数。我在 pjsip.registration_custom.conf 文件中创建了一个主干。但是当指定参数“line = no”时,星号完全停止注册尝试

4

2 回答 2

1

根据您的日志,这些呼叫是不同的(PJSIP/MyTrunk-00000008 与 PJSIP/MyTrunk-00000001 不同)

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

很可能您的提供商已设置 - 如果服务器没有有效响应 - 请召回。

PS尽量不要使用这样的供应商。这是不好的迹象。

于 2019-02-12T15:54:54.563 回答
0

我需要更改部分

[MyTrunk]
type = registration

我删除了参数

line = yes

然后星号停止看到我的行李箱

pjsip show registrations

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

endpoint = MyTrunk

现在一切正常。

PS:这不可能从 UI FrePBX 创建。我必须从 UI 禁用中继。然后我在type=registration_ type=identify_ type=auth_type=endpointtype=aorpjsip.registration_custom.conf

PS2:语法

[MyTrunk] (+)

这里没有工作。

于 2019-02-21T10:00:06.440 回答