Добрый день.
В АТС настроено два провайдера и для каждого есть свой режим работы.
Настроил в соответствии с инструкцией.
В результате диалплан отрабатывает корректно, а вот звуковой файл загруженный через веб не проигрывает.
Пример добавленного куска диалплана:
[SIP-1688752467-incoming-custom]
exten => _.!,1,NoOp(check time)
same => n,ExecIfTime(00:00-23:59,sat-sun,*,*?Macro(playback-exit,/storage/usbdisk1/mikopbx/media/custom/time_v2_woman.wav))
same => n,ExecIfTime(00:00-08:00,mon-fri,*,*?Macro(playback-exit,/storage/usbdisk1/mikopbx/media/custom/time_v2_woman.wav))
same => n,ExecIfTime(18:00-23:59,mon-fri,*,*?Macro(playback-exit,/storage/usbdisk1/mikopbx/media/custom/time_v2_woman.wav))
same => n,return
[SIP-1688859946-incoming-custom]
exten => _.!,1,NoOp(check time)
same => n,ExecIfTime(00:00-23:59,sat-sun,*,*?Macro(playback-exit,/storage/usbdisk1/mikopbx/media/custom/nowork_time_v3.wav))
same => n,ExecIfTime(00:00-08:00,mon-fri,*,*?Macro(playback-exit,/storage/usbdisk1/mikopbx/media/custom/nowork_time_v3.wav))
same => n,ExecIfTime(18:00-23:59,mon-fri,*,*?Macro(playback-exit,/storage/usbdisk1/mikopbx/media/custom/nowork_time_v3.wav))
same => n,return
В логах звонка видим следующие:
-- <PJSIP/SIP-1688752467-0000006f>AGI Script /storage/usbdisk1/mikopbx/custom_modules/ModuleCTIClient/agi-bin/set-caller-id-with-transliteration.php completed, returning 0
-- Executing [<ЗАМЕНЕНО>@SIP-1688752467-incoming:17] GosubIf("PJSIP/SIP-1688752467-0000006f", "1?SIP-1688752467-incoming-custom,<ЗАМЕНЕНО>,1") in new stack
-- Executing [<ЗАМЕНЕНО>@SIP-1688752467-incoming-custom:1] NoOp("PJSIP/SIP-1688752467-0000006f", "check time") in new stack
-- Executing [<ЗАМЕНЕНО>@SIP-1688752467-incoming-custom:2] ExecIfTime("PJSIP/SIP-1688752467-0000006f", "00:00-23:59,sat-sun,*,*?Macro(playback-exit,/storage/usbdisk1/mikopbx/media/custom/time_v2_woman.wav)") in new stack
-- Executing [<ЗАМЕНЕНО>@SIP-1688752467-incoming-custom:3] ExecIfTime("PJSIP/SIP-1688752467-0000006f", "00:00-08:00,mon-fri,*,*?Macro(playback-exit,/storage/usbdisk1/mikopbx/media/custom/time_v2_woman.wav)") in new stack
-- Executing [<ЗАМЕНЕНО>@SIP-1688752467-incoming-custom:4] ExecIfTime("PJSIP/SIP-1688752467-0000006f", "10:00-23:59,mon-fri,*,*?Macro(playback-exit,/storage/usbdisk1/mikopbx/media/custom/time_v2_woman.wav)") in new stack
== Spawn extension (SIP-1688752467-incoming-custom, <ЗАМЕНЕНО>, 4) exited non-zero on 'PJSIP/SIP-1688752467-0000006f'
-- Executing [h@SIP-1688752467-incoming-custom:1] NoOp("PJSIP/SIP-1688752467-0000006f", "check time") in new stack
-- Executing [h@SIP-1688752467-incoming-custom:2] ExecIfTime("PJSIP/SIP-1688752467-0000006f", "00:00-23:59,sat-sun,*,*?Macro(playback-exit,/storage/usbdisk1/mikopbx/media/custom/time_v2_woman.wav)") in new stack
-- Executing [h@SIP-1688752467-incoming-custom:3] ExecIfTime("PJSIP/SIP-1688752467-0000006f", "00:00-08:00,mon-fri,*,*?Macro(playback-exit,/storage/usbdisk1/mikopbx/media/custom/time_v2_woman.wav)") in new stack
-- Executing [h@SIP-1688752467-incoming-custom:4] ExecIfTime("PJSIP/SIP-1688752467-0000006f", "10:00-23:59,mon-fri,*,*?Macro(playback-exit,/storage/usbdisk1/mikopbx/media/custom/time_v2_woman.wav)") in new stack
== Spawn extension (SIP-1688752467-incoming-custom, h, 4) exited non-zero on 'PJSIP/SIP-1688752467-0000006f'
-- PJSIP/SIP-1688752467-0000006f Internal Gosub(hangup_handler,s,1) start
-- Executing [s@hangup_handler:1] NoOp("PJSIP/SIP-1688752467-0000006f", "--- hangup - PJSIP/SIP-1688752467-0000006f ---") in new stack
-- Executing [s@hangup_handler:2] Gosub("PJSIP/SIP-1688752467-0000006f", "hangup_chan,s,1") in new stack