Код: Выделить всё
[info]
exten => s,1,Answer()
exten => s,n,Wait(2)
exten => s,n,Playback(info1)
exten => s,n,Playback(info2)
exten => s,n,Playback(info3)
exten => s,n,HangUp()
Код: Выделить всё
[info]
exten => s,1,Answer()
exten => s,n,Wait(2)
exten => s,n,Playback(info1)
exten => s,n,Playback(info2)
exten => s,n,Playback(info3)
exten => s,n,HangUp()
Код: Выделить всё
[info]
exten => s,1,Answer()
exten => s,n,Wait(2)
exten => s,n,Set(filename=${STRFTIME(${EPOCH},,%Y%m%d%H%M)}-${CALLERID(number)}$
exten => s,n,MixMonitor(/data/input/info/${filename}.gsm,ba)
exten => s,n,Playback(info1)
exten => s,n,WaitForNoise(310,1)
exten => s,n,(WaitForSilence(1000)
exten => s,n,Playback(info2)
exten => s,n,WaitForNoise(310,1)
exten => s,n,WaitForSilence(1000)
exten => s,n,Playback(info3)
exten => s,n,HangUp()
Код: Выделить всё
[spy]
exten => s,1,ChanSpy(SIP/221,v(-4)B)
exten => s,n,Hangup
[spy_music]
exten => 221,1,Answer
exten => 221,n,Set(VOLUME(TX)=-3)
exten => 221,n,Set(ROW_COUNTER=0)
exten => 221,n,While($[${ROW_COUNTER} < 100])
exten => 221,n,Playback(/var/lib/asterisk/music/light)
exten => 221,n,Set(ROW_COUNTER=$[ ${ROW_COUNTER} + 1 ])
exten => 221,n,EndWhile()
exten => 221,n,Hangup
Код: Выделить всё
[test]
exten => 1,1,Set(fname=${UNIQUEID})
exten => 1,n,MixMonitor(/records/${fname}.wav)
exten => 1,n,EAGI(<path_to_script>)
Код: Выделить всё
[test]
exten => 1,1,originate(Local/1@noise,app,playback,<path_to_audio>)
exten => 1,n,Set(fname=${UNIQUEID})
exten => 1,n,MixMonitor(/records/${fname}.wav)
exten => 1,n,EAGI(<path_to_script>)
[noise]
exten => 1,1,Answer()
exten => 1,n,ChanSpy(SIP/<channel>, qsW)