[office]
exten => 2412,1,Answer
exten => 2412,n,Background(welcome-new)
exten => 2412,n,Read(num)
exten => 2412,n,GoTo(${num})
exten => 2412,n,Dial(SIP/2404,${DIALTIMEOUT})
exten => 2412,n,PlayBack(welcome-timeout-new)
exten => 2412,n,Hangup()
Звоню с внутреннего, все ок, работает как задумано.
[input]
exten => s,1,GoTo(input,2412,1)
exten => 2412,1,Answer
exten => 2412,n,Background(welcome-new)
exten => 2412,n,Read(num)
exten => 2412,n,GoTo(${num})
exten => 2412,n,Dial(SIP/2404,${DIALTIMEOUT})
exten => 2412,n,PlayBack(welcome-timeout-new)
exten => 2412,n,Hangup()
Не работает, dtmf в cli астера видны, но принятие не происходит. Иногда вообще происходит чушь. Звоню на городской с внутреннего и начинается проигрывание приветствия, после этого пытаюсь донабрать номер 2404 и вижу следующее:
== Using SIP RTP CoS mark 5
-- Executing [incoming@input:1] Answer("SIP/cityline6-00003870", "") in new stack
-- Executing [incoming@input:2] BackGround("SIP/cityline6-00003870", "welcome-new") in new stack
-- <SIP/cityline6-00003870> Playing 'welcome-new.slin' (language 'ru')
== Begin MixMonitor Recording SIP/cityline6-00003870
[Mar 5 10:25:42] DTMF[23164][C-00001ee2]: channel.c:4069 __ast_read: DTMF end '2' received on SIP/2402-0000386e, duration 240 ms
[Mar 5 10:25:42] DTMF[23164][C-00001ee2]: channel.c:4139 __ast_read: DTMF end passthrough '2' on SIP/2402-0000386e
[Mar 5 10:25:42] DTMF[23175][C-00001ee3]: channel.c:4069 __ast_read: DTMF end '2' received on SIP/cityline6-00003870, duration 80 ms
[Mar 5 10:25:42] DTMF[23175][C-00001ee3]: channel.c:4139 __ast_read: DTMF end passthrough '2' on SIP/cityline6-00003870
[Mar 5 10:25:42] DTMF[23175][C-00001ee3]: channel.c:4069 __ast_read: DTMF end '2' received on SIP/cityline6-00003870, duration 80 ms
[Mar 5 10:25:42] DTMF[23175][C-00001ee3]: channel.c:4139 __ast_read: DTMF end passthrough '2' on SIP/cityline6-00003870
[Mar 5 10:25:42] DTMF[23164][C-00001ee2]: channel.c:4069 __ast_read: DTMF end '4' received on SIP/2402-0000386e, duration 240 ms
[Mar 5 10:25:42] DTMF[23164][C-00001ee2]: channel.c:4139 __ast_read: DTMF end passthrough '4' on SIP/2402-0000386e
[Mar 5 10:25:43] DTMF[23175][C-00001ee3]: channel.c:4069 __ast_read: DTMF end '4' received on SIP/cityline6-00003870, duration 80 ms
[Mar 5 10:25:43] DTMF[23175][C-00001ee3]: channel.c:4139 __ast_read: DTMF end passthrough '4' on SIP/cityline6-00003870
[Mar 5 10:25:43] DTMF[23164][C-00001ee2]: channel.c:4069 __ast_read: DTMF end '0' received on SIP/2402-0000386e, duration 240 ms
[Mar 5 10:25:43] DTMF[23164][C-00001ee2]: channel.c:4139 __ast_read: DTMF end passthrough '0' on SIP/2402-0000386e
[Mar 5 10:25:44] DTMF[23175][C-00001ee3]: channel.c:4069 __ast_read: DTMF end '0' received on SIP/cityline6-00003870, duration 80 ms
[Mar 5 10:25:44] DTMF[23175][C-00001ee3]: channel.c:4139 __ast_read: DTMF end passthrough '0' on SIP/cityline6-00003870
== CDR updated on SIP/cityline6-00003870
-- Executing [2240@input_point:1] Goto("SIP/cityline6-00003870", "office,2240") in new stack
-- Goto (input_point,office,2240)
[Mar 5 10:25:44] DTMF[23164][C-00001ee2]: channel.c:4069 __ast_read: DTMF end '4' received on SIP/2402-0000386e, duration 240 ms
[Mar 5 10:25:44] DTMF[23164][C-00001ee2]: channel.c:4139 __ast_read: DTMF end passthrough '4' on SIP/2402-0000386e
[Mar 5 10:25:44] DTMF[23175][C-00001ee3]: channel.c:4069 __ast_read: DTMF end '4' received on SIP/cityline6-00003870, duration 80 ms
[Mar 5 10:25:44] DTMF[23175][C-00001ee3]: channel.c:4139 __ast_read: DTMF end passthrough '4' on SIP/cityline6-00003870
[Mar 5 10:25:45] DTMF[23175][C-00001ee3]: channel.c:4069 __ast_read: DTMF end '4' received on SIP/cityline6-00003870, duration 80 ms
[Mar 5 10:25:45] DTMF[23175][C-00001ee3]: channel.c:4139 __ast_read: DTMF end passthrough '4' on SIP/cityline6-00003870
[Mar 5 10:25:50] WARNING[23175][C-00001ee3]: pbx.c:6214 __ast_pbx_run: Invalid extension '44', but no rule 'i' or 'e' in context 'input_point'
Т.е происходит попытка набора номера 2440, хотя я вводил 2404, а потом он вообще почему-то думает, что я набрал 44.
ответил
2014-03-05 11:42:18 +0400
gramadzjanin 1 ● 6 ● 3
добавить WaitExten(1) не пробовали?
Zavr2008 ( 2014-03-04 19:31:13 +0400 )редактировать