Asterisk 同时多次启动拨号盘
Asterisk start dialpan many times at the same times
请帮助了解发生了什么。
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" asterisk full stops registration attempts
根据您的日志,这些调用是不同的(PJSIP/MyTrunk-00000008 与 PJSIP/MyTrunk-00000001 不同)
使用 tcpdump 或 sip debug 查看数据包。
可能您的提供商已设置 - 如果没有来自服务器的有效响应 - 请调用。
P.S 尽量不要使用此类提供商。这是个坏兆头。
我需要更改部分
[MyTrunk]
type = registration
我删除了参数
line = yes
然后星号通过
停止看到我的行李箱
pjsip show registrations
我已经从同一部分删除了参数。
endpoint = MyTrunk
现在一切正常。
PS:这改变了不可能从 UI FrePBX 创建的。我必须从 UI 禁用中继。然后我在 pjsip.registration_custom.conf
中重新创建部分(type=registration
、type=identify
、type=auth
、type=endpoint
、type=aor
)
PS2:语法
[MyTrunk] (+)
这里没有工作。
请帮助了解发生了什么。
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" asterisk full stops registration attempts
根据您的日志,这些调用是不同的(PJSIP/MyTrunk-00000008 与 PJSIP/MyTrunk-00000001 不同)
使用 tcpdump 或 sip debug 查看数据包。
可能您的提供商已设置 - 如果没有来自服务器的有效响应 - 请调用。
P.S 尽量不要使用此类提供商。这是个坏兆头。
我需要更改部分
[MyTrunk]
type = registration
我删除了参数
line = yes
然后星号通过
停止看到我的行李箱pjsip show registrations
我已经从同一部分删除了参数。
endpoint = MyTrunk
现在一切正常。
PS:这改变了不可能从 UI FrePBX 创建的。我必须从 UI 禁用中继。然后我在 pjsip.registration_custom.conf
type=registration
、type=identify
、type=auth
、type=endpoint
、type=aor
)
PS2:语法
[MyTrunk] (+)
这里没有工作。