- Код: выделить все
[from-520]
exten => _X.,1,Set(REC_URL=${STRFTIME(,,%G/%m/%d/)}${STRFTIME(${EPOCH},,%Y%m%d%H%M)}-${CALLERID(num)}-520)
exten => _X.,2,MixMonitor(/var/spool/asterisk/monitor/${REC_URL}.wav,b)
exten => _X.,3,Dial(SIP/520,120,g)
exten => _X.,4,NoOp(${CDR(disposition)})
exten => _X.,5,NoOp(${DIALSTATUS})
exten => _X.,6,NoOp(${CDR(answer)})
exten => _X.,7,NoOp(${CDR(end)})
exten => _X.,8,NoOp(${CDR(duration)})
в консоли:
- Код: выделить все
Called 520
-- SIP/520-00000019 is ringing
-- SIP/520-00000019 answered SIP/320-00000018
-- SIP/619249-00000017 answered SIP/303-00000016
-- Packet2Packet bridging SIP/303-00000016 and SIP/619249-00000017
-- Executing [520@from-520:4] NoOp("SIP/320-00000018", "NO ANSWER") in new stack
-- Executing [520@from-520:5] NoOp("SIP/320-00000018", "ANSWER") in new stack
-- Executing [520@from-520:6] NoOp("SIP/320-00000018", "") in new stack
-- Executing [520@from-520:7] NoOp("SIP/320-00000018", "") in new stack
-- Executing [520@from-520:8] NoOp("SIP/320-00000018", "0") in new stack