Всем привет! Не могу понять, почему не формируется калл-файл, когда оставил голосовое сообщение и в конце вызова нажал «положить трубку». Когда в конце вызова нажимаю #, тогда все хорошо: формируется калл-файл, и Астер перезванивает через некоторое время.
[internal]
exten => _70[0-4],1,GotoIfTime(08:30-17:28,Mon-Fri,*,*?Say_Open_employees,${EXTEN},1)
exten => _70[0-4],n,GotoIfTime(17:30-08:28,Fri-Mon,*,*?Say_Closed,s,1)
exten => 1,1,VoiceMailMain(${CALLERID(num)}@voicemail)
same => n,Hangup()
[Say_Open_employees]
exten => 700,1,Macro(VoiceMail,${Num700})
exten => 701,1,Macro(VoiceMail,${Num701})
[macro-VoiceMail]
exten => s,1,Dial(${ARG1},10)
exten => s,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?busy:unavail)
exten => s,n(unavail),VoiceMail(${MACRO_EXTEN}@voicemail,u)
exten => s,n,GoTo(scrtest,s,1)
exten => s,n(busy),VoiceMail(${MACRO_EXTEN}@voicemail,b)
exten => s,n,GoTo(scrtest,s,1)
[scrtest]
exten => s,1,System(/var/spool/asterisk/test_call_list.sh ${CONNECTEDLINE(number)} ${CALLERID(num)})
exten => s,n,Hangup
voicemail.conf:
[general]
format=wav|gsm|ulaw
serveremail=asterisk
attach=yes
maxmsg=100
maxsecs=180
minsecs=4
maxgreet=60
skipms=3000
maxlogins=3
moveheard=yes
charset=UTF-8
pbxskip=yes
maxsilence=3
Log:
если нажать #
== Parsing '/var/spool/asterisk/voicemail/VoiceMail/700/INBOX/msg0005.txt': Found
-- Executing [s@macro-VoiceMail:6] Goto("SIP/703-00000070", "scrtest,s,1") in new stack
-- Goto (scrtest,s,1)
== Channel 'SIP/703-00000070' jumping out of macro 'VoiceMail'
-- Executing [s@scrtest:1] System("SIP/703-00000070", "/var/spool/asterisk/test_call_list.sh 700 703") in new stack
-- Executing [s@scrtest:2] Hangup("SIP/703-00000070", "") in new stack
== Spawn extension (scrtest, s, 2) exited non-zero on 'SIP/703-00000070'
если положить трубку:
x=2, open writing: /var/spool/asterisk/voicemail/VoiceMail/700/tmp/3dfGMb format: ulaw, 0x7fcbe00194c8
-- User hung up
== Parsing '/var/spool/asterisk/voicemail/VoiceMail/700/INBOX/msg0006.txt': Found
== Parsing '/var/spool/asterisk/voicemail/VoiceMail/700/INBOX/msg0006.txt': Found
== Parsing '/var/spool/asterisk/voicemail/VoiceMail/700/INBOX/msg0006.txt': Found
== Spawn extension (macro-VoiceMail, s, 4) exited non-zero on 'SIP/703-00000072' in macro 'VoiceMail'
== Spawn extension (Say_Open_employees, 700, 1) exited non-zero on 'SIP/703-00000072'