IVR 和“1”分机号码的 Asterisk 问题

IVR 和“1”分机号码的 Asterisk 问题

我已安装 FreePBX 15。我已成功添加多个分机。

号码包括一些三位数和“1”分机号,这是与其他具有完全相同配置的 IP 电话一样的普通 IP 电话。

我可以毫无问题地给他们打电话。我还设置了一个没有条目的 IVR,它只允许直接拨打所有分机。它适用于除“1”之外的所有分机。

‘213’示例:

app_read.c: User entered '213'  
VERBOSE[6729][C-00000003] pbx.c: Executing [s@ivr-1:10] GotoIf("PJSIP/x-00000002", "0?#,1") in new stack    
VERBOSE[6729][C-00000003] pbx.c: Executing [s@ivr-1:11] GotoIf("PJSIP/x-00000002", "0?t,1") in new stack    
VERBOSE[6729][C-00000003] pbx.c: Executing [s@ivr-1:12] ExecIf("PJSIP/x-00000002", "1?Set(LOCALEXT=1)") in new stack    
VERBOSE[6729][C-00000003] pbx.c: Executing [s@ivr-1:13] GotoIf("PJSIP/x-00000002", "0?i,1") in new stack    
VERBOSE[6729][C-00000003] pbx.c: Executing [s@ivr-1:14] GotoIf("PJSIP/x-00000002", "1?from-did-direct-ivr,2137,1") in new stack 
VERBOSE[6729][C-00000003] pbx_builtins.c: Goto (from-did-direct-ivr,213,1)  

调用成功。但是对于 '1':

app_read.c: User entered '1'    
VERBOSE[10123][C-00000004] pbx.c: Executing [s@ivr-1:10] GotoIf("PJSIP/x-00000003", "0?#,1") in new stack   
VERBOSE[10123][C-00000004] pbx.c: Executing [s@ivr-1:11] GotoIf("PJSIP/x-00000003", "0?t,1") in new stack   
VERBOSE[10123][C-00000004] pbx.c: Executing [s@ivr-1:12] ExecIf("PJSIP/x-00000003", "1?Set(LOCALEXT=1)") in new stack   
VERBOSE[10123][C-00000004] pbx.c: Executing [s@ivr-1:13] GotoIf("PJSIP/x-00000003", "1?i,1") in new stack   
VERBOSE[10123][C-00000004] pbx_builtins.c: Goto (ivr-1,i,1) 
VERBOSE[10123][C-00000004] pbx.c: Executing [i@ivr-1:1] Set("PJSIP/x-00000003", "INVALID_LOOPCOUNT=1") in new stack

我收到错误:目的地无效

我还尝试添加“1”的 IVR 条目以将其重定向至“1”分机。

app_read.c: User entered '1'    
VERBOSE[6334][C-00000002] pbx.c: Executing [s@ivr-1:10] GotoIf("PJSIP/x-00000001", "0?#,1") in new stack    
VERBOSE[6334][C-00000002] pbx.c: Executing [s@ivr-1:11] GotoIf("PJSIP/x-00000001", "0?t,1") in new stack    
VERBOSE[6334][C-00000002] pbx.c: Executing [s@ivr-1:12] ExecIf("PJSIP/x-00000001", "1?Set(LOCALEXT=1)") in new stack    
VERBOSE[6334][C-00000002] pbx.c: Executing [s@ivr-1:13] GotoIf("PJSIP/x-00000001", "0?i,1") in new stack    
VERBOSE[6334][C-00000002] pbx.c: Executing [s@ivr-1:14] GotoIf("PJSIP/x-00000001", "1?from-did-direct-ivr,1,1") in new stack    
VERBOSE[6334][C-00000002] pbx_builtins.c: Goto (from-did-direct-ivr,1,1)    
WARNING[6334][C-00000002] pbx.c: Channel 'PJSIP/x-00000001' sent to invalid extension but no invalid handler: context,exten,priority=from-did-direct-ivr,1,1

当我添加“2”的 IVR 条目以重定向到“1”时,它起作用了:

app_read.c: User entered '2'    
VERBOSE[30910][C-00000012] pbx.c: Executing [s@ivr-1:10] GotoIf("PJSIP/x-00000011", "0?#,1") in new stack   
VERBOSE[30910][C-00000012] pbx.c: Executing [s@ivr-1:11] GotoIf("PJSIP/x-00000011", "0?t,1") in new stack   
VERBOSE[30910][C-00000012] pbx.c: Executing [s@ivr-1:12] ExecIf("PJSIP/x-00000011", "0?Set(LOCALEXT=1)") in new stack   
VERBOSE[30910][C-00000012] pbx.c: Executing [s@ivr-1:13] GotoIf("PJSIP/x-00000011", "0?i,1") in new stack   
VERBOSE[30910][C-00000012] pbx.c: Executing [s@ivr-1:14] GotoIf("PJSIP/x-00000011", "0?from-did-direct-ivr,2,1") in new stack   
VERBOSE[30910][C-00000012] pbx.c: Executing [s@ivr-1:15] Goto("PJSIP/x-00000011", "2,1") in new stack   
VERBOSE[30910][C-00000012] pbx_builtins.c: Goto (ivr-1,2,1) 
VERBOSE[30910][C-00000012] pbx.c: Executing [2@ivr-1:1] Set("PJSIP/x-00000011", "__ivrreturn=0") in new stack   
VERBOSE[30910][C-00000012] pbx.c: Executing [2@ivr-1:2] Goto("PJSIP/x-00000011", "from-did-direct,1,1") in new stack    
VERBOSE[30910][C-00000012] pbx_builtins.c: Goto (from-did-direct,1,1)

答案1

如你所见,你没有 1 个扩展

 invalid extension but no invalid handler: context,exten,priority=from-did-direct-ivr,1,1

为什么没有 - 这是另一个问题。我建议您找到 from-did-direct-ivr 上下文,看看它是否存在。

所有文件位于 /etc/asterisk/ 文件夹中

旁注:from-did-direct-ivr 和 from-did-direct 是不同的上下文。

相关内容