Код: Выделить всё
exten = mi,1,GotoIf($["${BLACKLIST()}"=1]?blacklist)
exteb = mi,n,Dial(SIP/101)
....
exten = mi, n(blacklist), Playback(privacy-unident)
Hangup()
Код: Выделить всё
database put blacklist 89032285568 1
Код: Выделить всё
Executing [mi@incoming_calls:1] GotoIf("SIP/asterisk-gw-000013ed", "0?blacklist") in new stack
8:34:08] VERBOSE[7254][C-00000aa6] pbx.c: -- Executing [mi@incoming_calls:2] Set("SIP/asterisk-gw-000013ed", "CALLFILENAME=IN_11122017_18-34
8:34:08] VERBOSE[7254][C-00000aa6] pbx.c: -- Executing [mi@incoming_calls:3] MixMonitor("SIP/asterisk-gw-000013ed", "/var/spool/asterisk/mon
8:34:08] VERBOSE[7254][C-00000aa6] pbx.c: -- Executing [mi@incoming_calls:4] Set("SIP/asterisk-gw-000013ed", "CDR(recordingpath)=/var/spool/
8:34:08] VERBOSE[7255][C-00000aa6] app_mixmonitor.c: == Begin MixMonitor Recording SIP/asterisk-gw-000013ed
.........