Пожалуйста, войдите здесь. Часто задаваемые вопросы О нас
Задайте Ваш вопрос

История изменений [назад]

нажмите, чтобы скрыть/показать версии 1
изначальная версия
редактировать

спросил 2014-08-13 13:32:56 +0400

nikkolski Gravatar nikkolski

Asterisk не пишет входящие звонки на один из номеров

Проблема банальна и уже много раз обсуждалась, но тем не менее...Asterisk не хочет записывать входящие звонки которые поступают на определенный номер. При этом исходящии пишутся + входящие и исходящие на другом номере тоже пишутся... Вот собственно часть лога входящего :

-- Executing [s@sub-record-check:7] Set("SIP/1001-00000002", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:8] GotoIf("SIP/1001-00000002", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [s@sub-record-check:11] ExecIf("SIP/1001-00000002", "0?Return()") in new stack
-- Executing [s@sub-record-check:12] ExecIf("SIP/1001-00000002", "0?Set(__REC_POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:13] GotoIf("SIP/1001-00000002", "0?exten,1") in new stack
-- Executing [s@sub-record-check:14] Set("SIP/1001-00000002", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:15] Set("SIP/1001-00000002", "NOW=1407921713") in new stack
-- Executing [s@sub-record-check:16] Set("SIP/1001-00000002", "__DAY=13") in new stack
-- Executing [s@sub-record-check:17] Set("SIP/1001-00000002", "__MONTH=08") in new stack
-- Executing [s@sub-record-check:18] Set("SIP/1001-00000002", "__YEAR=2014") in new stack
-- Executing [s@sub-record-check:19] Set("SIP/1001-00000002", "__TIMESTR=20140813-122153") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/1001-00000002", "__FROMEXTEN=380*********") in new stack
-- Executing [s@sub-record-check:21] Set("SIP/1001-00000002", "__CALLFILENAME=exten-0001-380*********-20140813-122153-1407921713.2") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/1001-00000002", "exten,1") in new stack
-- Goto (sub-record-check,exten,1)
**-- Executing [exten@sub-record-check:1] GotoIf("SIP/1001-00000002", "0?callee") in new stack**
-- Executing [exten@sub-record-check:2] Set("SIP/1001-00000002", "__REC_POLICY_MODE=dontcare") in new stack
-- Executing [exten@sub-record-check:3] GotoIf("SIP/1001-00000002", "1?caller") in new stack
-- Goto (sub-record-check,exten,10)
-- Executing [exten@sub-record-check:10] Set("SIP/1001-00000002", "__REC_POLICY_MODE=") in new stack
-- Executing [exten@sub-record-check:11] GosubIf("SIP/1001-00000002", "0?record,1(exten,0001,380********)") in new stack
-- Executing [exten@sub-record-check:12] Return("SIP/1001-00000002", "") in new stack
-- Executing [0001@from-did-direct:19] Set("SIP/1001-00000002", "RingGroupMethod=ringallv2") in new stack
-- Executing [0001@from-did-direct:20] Set("SIP/1001-00000002", "_FMGRP=0001") in new stack
-- Executing [0001@from-did-direct:21] GotoIf("SIP/1001-00000002", "0?doconfirm") in new stack
-- Executing [0001@from-did-direct:22] Macro("SIP/1001-00000002", "dial,20,TtrI,0001") in new stack
-- Executing [s@macro-dial:1] GotoIf("SIP/1001-00000002", "0?dial") in new stack
-- Executing [s@macro-dial:2] SetMusicOnHold("SIP/1001-00000002", "default") in new stack
-- Executing [s@macro-dial:3] AGI("SIP/1001-00000002", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi

dialparties.agi: Starting New Dialparties.agi dialparties.agi: Caller ID name is '380*' number is '380*'

dialparties.agi: USECONFIRMATION: 'FALSE' dialparties.agi: RINGGROUPINDEX: '' dialparties.agi: Methodology of ring is 'ringallv2'

Вся конфигурация стандартная - сделана через FreeBPX....Может кто знающий скажет что не так

Asterisk не пишет входящие звонки на один из номеров

Проблема банальна и уже много раз обсуждалась, но тем не менее...Asterisk не хочет записывать входящие звонки которые поступают на определенный номер. При этом исходящии пишутся + входящие и исходящие на другом номере тоже пишутся... Вот собственно часть лога входящего :

-- Executing [s@sub-record-check:7] Set("SIP/1001-00000002", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:8] GotoIf("SIP/1001-00000002", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [s@sub-record-check:11] ExecIf("SIP/1001-00000002", "0?Return()") in new stack
-- Executing [s@sub-record-check:12] ExecIf("SIP/1001-00000002", "0?Set(__REC_POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:13] GotoIf("SIP/1001-00000002", "0?exten,1") in new stack
-- Executing [s@sub-record-check:14] Set("SIP/1001-00000002", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:15] Set("SIP/1001-00000002", "NOW=1407921713") in new stack
-- Executing [s@sub-record-check:16] Set("SIP/1001-00000002", "__DAY=13") in new stack
-- Executing [s@sub-record-check:17] Set("SIP/1001-00000002", "__MONTH=08") in new stack
-- Executing [s@sub-record-check:18] Set("SIP/1001-00000002", "__YEAR=2014") in new stack
-- Executing [s@sub-record-check:19] Set("SIP/1001-00000002", "__TIMESTR=20140813-122153") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/1001-00000002", "__FROMEXTEN=380*********") in new stack
-- Executing [s@sub-record-check:21] Set("SIP/1001-00000002", "__CALLFILENAME=exten-0001-380*********-20140813-122153-1407921713.2") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/1001-00000002", "exten,1") in new stack
-- Goto (sub-record-check,exten,1)
**-- Executing [exten@sub-record-check:1] GotoIf("SIP/1001-00000002", "0?callee") in new stack**
-- Executing [exten@sub-record-check:2] Set("SIP/1001-00000002", "__REC_POLICY_MODE=dontcare") in new stack
-- Executing [exten@sub-record-check:3] GotoIf("SIP/1001-00000002", "1?caller") in new stack
-- Goto (sub-record-check,exten,10)
-- Executing [exten@sub-record-check:10] Set("SIP/1001-00000002", "__REC_POLICY_MODE=") in new stack
-- Executing [exten@sub-record-check:11] GosubIf("SIP/1001-00000002", "0?record,1(exten,0001,380********)") in new stack
-- Executing [exten@sub-record-check:12] Return("SIP/1001-00000002", "") in new stack
-- Executing [0001@from-did-direct:19] Set("SIP/1001-00000002", "RingGroupMethod=ringallv2") in new stack
-- Executing [0001@from-did-direct:20] Set("SIP/1001-00000002", "_FMGRP=0001") in new stack
-- Executing [0001@from-did-direct:21] GotoIf("SIP/1001-00000002", "0?doconfirm") in new stack
-- Executing [0001@from-did-direct:22] Macro("SIP/1001-00000002", "dial,20,TtrI,0001") in new stack
-- Executing [s@macro-dial:1] GotoIf("SIP/1001-00000002", "0?dial") in new stack
-- Executing [s@macro-dial:2] SetMusicOnHold("SIP/1001-00000002", "default") in new stack
-- Executing [s@macro-dial:3] AGI("SIP/1001-00000002", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi

dialparties.agi: Starting New Dialparties.agi dialparties.agi: Caller ID name is '380*' number is '380*'

dialparties.agi: USECONFIRMATION: 'FALSE' dialparties.agi: RINGGROUPINDEX: '' dialparties.agi: Methodology of ring is 'ringallv2'

Вся конфигурация стандартная - сделана через FreeBPX....Может кто знающий скажет что не тактак.

Для сравнения выложу лог как проходит хвонок на втором телефоне работающий и как на телефоне который не хочет записывать: Фрагмент лога записи входящего звонка:

-- Executing [s@sub-record-check:19] Set("SIP/1001-0000000c", "TIMESTR=20140813-141345") in new stack -- Executing [s@sub-record-check:20] Set("SIP/1001-0000000c", "FROMEXTEN=380675528380") in new stack -- Executing [s@sub-record-check:21] Set("SIP/1001-0000000c", "CALLFILENAME=exten-0001-380ХХХХХХХХХ-20140813-141345-1407928425.12") in new stack -- Executing [s@sub-record-check:22] Goto("SIP/1001-0000000c", "exten,1") in new stack -- Goto (sub-record-check,exten,1) -- Executing [exten@sub-record-check:1] GotoIf("SIP/1001-0000000c", "1?callee") in new stack -- Goto (sub-record-check,exten,8) -- Executing [exten@sub-record-check:8] GosubIf("SIP/1001-0000000c", "1?record,1(exten,0001,380ХХХХХХХХХ)") in new stack -- Executing [record@sub-record-check:1] Set("SIP/1001-0000000c", "AUDIOHOOKINHERIT(MixMonitor)=yes") in new stack -- Executing [record@sub-record-check:2] MixMonitor("SIP/1001-0000000c", "2014/08/13/exten-0001-380ХХХХХХХХХ-20140813-141345-1407928425.12.wav,,") in new stack -- Executing [record@sub-record-check:3] Set("SIP/1001-0000000c", "RECSTATUS=RECORDING") in new stack -- Executing [record@sub-record-check:4] Set("SIP/1001-0000000c", "CDR(recordingfile)=exten-0001-380ХХХХХХХХХ-20140813-141345-1407928425.12.wav") in new stack -- Executing [record@sub-record-check:5] Return("SIP/1001-0000000c", "") in new stack -- Executing [exten@sub-record-check:9] Return("SIP/1001-0000000c", "") in new stack -- Executing [0001@from-did-direct:19] Set("SIP/1001-0000000c", "RingGroupMethod=ringallv2") in new stack -- Executing [0001@from-did-direct:20] Set("SIP/1001-0000000c", "_FMGRP=0001") in new stack -- Executing [0001@from-did-direct:21] GotoIf("SIP/1001-0000000c", "0?doconfirm") in new stack -- Executing [0001@from-did-direct:22] Macro("SIP/1001-0000000c", "dial,20,TtrI,0001") in new stack -- Executing [s@macro-dial:1] GotoIf("SIP/1001-0000000c", "0?dial") in new stack -- Executing [s@macro-dial:2] SetMusicOnHold("SIP/1001-0000000c", "default") in new stack -- Executing [s@macro-dial:3] AGI("SIP/1001-0000000c", "dialparties.agi") in new stack

А вот лог второго телефона который не хочет записывать входящий звонок:

-- Executing [s@sub-record-check:19] Set("SIP/1001-0000000a", "TIMESTR=20140813-134154") in new stack -- Executing [s@sub-record-check:20] Set("SIP/1001-0000000a", "FROMEXTEN=380ХХХХХХХХХ") in new stack -- Executing [s@sub-record-check:21] Set("SIP/1001-0000000a", "CALLFILENAME=exten-0001-380ХХХХХХХХХ-20140813-134154-1407926514.10") in new stack -- Executing [s@sub-record-check:22] Goto("SIP/1001-0000000a", "exten,1") in new stack -- Goto (sub-record-check,exten,1) -- Executing [exten@sub-record-check:1] GotoIf("SIP/1001-0000000a", "0?callee") in new stack -- Executing [exten@sub-record-check:2] Set("SIP/1001-0000000a", "RECPOLICYMODE=dontcare") in new stack -- Executing [exten@sub-record-check:3] GotoIf("SIP/1001-0000000a", "1?caller") in new stack -- Goto (sub-record-check,exten,10) -- Executing [exten@sub-record-check:10] Set("SIP/1001-0000000a", "_RECPOLICYMODE=") in new stack -- Executing [exten@sub-record-check:11] GosubIf("SIP/1001-0000000a", "0?record,1(exten,0001,380ХХХХХХХХХ)") in new stack -- Executing [exten@sub-record-check:12] Return("SIP/1001-0000000a", "") in new stack -- Executing [0001@from-did-direct:19] Set("SIP/1001-0000000a", "RingGroupMethod=ringallv2") in new stack -- Executing [0001@from-did-direct:20] Set("SIP/1001-0000000a", "FMGRP=0001") in new stack -- Executing [0001@from-did-direct:21] GotoIf("SIP/1001-0000000a", "0?doconfirm") in new stack -- Executing [0001@from-did-direct:22] Macro("SIP/1001-0000000a", "dial,20,TtrI,0001") in new stack -- Executing [s@macro-dial:1] GotoIf("SIP/1001-0000000a", "0?dial") in new stack -- Executing [s@macro-dial:2] SetMusicOnHold("SIP/1001-0000000a", "default") in new stack -- Executing [s@macro-dial:3] AGI("SIP/1001-0000000a", "dialparties.agi") in new stack

Разницу не трудно увидеть, но в чем именно проблема я понять не могу. Гуру помогите новичку - 1 месяц работаю с этим девайсом..(((

Asterisk не пишет входящие звонки на один из номеров

Проблема банальна и уже много раз обсуждалась, но тем не менее...Asterisk не хочет записывать входящие звонки которые поступают на определенный номер. При этом исходящии пишутся + входящие и исходящие на другом номере тоже пишутся... Вот собственно часть лога входящего :

-- Executing [s@sub-record-check:7] Set("SIP/1001-00000002", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:8] GotoIf("SIP/1001-00000002", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [s@sub-record-check:11] ExecIf("SIP/1001-00000002", "0?Return()") in new stack
-- Executing [s@sub-record-check:12] ExecIf("SIP/1001-00000002", "0?Set(__REC_POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:13] GotoIf("SIP/1001-00000002", "0?exten,1") in new stack
-- Executing [s@sub-record-check:14] Set("SIP/1001-00000002", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:15] Set("SIP/1001-00000002", "NOW=1407921713") in new stack
-- Executing [s@sub-record-check:16] Set("SIP/1001-00000002", "__DAY=13") in new stack
-- Executing [s@sub-record-check:17] Set("SIP/1001-00000002", "__MONTH=08") in new stack
-- Executing [s@sub-record-check:18] Set("SIP/1001-00000002", "__YEAR=2014") in new stack
-- Executing [s@sub-record-check:19] Set("SIP/1001-00000002", "__TIMESTR=20140813-122153") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/1001-00000002", "__FROMEXTEN=380*********") in new stack
-- Executing [s@sub-record-check:21] Set("SIP/1001-00000002", "__CALLFILENAME=exten-0001-380*********-20140813-122153-1407921713.2") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/1001-00000002", "exten,1") in new stack
-- Goto (sub-record-check,exten,1)
**-- Executing [exten@sub-record-check:1] GotoIf("SIP/1001-00000002", "0?callee") in new stack**
-- Executing [exten@sub-record-check:2] Set("SIP/1001-00000002", "__REC_POLICY_MODE=dontcare") in new stack
-- Executing [exten@sub-record-check:3] GotoIf("SIP/1001-00000002", "1?caller") in new stack
-- Goto (sub-record-check,exten,10)
-- Executing [exten@sub-record-check:10] Set("SIP/1001-00000002", "__REC_POLICY_MODE=") in new stack
-- Executing [exten@sub-record-check:11] GosubIf("SIP/1001-00000002", "0?record,1(exten,0001,380********)") in new stack
-- Executing [exten@sub-record-check:12] Return("SIP/1001-00000002", "") in new stack
-- Executing [0001@from-did-direct:19] Set("SIP/1001-00000002", "RingGroupMethod=ringallv2") in new stack
-- Executing [0001@from-did-direct:20] Set("SIP/1001-00000002", "_FMGRP=0001") in new stack
-- Executing [0001@from-did-direct:21] GotoIf("SIP/1001-00000002", "0?doconfirm") in new stack
-- Executing [0001@from-did-direct:22] Macro("SIP/1001-00000002", "dial,20,TtrI,0001") in new stack
-- Executing [s@macro-dial:1] GotoIf("SIP/1001-00000002", "0?dial") in new stack
-- Executing [s@macro-dial:2] SetMusicOnHold("SIP/1001-00000002", "default") in new stack
-- Executing [s@macro-dial:3] AGI("SIP/1001-00000002", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi

dialparties.agi: Starting New Dialparties.agi dialparties.agi: Caller ID name is '380*' number is '380*'

dialparties.agi: USECONFIRMATION: 'FALSE' dialparties.agi: RINGGROUPINDEX: '' dialparties.agi: Methodology of ring is 'ringallv2'

Вся конфигурация стандартная - сделана через FreeBPX....Может кто знающий скажет что не так.

Для сравнения выложу лог как проходит хвонок на втором телефоне работающий и как на телефоне который не хочет записывать: Фрагмент лога записи входящего звонка:

-- Executing [s@sub-record-check:19] Set("SIP/1001-0000000c", "TIMESTR=20140813-141345") in new stack -- Executing [s@sub-record-check:20] Set("SIP/1001-0000000c", "FROMEXTEN=380675528380") in new stack -- Executing [s@sub-record-check:21] Set("SIP/1001-0000000c", "CALLFILENAME=exten-0001-380ХХХХХХХХХ-20140813-141345-1407928425.12") in new stack -- Executing [s@sub-record-check:22] Goto("SIP/1001-0000000c", "exten,1") in new stack -- Goto (sub-record-check,exten,1) -- Executing [exten@sub-record-check:1] GotoIf("SIP/1001-0000000c", "1?callee") in new stack -- Goto (sub-record-check,exten,8) -- Executing [exten@sub-record-check:8] GosubIf("SIP/1001-0000000c", "1?record,1(exten,0001,380ХХХХХХХХХ)") in new stack -- Executing [record@sub-record-check:1] Set("SIP/1001-0000000c", "AUDIOHOOKINHERIT(MixMonitor)=yes") in new stack -- Executing [record@sub-record-check:2] MixMonitor("SIP/1001-0000000c", "2014/08/13/exten-0001-380ХХХХХХХХХ-20140813-141345-1407928425.12.wav,,") in new stack -- Executing [record@sub-record-check:3] Set("SIP/1001-0000000c", "RECSTATUS=RECORDING") in new stack -- Executing [record@sub-record-check:4] Set("SIP/1001-0000000c", "CDR(recordingfile)=exten-0001-380ХХХХХХХХХ-20140813-141345-1407928425.12.wav") in new stack -- Executing [record@sub-record-check:5] Return("SIP/1001-0000000c", "") in new stack -- Executing [exten@sub-record-check:9] Return("SIP/1001-0000000c", "") in new stack -- Executing [0001@from-did-direct:19] Set("SIP/1001-0000000c", "RingGroupMethod=ringallv2") in new stack -- Executing [0001@from-did-direct:20] Set("SIP/1001-0000000c", "_FMGRP=0001") in new stack -- Executing [0001@from-did-direct:21] GotoIf("SIP/1001-0000000c", "0?doconfirm") in new stack -- Executing [0001@from-did-direct:22] Macro("SIP/1001-0000000c", "dial,20,TtrI,0001") in new stack -- Executing [s@macro-dial:1] GotoIf("SIP/1001-0000000c", "0?dial") in new stack -- Executing [s@macro-dial:2] SetMusicOnHold("SIP/1001-0000000c", "default") in new stack -- Executing [s@macro-dial:3] AGI("SIP/1001-0000000c", "dialparties.agi") in new stack

А вот лог второго телефона который не хочет записывать входящий звонок:

-- Executing [s@sub-record-check:19] Set("SIP/1001-0000000a", "TIMESTR=20140813-134154") in new stack stack -- Executing [s@sub-record-check:20] Set("SIP/1001-0000000a", "FROMEXTEN=380ХХХХХХХХХ") in new stack -- Executing [s@sub-record-check:21] Set("SIP/1001-0000000a", "CALLFILENAME=exten-0001-380ХХХХХХХХХ-20140813-134154-1407926514.10") in new stack -- Executing [s@sub-record-check:22] Goto("SIP/1001-0000000a", "exten,1") in new stack -- Goto (sub-record-check,exten,1) -- Executing [exten@sub-record-check:1] GotoIf("SIP/1001-0000000a", "0?callee") in new stack GotoIf("SIP/1001-0000000a","0?callee")in new stack -- Executing [exten@sub-record-check:2] Set("SIP/1001-0000000a", "RECPOLICYMODE=dontcare") in new stack -- Executing [exten@sub-record-check:3] GotoIf("SIP/1001-0000000a", "1?caller") in new stack GotoIf("SIP/1001-0000000a","1?caller") in new stack -- Goto (sub-record-check,exten,10) -- Executing [exten@sub-record-check:10] Set("SIP/1001-0000000a", "_RECPOLICYMODE=") in new stack -- Executing [exten@sub-record-check:11] GosubIf("SIP/1001-0000000a", "0?record,1(exten,0001,380ХХХХХХХХХ)") in new stack -- Executing [exten@sub-record-check:12] Return("SIP/1001-0000000a", "") in new stack -- Executing [0001@from-did-direct:19] Set("SIP/1001-0000000a", -- Executing [0001@from-did-direct:19]Set("SIP/1001-0000000a", "RingGroupMethod=ringallv2") in new stack -- Executing [0001@from-did-direct:20] Set("SIP/1001-0000000a", " stack
-- Executing [0001@from-did-direct:20]Set("SIP/1001-0000000a","
FMGRP=0001") in new stack -- Executing [0001@from-did-direct:21] GotoIf("SIP/1001-0000000a", "0?doconfirm") in new stack -- Executing [0001@from-did-direct:22] Macro("SIP/1001-0000000a", "dial,20,TtrI,0001") in new stack -- Executing [s@macro-dial:1] GotoIf("SIP/1001-0000000a", "0?dial") in new stack GotoIf("SIP/1001-0000000a","0?dial") in new stack -- Executing [s@macro-dial:2] SetMusicOnHold("SIP/1001-0000000a", "default") in new stack SetMusicOnHold("SIP/1001-0000000a","default") in new stack -- Executing [s@macro-dial:3] AGI("SIP/1001-0000000a", "dialparties.agi") AGI("SIP/1001-0000000a","dialparties.agi") in new stack

Разницу не трудно увидеть, но в чем именно проблема я понять не могу. Гуру помогите новичку - 1 месяц работаю с этим девайсом..(((

Asterisk не пишет входящие звонки на один из номеров

Проблема банальна и уже много раз обсуждалась, но тем не менее...Asterisk не хочет записывать входящие звонки которые поступают на определенный номер. При этом исходящии пишутся + входящие и исходящие на другом номере тоже пишутся... пишутся...

Вот собственно часть лога входящего :

-- Executing [s@sub-record-check:7] Set("SIP/1001-00000002", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:8] GotoIf("SIP/1001-00000002", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [s@sub-record-check:11] ExecIf("SIP/1001-00000002", "0?Return()") in new stack
-- Executing [s@sub-record-check:12] ExecIf("SIP/1001-00000002", "0?Set(__REC_POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:13] GotoIf("SIP/1001-00000002", "0?exten,1") in new stack
-- Executing [s@sub-record-check:14] Set("SIP/1001-00000002", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:15] Set("SIP/1001-00000002", "NOW=1407921713") in new stack
-- Executing [s@sub-record-check:16] Set("SIP/1001-00000002", "__DAY=13") in new stack
-- Executing [s@sub-record-check:17] Set("SIP/1001-00000002", "__MONTH=08") in new stack
-- Executing [s@sub-record-check:18] Set("SIP/1001-00000002", "__YEAR=2014") in new stack
-- Executing [s@sub-record-check:19] Set("SIP/1001-00000002", "__TIMESTR=20140813-122153") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/1001-00000002", "__FROMEXTEN=380*********") in new stack
-- Executing [s@sub-record-check:21] Set("SIP/1001-00000002", "__CALLFILENAME=exten-0001-380*********-20140813-122153-1407921713.2") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/1001-00000002", "exten,1") in new stack
-- Goto (sub-record-check,exten,1)
**-- Executing [exten@sub-record-check:1] GotoIf("SIP/1001-00000002", "0?callee") in new stack**
-- Executing [exten@sub-record-check:2] Set("SIP/1001-00000002", "__REC_POLICY_MODE=dontcare") in new stack
-- Executing [exten@sub-record-check:3] GotoIf("SIP/1001-00000002", "1?caller") in new stack
-- Goto (sub-record-check,exten,10)
-- Executing [exten@sub-record-check:10] Set("SIP/1001-00000002", "__REC_POLICY_MODE=") in new stack
-- Executing [exten@sub-record-check:11] GosubIf("SIP/1001-00000002", "0?record,1(exten,0001,380********)") in new stack
-- Executing [exten@sub-record-check:12] Return("SIP/1001-00000002", "") in new stack
-- Executing [0001@from-did-direct:19] Set("SIP/1001-00000002", "RingGroupMethod=ringallv2") in new stack
-- Executing [0001@from-did-direct:20] Set("SIP/1001-00000002", "_FMGRP=0001") in new stack
-- Executing [0001@from-did-direct:21] GotoIf("SIP/1001-00000002", "0?doconfirm") in new stack
-- Executing [0001@from-did-direct:22] Macro("SIP/1001-00000002", "dial,20,TtrI,0001") in new stack
-- Executing [s@macro-dial:1] GotoIf("SIP/1001-00000002", "0?dial") in new stack
-- Executing [s@macro-dial:2] SetMusicOnHold("SIP/1001-00000002", "default") in new stack
-- Executing [s@macro-dial:3] AGI("SIP/1001-00000002", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi

dialparties.agi: Starting New Dialparties.agi dialparties.agi: Caller ID name is '380*' number is '380*'

dialparties.agi: USECONFIRMATION: 'FALSE' dialparties.agi: RINGGROUPINDEX: '' dialparties.agi: Methodology of ring is 'ringallv2'

Вся конфигурация стандартная - сделана через FreeBPX....Может кто знающий скажет что не так.

Для сравнения выложу лог как проходит хвонок на втором телефоне работающий и как на телефоне который не хочет записывать: Фрагмент лога записи входящего звонка:

-- Executing [s@sub-record-check:19] Set("SIP/1001-0000000c", "TIMESTR=20140813-141345") in new stack -- Executing [s@sub-record-check:20] Set("SIP/1001-0000000c", "FROMEXTEN=380675528380") in new stack

-- Executing [s@sub-record-check:21] Set("SIP/1001-0000000c", "CALLFILENAME=exten-0001-380ХХХХХХХХХ-20140813-141345-1407928425.12") in new stack
    "__CALLFILENAME=exten-0001-380ХХХХХХХХХ-20140813-141345-1407928425.12") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/1001-0000000c", "exten,1") in new stack
 -- Goto (sub-record-check,exten,1)
 -- Executing [exten@sub-record-check:1] GotoIf("SIP/1001-0000000c", "1?callee") in new stack
 -- Goto (sub-record-check,exten,8)
 -- Executing [exten@sub-record-check:8] GosubIf("SIP/1001-0000000c", "1?record,1(exten,0001,380ХХХХХХХХХ)") in new stack
 -- Executing [record@sub-record-check:1] Set("SIP/1001-0000000c", "AUDIOHOOKINHERIT(MixMonitor)=yes") in new stack
    "AUDIOHOOK_INHERIT(MixMonitor)=yes") in new stack
-- Executing [record@sub-record-check:2] MixMonitor("SIP/1001-0000000c", "2014/08/13/exten-0001-380ХХХХХХХХХ-20140813-141345-1407928425.12.wav,,") in new stack
 -- Executing [record@sub-record-check:3] Set("SIP/1001-0000000c", "RECSTATUS=RECORDING") in new stack
    "__REC_STATUS=RECORDING") in new stack
-- Executing [record@sub-record-check:4] Set("SIP/1001-0000000c", "CDR(recordingfile)=exten-0001-380ХХХХХХХХХ-20140813-141345-1407928425.12.wav") in new stack
 -- Executing [record@sub-record-check:5] Return("SIP/1001-0000000c", "") in new stack
 -- Executing [exten@sub-record-check:9] Return("SIP/1001-0000000c", "") in new stack
    -- Executing [0001@from-did-direct:19] Set("SIP/1001-0000000c", "RingGroupMethod=ringallv2") in new stack
    -- Executing [0001@from-did-direct:20] Set("SIP/1001-0000000c", "_FMGRP=0001") in new stack
    -- Executing [0001@from-did-direct:21] GotoIf("SIP/1001-0000000c", "0?doconfirm") in new stack
    -- Executing [0001@from-did-direct:22] Macro("SIP/1001-0000000c", "dial,20,TtrI,0001") in new stack
    -- Executing [s@macro-dial:1] GotoIf("SIP/1001-0000000c", "0?dial") in new stack
    -- Executing [s@macro-dial:2] SetMusicOnHold("SIP/1001-0000000c", "default") in new stack
    -- Executing [s@macro-dial:3] AGI("SIP/1001-0000000c", "dialparties.agi") in new stack

А вот лог второго телефона который не хочет записывать входящий звонок:

-- Executing [s@sub-record-check:19] Set("SIP/1001-0000000a",   "TIMESTR=20140813-134154") in new  stack
  Set("SIP/1001-000001c4", "__TIMESTR=20140814-091627") in new stack
-- Executing [s@sub-record-check:20]  Set("SIP/1001-0000000a",   "FROMEXTEN=380ХХХХХХХХХ") in new stack
 Set("SIP/1001-000001c4", "__FROMEXTEN=380ХХХХХХХХХ") in new stack
-- Executing [s@sub-record-check:21] Set("SIP/1001-0000000a",    "CALLFILENAME=exten-0001-380ХХХХХХХХХ-20140813-134154-1407926514.10") in new stack
 Set("SIP/1001-000001c4", "__CALLFILENAME=exten-0001-380ХХХХХХХХХ-20140814-091627-1407996987.452") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/1001-0000000a", Goto("SIP/1001-000001c4", "exten,1") in new stack
 -- Goto (sub-record-check,exten,1)
-- Executing [exten@sub-record-check:1] GotoIf("SIP/1001-0000000a","0?callee")in GotoIf("SIP/1001-000001c4", "0?callee") in new stack
-- Executing [exten@sub-record-check:2] Set("SIP/1001-0000000a",    "RECPOLICYMODE=dontcare") Set("SIP/1001-000001c4", "__REC_POLICY_MODE=dontcare") in new stack
-- Executing [exten@sub-record-check:3] GotoIf("SIP/1001-0000000a","1?caller") GotoIf("SIP/1001-000001c4", "1?caller") in new stack
-- Goto (sub-record-check,exten,10)
-- Executing [exten@sub-record-check:10] Set("SIP/1001-0000000a",   "_RECPOLICYMODE=") Set("SIP/1001-000001c4", "__REC_POLICY_MODE=") in new stack
-- Executing [exten@sub-record-check:11] GosubIf("SIP/1001-0000000a",    GosubIf("SIP/1001-000001c4", "0?record,1(exten,0001,380ХХХХХХХХХ)") in new stack
-- Executing [exten@sub-record-check:12] Return("SIP/1001-0000000a", Return("SIP/1001-000001c4", "") in new stack
-- Executing [0001@from-did-direct:19]Set("SIP/1001-0000000a",    "RingGroupMethod=ringallv2") in new  stack 
-- Executing [0001@from-did-direct:20]Set("SIP/1001-0000000a","
FMGRP=0001") in new stack -- Executing [0001@from-did-direct:21] GotoIf("SIP/1001-0000000a", "0?doconfirm") in new stack -- Executing [0001@from-did-direct:22] Macro("SIP/1001-0000000a", "dial,20,TtrI,0001") in new stack -- Executing [s@macro-dial:1] GotoIf("SIP/1001-0000000a","0?dial") in new stack -- Executing [s@macro-dial:2] SetMusicOnHold("SIP/1001-0000000a","default") in new stack -- Executing [s@macro-dial:3] AGI("SIP/1001-0000000a","dialparties.agi") in new stack

Разницу не трудно увидеть, но в чем именно проблема я понять не могу. увидеть,после контекста екстеншн должен переходить на контекст рекорд.... Гуру помогите новичку - 1 месяц работаю с этим девайсом..(((strong text

Asterisk не пишет входящие звонки на один из номеров

Проблема банальна и уже много раз обсуждалась, но тем не менее...Asterisk не хочет записывать входящие звонки которые поступают на определенный номер. При этом исходящии пишутся + входящие и исходящие на другом номере тоже пишутся...

Вот собственно часть лога входящего :

-- Executing [s@sub-record-check:7] Set("SIP/1001-00000002", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:8] GotoIf("SIP/1001-00000002", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [s@sub-record-check:11] ExecIf("SIP/1001-00000002", "0?Return()") in new stack
-- Executing [s@sub-record-check:12] ExecIf("SIP/1001-00000002", "0?Set(__REC_POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:13] GotoIf("SIP/1001-00000002", "0?exten,1") in new stack
-- Executing [s@sub-record-check:14] Set("SIP/1001-00000002", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:15] Set("SIP/1001-00000002", "NOW=1407921713") in new stack
-- Executing [s@sub-record-check:16] Set("SIP/1001-00000002", "__DAY=13") in new stack
-- Executing [s@sub-record-check:17] Set("SIP/1001-00000002", "__MONTH=08") in new stack
-- Executing [s@sub-record-check:18] Set("SIP/1001-00000002", "__YEAR=2014") in new stack
-- Executing [s@sub-record-check:19] Set("SIP/1001-00000002", "__TIMESTR=20140813-122153") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/1001-00000002", "__FROMEXTEN=380*********") in new stack
-- Executing [s@sub-record-check:21] Set("SIP/1001-00000002", "__CALLFILENAME=exten-0001-380*********-20140813-122153-1407921713.2") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/1001-00000002", "exten,1") in new stack
-- Goto (sub-record-check,exten,1)
**-- Executing [exten@sub-record-check:1] GotoIf("SIP/1001-00000002", "0?callee") in new stack**
-- Executing [exten@sub-record-check:2] Set("SIP/1001-00000002", "__REC_POLICY_MODE=dontcare") in new stack
-- Executing [exten@sub-record-check:3] GotoIf("SIP/1001-00000002", "1?caller") in new stack
-- Goto (sub-record-check,exten,10)
-- Executing [exten@sub-record-check:10] Set("SIP/1001-00000002", "__REC_POLICY_MODE=") in new stack
-- Executing [exten@sub-record-check:11] GosubIf("SIP/1001-00000002", "0?record,1(exten,0001,380********)") in new stack
-- Executing [exten@sub-record-check:12] Return("SIP/1001-00000002", "") in new stack
-- Executing [0001@from-did-direct:19] Set("SIP/1001-00000002", "RingGroupMethod=ringallv2") in new stack
-- Executing [0001@from-did-direct:20] Set("SIP/1001-00000002", "_FMGRP=0001") in new stack
-- Executing [0001@from-did-direct:21] GotoIf("SIP/1001-00000002", "0?doconfirm") in new stack
-- Executing [0001@from-did-direct:22] Macro("SIP/1001-00000002", "dial,20,TtrI,0001") in new stack
-- Executing [s@macro-dial:1] GotoIf("SIP/1001-00000002", "0?dial") in new stack
-- Executing [s@macro-dial:2] SetMusicOnHold("SIP/1001-00000002", "default") in new stack
-- Executing [s@macro-dial:3] AGI("SIP/1001-00000002", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi

dialparties.agi: Starting New Dialparties.agi dialparties.agi: Caller ID name is '380*' number is '380*'

dialparties.agi: USECONFIRMATION: 'FALSE' dialparties.agi: RINGGROUPINDEX: '' dialparties.agi: Methodology of ring is 'ringallv2'

Вся конфигурация стандартная - сделана через FreeBPX....Может кто знающий скажет что не так.

Для сравнения выложу лог как проходит хвонок на втором телефоне работающий и как на телефоне который не хочет записывать: Фрагмент лога записи входящего звонка:

-- Executing [s@sub-record-check:21] Set("SIP/1001-0000000c", "__CALLFILENAME=exten-0001-380ХХХХХХХХХ-20140813-141345-1407928425.12") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/1001-0000000c", "exten,1") in new stack
-- Goto (sub-record-check,exten,1)
-- Executing [exten@sub-record-check:1] GotoIf("SIP/1001-0000000c", "1?callee") in new stack
-- Goto (sub-record-check,exten,8)
-- Executing [exten@sub-record-check:8] GosubIf("SIP/1001-0000000c", "1?record,1(exten,0001,380ХХХХХХХХХ)") in new stack
-- Executing [record@sub-record-check:1] Set("SIP/1001-0000000c", "AUDIOHOOK_INHERIT(MixMonitor)=yes") in new stack
-- Executing [record@sub-record-check:2] MixMonitor("SIP/1001-0000000c", "2014/08/13/exten-0001-380ХХХХХХХХХ-20140813-141345-1407928425.12.wav,,") in new stack
-- Executing [record@sub-record-check:3] Set("SIP/1001-0000000c", "__REC_STATUS=RECORDING") in new stack
-- Executing [record@sub-record-check:4] Set("SIP/1001-0000000c", "CDR(recordingfile)=exten-0001-380ХХХХХХХХХ-20140813-141345-1407928425.12.wav") in new stack
-- Executing [record@sub-record-check:5] Return("SIP/1001-0000000c", "") in new stack
-- Executing [exten@sub-record-check:9] Return("SIP/1001-0000000c", "") in new stack

А вот лог второго телефона который не хочет записывать входящий звонок:

-- Executing [s@sub-record-check:19] Set("SIP/1001-000001c4", "__TIMESTR=20140814-091627") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/1001-000001c4", "__FROMEXTEN=380ХХХХХХХХХ") in new stack
-- Executing [s@sub-record-check:21] Set("SIP/1001-000001c4", "__CALLFILENAME=exten-0001-380ХХХХХХХХХ-20140814-091627-1407996987.452") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/1001-000001c4", "exten,1") in new stack
-- Goto (sub-record-check,exten,1)
-- Executing [exten@sub-record-check:1] GotoIf("SIP/1001-000001c4", "0?callee") in new stack
-- Executing [exten@sub-record-check:2] Set("SIP/1001-000001c4", "__REC_POLICY_MODE=dontcare") in new stack
-- Executing [exten@sub-record-check:3] GotoIf("SIP/1001-000001c4", "1?caller") in new stack
-- Goto (sub-record-check,exten,10)
-- Executing [exten@sub-record-check:10] Set("SIP/1001-000001c4", "__REC_POLICY_MODE=") in new stack
-- Executing [exten@sub-record-check:11] GosubIf("SIP/1001-000001c4", "0?record,1(exten,0001,380ХХХХХХХХХ)") in new stack
-- Executing [exten@sub-record-check:12] Return("SIP/1001-000001c4", "") in new stack

Разницу не трудно увидеть,после контекста екстеншн должен переходить на контекст рекорд.... Гуру помогите новичку - 1 месяц работаю с этим девайсом..(((strong text

Asterisk не пишет входящие звонки на один из номеров

Проблема банальна и уже много раз обсуждалась, но тем не менее...Asterisk не хочет записывать входящие звонки которые поступают на определенный номер. При этом исходящии пишутся + входящие и исходящие на другом номере тоже пишутся...

Вот собственно часть лога входящего :

-- Executing [s@sub-record-check:7] Set("SIP/1001-00000002", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:8] GotoIf("SIP/1001-00000002", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [s@sub-record-check:11] ExecIf("SIP/1001-00000002", "0?Return()") in new stack
-- Executing [s@sub-record-check:12] ExecIf("SIP/1001-00000002", "0?Set(__REC_POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:13] GotoIf("SIP/1001-00000002", "0?exten,1") in new stack
-- Executing [s@sub-record-check:14] Set("SIP/1001-00000002", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:15] Set("SIP/1001-00000002", "NOW=1407921713") in new stack
-- Executing [s@sub-record-check:16] Set("SIP/1001-00000002", "__DAY=13") in new stack
-- Executing [s@sub-record-check:17] Set("SIP/1001-00000002", "__MONTH=08") in new stack
-- Executing [s@sub-record-check:18] Set("SIP/1001-00000002", "__YEAR=2014") in new stack
-- Executing [s@sub-record-check:19] Set("SIP/1001-00000002", "__TIMESTR=20140813-122153") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/1001-00000002", "__FROMEXTEN=380*********") in new stack
-- Executing [s@sub-record-check:21] Set("SIP/1001-00000002", "__CALLFILENAME=exten-0001-380*********-20140813-122153-1407921713.2") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/1001-00000002", "exten,1") in new stack
-- Goto (sub-record-check,exten,1)
**-- Executing [exten@sub-record-check:1] GotoIf("SIP/1001-00000002", "0?callee") in new stack**
-- Executing [exten@sub-record-check:2] Set("SIP/1001-00000002", "__REC_POLICY_MODE=dontcare") in new stack
-- Executing [exten@sub-record-check:3] GotoIf("SIP/1001-00000002", "1?caller") in new stack
-- Goto (sub-record-check,exten,10)
-- Executing [exten@sub-record-check:10] Set("SIP/1001-00000002", "__REC_POLICY_MODE=") in new stack
-- Executing [exten@sub-record-check:11] GosubIf("SIP/1001-00000002", "0?record,1(exten,0001,380********)") in new stack
-- Executing [exten@sub-record-check:12] Return("SIP/1001-00000002", "") in new stack
-- Executing [0001@from-did-direct:19] Set("SIP/1001-00000002", "RingGroupMethod=ringallv2") in new stack
-- Executing [0001@from-did-direct:20] Set("SIP/1001-00000002", "_FMGRP=0001") in new stack
-- Executing [0001@from-did-direct:21] GotoIf("SIP/1001-00000002", "0?doconfirm") in new stack
-- Executing [0001@from-did-direct:22] Macro("SIP/1001-00000002", "dial,20,TtrI,0001") in new stack
-- Executing [s@macro-dial:1] GotoIf("SIP/1001-00000002", "0?dial") in new stack
-- Executing [s@macro-dial:2] SetMusicOnHold("SIP/1001-00000002", "default") in new stack
-- Executing [s@macro-dial:3] AGI("SIP/1001-00000002", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi

Вся конфигурация стандартная - сделана через FreeBPX....Может кто знающий скажет что не так.

Для сравнения выложу лог как проходит хвонок на втором телефоне работающий и как на телефоне который не хочет записывать: Фрагмент лога записи входящего звонка:

-- Executing [s@sub-record-check:21] Set("SIP/1001-0000000c", "__CALLFILENAME=exten-0001-380ХХХХХХХХХ-20140813-141345-1407928425.12") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/1001-0000000c", "exten,1") in new stack
-- Goto (sub-record-check,exten,1)
-- Executing [exten@sub-record-check:1] GotoIf("SIP/1001-0000000c", "1?callee") in new stack
-- Goto (sub-record-check,exten,8)
-- Executing [exten@sub-record-check:8] GosubIf("SIP/1001-0000000c", "1?record,1(exten,0001,380ХХХХХХХХХ)") in new stack
-- Executing [record@sub-record-check:1] Set("SIP/1001-0000000c", "AUDIOHOOK_INHERIT(MixMonitor)=yes") in new stack
-- Executing [record@sub-record-check:2] MixMonitor("SIP/1001-0000000c", "2014/08/13/exten-0001-380ХХХХХХХХХ-20140813-141345-1407928425.12.wav,,") in new stack
-- Executing [record@sub-record-check:3] Set("SIP/1001-0000000c", "__REC_STATUS=RECORDING") in new stack
-- Executing [record@sub-record-check:4] Set("SIP/1001-0000000c", "CDR(recordingfile)=exten-0001-380ХХХХХХХХХ-20140813-141345-1407928425.12.wav") in new stack
-- Executing [record@sub-record-check:5] Return("SIP/1001-0000000c", "") in new stack
-- Executing [exten@sub-record-check:9] Return("SIP/1001-0000000c", "") in new stack

А вот лог второго телефона который не хочет записывать входящий звонок:

-- Executing [s@sub-record-check:19] Set("SIP/1001-000001c4", "__TIMESTR=20140814-091627") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/1001-000001c4", "__FROMEXTEN=380ХХХХХХХХХ") in new stack
-- Executing [s@sub-record-check:21] Set("SIP/1001-000001c4", "__CALLFILENAME=exten-0001-380ХХХХХХХХХ-20140814-091627-1407996987.452") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/1001-000001c4", "exten,1") in new stack
-- Goto (sub-record-check,exten,1)
-- Executing [exten@sub-record-check:1] GotoIf("SIP/1001-000001c4", "0?callee") in new stack
-- Executing [exten@sub-record-check:2] Set("SIP/1001-000001c4", "__REC_POLICY_MODE=dontcare") in new stack
-- Executing [exten@sub-record-check:3] GotoIf("SIP/1001-000001c4", "1?caller") in new stack
-- Goto (sub-record-check,exten,10)
-- Executing [exten@sub-record-check:10] Set("SIP/1001-000001c4", "__REC_POLICY_MODE=") in new stack
-- Executing [exten@sub-record-check:11] GosubIf("SIP/1001-000001c4", "0?record,1(exten,0001,380ХХХХХХХХХ)") in new stack
-- Executing [exten@sub-record-check:12] Return("SIP/1001-000001c4", "") in new stack

Разницу не трудно увидеть,после контекста екстеншн должен переходить на контекст рекорд.... Гуру помогите новичку - 1 месяц работаю с этим девайсом..(((strong text

Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией GNU GPL.