lct-hack/sip/extensions.conf
2026-09-24 01:10:49 +03:00

28 lines
1.3 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[general]
static=yes
writeprotect=yes
clearglobalvars=no
[lct-training]
; 6001 — ДДС, 6002 — старший группы, 6003 — преподаватель.
exten => _600[1-3],1,NoOp(LCT training call ${CALLERID(num)} -> ${EXTEN})
same => n,Set(RECORDING_FILE=${STRFTIME(${EPOCH},UTC,%Y%m%d-%H%M%S)}-${CALLERID(num)}-${EXTEN}-${UNIQUEID})
same => n,MixMonitor(/recordings/${RECORDING_FILE}.wav,b)
same => n,Dial(PJSIP/${EXTEN},30)
same => n,StopMixMonitor()
same => n,Hangup()
; 6101/6102 — браузерные WebRTC-абоненты. Тот же учебный контекст и запись,
; но отдельные endpoints не ломают обычные UDP/TCP-софтфоны 6001–6003.
exten => _610[1-2],1,NoOp(LCT WebRTC training call ${CALLERID(num)} -> ${EXTEN})
same => n,Set(RECORDING_FILE=${STRFTIME(${EPOCH},UTC,%Y%m%d-%H%M%S)}-${CALLERID(num)}-${EXTEN}-${UNIQUEID})
same => n,MixMonitor(/recordings/${RECORDING_FILE}.wav,b)
same => n,Dial(PJSIP/${EXTEN},30)
same => n,StopMixMonitor()
same => n,Hangup()
; Эхо-номер нужен для проверки полного SIP/RTP-пути без второго устройства.
exten => 7000,1,NoOp(LCT SIP echo test)
same => n,Answer()
same => n,Echo()
same => n,Hangup()