<html><head><title>Re: [asterisk-users] Including doesn't
have any effect</title>
</head>
<body>
<span style=" font-family:'Courier New'; font-size:
9pt;">On Monday, June 6, 2016, 4:55:12 PM, AJS wrote:<br>
<br>
<span style=" color: #800000;"><b>> Are you lazy enough
to edit a text file and reload your dialplan, *every
single<br>> time* someone calls you, that you don't want to have to speak to ever
again?<br>
<br>> Not sure about you, but that sounds way too much like hard work for me!
:)<br>
<br>
</b><span style=" color: #000000;">Indeed, too much for me
too...<br>
<br>
exten => s,n,GotoIf(${DB_EXISTS(blacklist/${CDR(src)})}?block) ; Check
whether caller blacklisted<br>
[snip additional logging]<br>
exten => s,n,Dial(SIP/phones,30)<br>
exten => s,n,Voicemail(xxxxx@work,su)<br>
exten => s,n,Hangup()<br>
exten => s,n(block),GoSub(Handler-MarketingCall,s,1) ; deal with blacklisted
callers<br>
[snip]<br>
<br>
This is linked to couple of simple routines that allow me to add the current
(##666) or last caller (*32) to the blacklist or manually input any other number
(*30).<br>
<br>
<span style=" font-family:'arial'; font-size: 8pt; color:
#c0c0c0;"><i>-- <br>
Best regards,<br>
Julian
</i></span></span></span></span><a style="
font-family:'arial';"
href="mailto:jb_soft@trink.co.uk">mailto:jb_soft@trink.co.uk</a></body></html>